OSH Runtime Performance

Source code: benchmarks/osh-runtime.sh

Raw files

Elapsed Time by Shell (milliseconds)

Some benchmarks call many external tools, while some exercise the shell interpreter itself.

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 19 10 472 23 21 24.66 1.18
bin-true no-host 687 546 2,345 821 813 3.41 1.20
configure.cpython no-host 15,554 15,623 29,846 15,755 15,920 1.92 1.01
configure.ocaml no-host 3,883 3,861 4,754 3,944 3,863 1.22 1.02
configure.tcc no-host 49 43 204 50 48 4.17 1.01
configure.util-linux no-host 14,535 15,304 32,534 14,890 14,698 2.24 1.02
configure.yash no-host 1,855 1,851 2,559 1,898 1,864 1.38 1.02
hello-world no-host 2 1 59 3 3 36.41 1.83

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,507 1,102 23,696 3,209 3,068 9.45 1.28
bin-true no-host 105,342 66,393 777,757 125,228 123,225 7.38 1.19
configure.cpython no-host 2,222,292 2,235,798 6,216,826 2,223,558 2,212,397 2.80 1.00
configure.ocaml no-host 411,093 391,368 647,215 412,645 412,430 1.57 1.00
configure.tcc no-host 6,560 5,483 24,160 6,930 6,877 3.68 1.06
configure.util-linux no-host 2,102,781 2,259,209 5,397,482 1,990,513 1,991,999 2.57 0.95
configure.yash no-host 256,249 244,997 388,932 258,406 256,973 1.52 1.01
hello-world no-host 154 82 3,946 343 338 25.62 2.23

Memory Usage (Max Resident Set Size in MB)

Memory usage is measured in MB (powers of 10), not MiB (powers of 2).

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.5 22.6 9.2 8.7 5.23 2.12
bin-true no-host 3.0 1.4 18.4 8.1 7.6 6.09 2.70
configure.cpython no-host 27.3 27.4 27.5 27.3 27.5 1.01 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.3 19.3 19.4 19.3 0.99 1.00
configure.util-linux no-host 30.3 30.3 30.0 30.1 30.0 0.99 1.00
configure.yash no-host 24.4 24.4 24.1 24.4 24.2 0.99 1.00
hello-world no-host 2.9 1.6 18.4 6.3 5.9 6.37 2.18

GC Stats

workload host name elapsed ms max gc millis total gc millis allocated MB max rss MB num allocated num live max survived num in heap num in pool 1 num in pool 2 num gc points num gc done gc threshold num growths
hello-world no-host 3 0 0 0.2 6.3 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 821 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,755 1 66 14.9 27.3 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,890 4 67 21.2 30.1 2,702,513 53,766 65,691 108,691 1,290,640 1,303,182 32,239 41 131,382 1
configure.ocaml no-host 3,944 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,898 1 2 2.5 24.4 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.2 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 813 1 2 2.6 7.6 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,920 2 66 14.9 27.5 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,698 3 63 21.2 30.0 2,702,513 53,693 65,629 108,693 1,290,640 1,303,180 32,239 41 131,258 1
configure.ocaml no-host 3,863 1 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,864 1 2 2.5 24.2 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,291 64,341 42,551 4,533 54,436 57,322 277 3 85,102 1

rusage Details

task id host name workload elapsed ms user ms sys ms max rss MB shell label
7 no-host abuild-print-help 19 17 3 4.3 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 472 420 55 22.6 osh-cpython
31 no-host abuild-print-help 23 21 2 9.2 osh-native
39 no-host abuild-print-help 21 11 11 8.7 osh-native-souffle
1 no-host bin-true 687 499 219 3.0 bash
9 no-host bin-true 546 417 137 1.4 dash
17 no-host bin-true 2,345 1,559 1,056 18.4 osh-cpython
25 no-host bin-true 821 566 269 8.1 osh-native
33 no-host bin-true 813 557 269 7.6 osh-native-souffle
2 no-host configure.cpython 15,554 9,410 6,545 27.3 bash
10 no-host configure.cpython 15,623 9,351 6,700 27.4 dash
18 no-host configure.cpython 29,846 18,015 13,773 27.5 osh-cpython
26 no-host configure.cpython 15,755 9,304 6,708 27.3 osh-native
34 no-host configure.cpython 15,920 9,232 6,776 27.5 osh-native-souffle
4 no-host configure.ocaml 3,883 1,632 1,290 20.6 bash
12 no-host configure.ocaml 3,861 1,593 1,284 20.4 dash
20 no-host configure.ocaml 4,754 2,288 1,685 20.6 osh-cpython
28 no-host configure.ocaml 3,944 1,694 1,289 20.6 osh-native
36 no-host configure.ocaml 3,863 1,635 1,265 20.6 osh-native-souffle
5 no-host configure.tcc 49 21 29 19.4 bash
13 no-host configure.tcc 43 35 8 19.3 dash
21 no-host configure.tcc 204 152 55 19.3 osh-cpython
29 no-host configure.tcc 50 27 23 19.4 osh-native
37 no-host configure.tcc 48 26 23 19.3 osh-native-souffle
3 no-host configure.util-linux 14,535 9,093 5,913 30.3 bash
11 no-host configure.util-linux 15,304 9,243 6,549 30.3 dash
19 no-host configure.util-linux 32,534 21,431 12,254 30.0 osh-cpython
27 no-host configure.util-linux 14,890 9,035 6,036 30.1 osh-native
35 no-host configure.util-linux 14,698 8,742 6,138 30.0 osh-native-souffle
6 no-host configure.yash 1,855 1,067 797 24.4 bash
14 no-host configure.yash 1,851 1,100 755 24.4 dash
22 no-host configure.yash 2,559 1,679 920 24.1 osh-cpython
30 no-host configure.yash 1,898 1,098 803 24.4 osh-native
38 no-host configure.yash 1,864 1,050 817 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 59 51 8 18.4 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 3 0 5.9 osh-native-souffle

More Details

task id host name workload minor faults major faults swaps in block out block signals voluntary ctx involuntary ctx shell label
7 no-host abuild-print-help 2,507 0 0 0 16 0 41 5 bash
15 no-host abuild-print-help 1,102 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,696 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,209 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,068 0 0 0 16 0 39 6 osh-native-souffle
1 no-host bin-true 105,342 0 0 0 8 0 1,986 51 bash
9 no-host bin-true 66,393 0 0 0 8 0 1,984 36 dash
17 no-host bin-true 777,757 0 0 0 8 0 1,995 166 osh-cpython
25 no-host bin-true 125,228 0 0 0 16 0 1,989 75 osh-native
33 no-host bin-true 123,225 0 0 0 16 0 1,987 46 osh-native-souffle
2 no-host configure.cpython 2,222,292 0 0 0 32,928 0 14,193 924 bash
10 no-host configure.cpython 2,235,798 0 0 0 32,992 0 14,593 919 dash
18 no-host configure.cpython 6,216,826 1 0 0 27,512 0 13,228 1,113 osh-cpython
26 no-host configure.cpython 2,223,558 0 0 0 27,520 0 13,199 930 osh-native
34 no-host configure.cpython 2,212,397 0 0 0 27,520 0 13,167 906 osh-native-souffle
4 no-host configure.ocaml 411,093 0 0 0 5,120 0 1,943 145 bash
12 no-host configure.ocaml 391,368 0 0 0 5,112 0 1,937 147 dash
20 no-host configure.ocaml 647,215 0 0 0 5,112 0 1,854 153 osh-cpython
28 no-host configure.ocaml 412,645 0 0 0 5,120 0 1,924 158 osh-native
36 no-host configure.ocaml 412,430 0 0 0 5,120 0 1,927 158 osh-native-souffle
5 no-host configure.tcc 6,560 0 0 0 104 0 48 2 bash
13 no-host configure.tcc 5,483 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,160 0 0 0 96 0 54 9 osh-cpython
29 no-host configure.tcc 6,930 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,877 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,102,781 0 0 0 42,400 0 18,682 1,128 bash
11 no-host configure.util-linux 2,259,209 0 0 0 42,584 0 17,469 1,067 dash
19 no-host configure.util-linux 5,397,482 4 0 0 39,152 0 17,021 1,273 osh-cpython
27 no-host configure.util-linux 1,990,513 1 0 0 39,128 0 16,900 994 osh-native
35 no-host configure.util-linux 1,991,999 0 0 0 39,136 0 16,980 928 osh-native-souffle
6 no-host configure.yash 256,249 0 0 0 4,120 0 870 77 bash
14 no-host configure.yash 244,997 0 0 0 3,720 0 865 59 dash
22 no-host configure.yash 388,932 0 0 0 3,728 0 848 87 osh-cpython
30 no-host configure.yash 258,406 0 0 0 3,736 0 848 76 osh-native
38 no-host configure.yash 256,973 0 0 0 3,736 0 851 73 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,946 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-266083f5
dash dash-0ebcf347
osh-cpython osh-904ead75
osh-native osh-a89a36b5
osh-native-souffle osh-5ed27234
host label host id
no-host no-host-556df3ee