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 467 22 21 24.16 1.16
bin-true no-host 682 539 2,335 811 814 3.42 1.19
configure.cpython no-host 15,098 15,423 30,705 15,385 15,685 2.03 1.02
configure.ocaml no-host 3,846 3,837 4,670 3,838 3,919 1.21 1.00
configure.tcc no-host 48 42 204 49 49 4.25 1.03
configure.util-linux no-host 14,220 14,995 31,585 14,567 14,712 2.22 1.02
configure.yash no-host 1,839 1,809 2,489 1,865 1,893 1.35 1.01
hello-world no-host 2 1 59 3 3 39.18 1.89

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,538 1,097 23,637 3,149 3,136 9.31 1.24
bin-true no-host 105,335 66,459 779,957 124,085 124,211 7.40 1.18
configure.cpython no-host 2,215,435 2,243,648 6,228,739 2,228,585 2,215,165 2.81 1.01
configure.ocaml no-host 409,968 391,288 648,045 412,895 412,927 1.58 1.01
configure.tcc no-host 6,529 5,457 23,982 6,952 6,909 3.67 1.06
configure.util-linux no-host 2,097,081 2,260,883 5,366,022 1,996,806 1,992,568 2.56 0.95
configure.yash no-host 256,705 244,701 388,940 258,505 257,721 1.52 1.01
hello-world no-host 152 83 3,984 344 339 26.21 2.26

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.5 3.5 22.7 9.0 8.8 5.10 2.03
bin-true no-host 3.0 1.4 18.3 8.0 7.7 6.05 2.65
configure.cpython no-host 27.4 27.4 27.3 27.5 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 20.6 0.99 1.00
configure.tcc no-host 19.3 19.4 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.0 30.4 30.3 30.3 30.1 1.01 1.01
configure.yash no-host 24.4 24.2 24.2 24.5 24.5 0.99 1.01
hello-world no-host 2.8 1.6 18.0 6.3 5.9 6.54 2.29

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,790 3,790 0 694 1,862 1,234 2 0 50,000 0
bin-true no-host 811 1 2 2.6 8.0 153,754 12,330 2,895 8,743 76,326 68,685 3,008 3 50,000 0
configure.cpython no-host 15,385 2 67 14.9 27.5 1,771,755 49,613 28,520 85,415 878,119 808,221 25,733 60 50,000 0
configure.util-linux no-host 14,567 3 65 21.2 30.3 2,702,521 53,774 65,699 108,691 1,290,644 1,303,186 32,239 41 131,398 1
configure.ocaml no-host 3,838 1 2 2.6 20.6 150,088 11,120 5,215 7,508 70,973 71,607 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,594 30,594 0 1,518 14,645 14,431 271 0 50,000 0
configure.yash no-host 1,865 1 2 2.5 24.5 139,420 8,032 6,694 5,989 67,946 65,485 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,300 64,411 42,621 4,532 54,440 57,328 277 3 85,242 1
hello-world no-host 3 0 0 0.2 5.9 3,789 3,789 0 695 1,862 1,232 2 0 50,000 0
bin-true no-host 814 1 2 2.6 7.7 153,753 12,119 2,833 8,744 76,326 68,683 3,008 3 50,000 0
configure.cpython no-host 15,685 1 65 14.9 27.3 1,771,754 49,071 28,458 85,416 878,119 808,219 25,733 60 50,000 0
configure.util-linux no-host 14,712 3 62 21.2 30.1 2,702,521 53,701 65,657 108,693 1,290,644 1,303,184 32,239 41 131,314 1
configure.ocaml no-host 3,919 1 2 2.6 20.6 150,088 11,058 5,153 7,510 70,973 71,605 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,594 30,594 0 1,520 14,645 14,429 271 0 50,000 0
configure.yash no-host 1,893 1 2 2.5 24.5 139,420 7,970 6,632 5,991 67,946 65,483 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.8 116,299 64,349 42,559 4,533 54,440 57,326 277 3 85,118 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 18 1 4.5 bash
15 no-host abuild-print-help 10 5 5 3.5 dash
23 no-host abuild-print-help 467 409 62 22.7 osh-cpython
31 no-host abuild-print-help 22 15 8 9.0 osh-native
39 no-host abuild-print-help 21 14 8 8.8 osh-native-souffle
1 no-host bin-true 682 525 189 3.0 bash
9 no-host bin-true 539 422 128 1.4 dash
17 no-host bin-true 2,335 1,544 1,055 18.3 osh-cpython
25 no-host bin-true 811 578 246 8.0 osh-native
33 no-host bin-true 814 592 238 7.7 osh-native-souffle
2 no-host configure.cpython 15,098 8,958 6,546 27.4 bash
10 no-host configure.cpython 15,423 9,423 6,433 27.4 dash
18 no-host configure.cpython 30,705 17,726 13,199 27.3 osh-cpython
26 no-host configure.cpython 15,385 9,044 6,596 27.5 osh-native
34 no-host configure.cpython 15,685 9,142 6,681 27.3 osh-native-souffle
4 no-host configure.ocaml 3,846 1,598 1,290 20.6 bash
12 no-host configure.ocaml 3,837 1,647 1,206 20.6 dash
20 no-host configure.ocaml 4,670 2,252 1,630 20.4 osh-cpython
28 no-host configure.ocaml 3,838 1,653 1,224 20.6 osh-native
36 no-host configure.ocaml 3,919 1,655 1,301 20.6 osh-native-souffle
5 no-host configure.tcc 48 37 12 19.3 bash
13 no-host configure.tcc 42 27 15 19.4 dash
21 no-host configure.tcc 204 167 40 19.3 osh-cpython
29 no-host configure.tcc 49 30 20 19.3 osh-native
37 no-host configure.tcc 49 23 27 19.3 osh-native-souffle
3 no-host configure.util-linux 14,220 8,944 5,761 30.0 bash
11 no-host configure.util-linux 14,995 9,123 6,363 30.4 dash
19 no-host configure.util-linux 31,585 21,030 11,662 30.3 osh-cpython
27 no-host configure.util-linux 14,567 8,921 5,846 30.3 osh-native
35 no-host configure.util-linux 14,712 8,864 6,027 30.1 osh-native-souffle
6 no-host configure.yash 1,839 1,057 791 24.4 bash
14 no-host configure.yash 1,809 1,075 735 24.2 dash
22 no-host configure.yash 2,489 1,549 978 24.2 osh-cpython
30 no-host configure.yash 1,865 1,063 806 24.5 osh-native
38 no-host configure.yash 1,893 1,061 836 24.5 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 59 37 21 18.0 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 2 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,538 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,097 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,637 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,149 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,136 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,335 0 0 0 8 0 1,994 51 bash
9 no-host bin-true 66,459 0 0 0 8 0 1,989 51 dash
17 no-host bin-true 779,957 0 0 0 8 0 1,993 203 osh-cpython
25 no-host bin-true 124,085 0 0 0 16 0 1,994 59 osh-native
33 no-host bin-true 124,211 0 0 0 16 0 1,988 55 osh-native-souffle
2 no-host configure.cpython 2,215,435 1 0 0 32,928 0 14,166 991 bash
10 no-host configure.cpython 2,243,648 0 0 0 32,992 0 14,574 1,084 dash
18 no-host configure.cpython 6,228,739 0 0 0 27,512 0 13,266 1,128 osh-cpython
26 no-host configure.cpython 2,228,585 0 0 0 27,520 0 13,259 998 osh-native
34 no-host configure.cpython 2,215,165 0 0 0 27,520 0 13,241 932 osh-native-souffle
4 no-host configure.ocaml 409,968 0 0 0 5,120 0 1,940 135 bash
12 no-host configure.ocaml 391,288 0 0 0 5,112 0 1,912 147 dash
20 no-host configure.ocaml 648,045 0 0 0 5,112 0 1,861 171 osh-cpython
28 no-host configure.ocaml 412,895 0 0 0 5,120 0 1,925 154 osh-native
36 no-host configure.ocaml 412,927 0 0 0 5,120 0 1,935 122 osh-native-souffle
5 no-host configure.tcc 6,529 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,457 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,982 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,952 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,909 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,097,081 1 0 0 42,400 0 18,766 1,230 bash
11 no-host configure.util-linux 2,260,883 2 0 0 42,592 0 17,433 1,058 dash
19 no-host configure.util-linux 5,366,022 8 0 0 39,112 0 17,047 1,269 osh-cpython
27 no-host configure.util-linux 1,996,806 1 0 0 39,120 0 17,174 957 osh-native
35 no-host configure.util-linux 1,992,568 0 0 0 39,128 0 16,973 945 osh-native-souffle
6 no-host configure.yash 256,705 0 0 0 4,120 0 869 87 bash
14 no-host configure.yash 244,701 0 0 0 3,720 0 860 86 dash
22 no-host configure.yash 388,940 0 0 0 3,728 0 852 80 osh-cpython
30 no-host configure.yash 258,505 0 0 0 3,736 0 849 77 osh-native
38 no-host configure.yash 257,721 0 0 0 3,736 0 853 83 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,984 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 0 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-8ff3132f
dash dash-0ebcf347
osh-cpython osh-a1c58d2d
osh-native osh-89f0ce3c
osh-native-souffle osh-035367b7
host label host id
no-host no-host-556df3ee