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 20 10 465 22 21 23.67 1.13
bin-true no-host 686 547 2,300 818 821 3.35 1.19
configure.cpython no-host 15,611 15,544 29,477 15,841 15,806 1.89 1.01
configure.ocaml no-host 3,910 3,813 4,797 3,917 3,900 1.23 1.00
configure.tcc no-host 49 43 200 51 49 4.08 1.03
configure.util-linux no-host 14,441 15,255 32,234 14,806 14,710 2.23 1.03
configure.yash no-host 1,860 1,826 2,523 1,905 1,876 1.36 1.02
hello-world no-host 2 1 50 3 3 31.06 1.81

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,537 1,098 23,187 3,241 3,099 9.14 1.28
bin-true no-host 106,322 67,366 761,144 127,209 124,816 7.16 1.20
configure.cpython no-host 2,215,040 2,243,134 6,204,006 2,237,971 2,224,484 2.80 1.01
configure.ocaml no-host 409,736 390,778 644,932 413,441 412,325 1.57 1.01
configure.tcc no-host 6,562 5,477 23,553 7,004 6,912 3.59 1.07
configure.util-linux no-host 2,103,785 2,263,788 5,336,989 2,002,668 1,992,742 2.54 0.95
configure.yash no-host 256,470 244,057 387,272 258,276 257,209 1.51 1.01
hello-world no-host 153 83 3,734 351 343 24.41 2.29

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.4 21.9 9.2 8.7 4.91 2.06
bin-true no-host 2.9 1.4 17.7 8.1 7.6 6.14 2.82
configure.cpython no-host 27.4 27.4 27.4 27.3 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.4 20.6 1.00 0.99
configure.tcc no-host 19.4 19.3 19.3 19.4 19.4 0.99 1.00
configure.util-linux no-host 30.3 30.1 30.1 30.0 30.3 1.00 0.99
configure.yash no-host 24.2 24.5 24.4 24.2 24.2 1.01 1.00
hello-world no-host 2.8 1.6 17.6 6.3 5.9 6.38 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,775 3,775 0 694 1,852 1,229 2 0 50,000 0
bin-true no-host 818 1 2 2.6 8.1 154,740 13,220 2,877 9,744 78,321 66,675 3,008 3 50,000 0
configure.cpython no-host 15,841 1 64 15.0 27.3 1,772,722 49,854 28,587 86,397 908,073 778,252 22,694 60 50,000 0
configure.util-linux no-host 14,806 3 63 21.3 30.0 2,703,490 29,745 65,870 109,675 1,320,579 1,273,236 27,391 41 131,740 1
configure.ocaml no-host 3,917 1 2 2.6 20.4 150,096 11,051 5,221 7,531 71,606 70,959 1,448 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.4 30,581 30,581 0 1,520 14,776 14,285 226 0 50,000 0
configure.yash no-host 1,905 1 2 2.6 24.2 139,749 8,020 6,679 6,336 70,281 63,132 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,324 64,530 42,740 4,571 54,521 57,232 270 3 85,480 1
hello-world no-host 3 0 0 0.2 5.9 3,774 3,774 0 695 1,852 1,227 2 0 50,000 0
bin-true no-host 821 1 2 2.6 7.6 154,739 13,063 2,815 9,745 78,321 66,673 3,008 3 50,000 0
configure.cpython no-host 15,806 1 64 14.9 27.4 1,772,721 49,105 28,525 86,398 908,073 778,250 22,694 60 50,000 0
configure.util-linux no-host 14,710 3 63 21.3 30.3 2,703,490 42,741 65,808 109,677 1,320,579 1,273,234 27,391 41 131,616 1
configure.ocaml no-host 3,900 1 2 2.6 20.6 150,096 10,989 5,159 7,533 71,606 70,957 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,581 30,581 0 1,522 14,776 14,283 226 0 50,000 0
configure.yash no-host 1,876 1 2 2.6 24.2 139,749 7,958 6,617 6,338 70,281 63,130 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,323 64,468 42,678 4,572 54,521 57,230 270 3 85,356 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 20 12 8 4.5 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 465 429 39 21.9 osh-cpython
31 no-host abuild-print-help 22 21 2 9.2 osh-native
39 no-host abuild-print-help 21 14 7 8.7 osh-native-souffle
1 no-host bin-true 686 492 225 2.9 bash
9 no-host bin-true 547 427 133 1.4 dash
17 no-host bin-true 2,300 1,530 1,034 17.7 osh-cpython
25 no-host bin-true 818 554 276 8.1 osh-native
33 no-host bin-true 821 564 270 7.6 osh-native-souffle
2 no-host configure.cpython 15,611 9,224 6,792 27.4 bash
10 no-host configure.cpython 15,544 9,355 6,615 27.4 dash
18 no-host configure.cpython 29,477 17,746 13,660 27.4 osh-cpython
26 no-host configure.cpython 15,841 9,349 6,747 27.3 osh-native
34 no-host configure.cpython 15,806 9,271 6,718 27.4 osh-native-souffle
4 no-host configure.ocaml 3,910 1,666 1,278 20.6 bash
12 no-host configure.ocaml 3,813 1,632 1,198 20.4 dash
20 no-host configure.ocaml 4,797 2,326 1,686 20.6 osh-cpython
28 no-host configure.ocaml 3,917 1,708 1,248 20.4 osh-native
36 no-host configure.ocaml 3,900 1,676 1,260 20.6 osh-native-souffle
5 no-host configure.tcc 49 35 15 19.4 bash
13 no-host configure.tcc 43 37 7 19.3 dash
21 no-host configure.tcc 200 127 76 19.3 osh-cpython
29 no-host configure.tcc 51 21 31 19.4 osh-native
37 no-host configure.tcc 49 34 16 19.4 osh-native-souffle
3 no-host configure.util-linux 14,441 8,984 5,914 30.3 bash
11 no-host configure.util-linux 15,255 9,210 6,543 30.1 dash
19 no-host configure.util-linux 32,234 21,358 12,000 30.1 osh-cpython
27 no-host configure.util-linux 14,806 8,786 6,209 30.0 osh-native
35 no-host configure.util-linux 14,710 8,806 6,079 30.3 osh-native-souffle
6 no-host configure.yash 1,860 1,036 833 24.2 bash
14 no-host configure.yash 1,826 1,075 753 24.5 dash
22 no-host configure.yash 2,523 1,598 968 24.4 osh-cpython
30 no-host configure.yash 1,905 1,092 817 24.2 osh-native
38 no-host configure.yash 1,876 1,064 815 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 50 27 23 17.6 osh-cpython
24 no-host hello-world 3 0 3 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,537 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,098 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,187 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,241 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,099 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 106,322 0 0 0 8 0 1,994 69 bash
9 no-host bin-true 67,366 0 0 0 8 0 1,975 37 dash
17 no-host bin-true 761,144 0 0 0 8 0 1,999 237 osh-cpython
25 no-host bin-true 127,209 0 0 0 16 0 1,988 58 osh-native
33 no-host bin-true 124,816 0 0 0 16 0 1,986 122 osh-native-souffle
2 no-host configure.cpython 2,215,040 0 0 0 32,928 0 14,514 1,222 bash
10 no-host configure.cpython 2,243,134 0 0 0 32,992 0 14,685 1,253 dash
18 no-host configure.cpython 6,204,006 2 0 0 27,512 0 13,283 1,347 osh-cpython
26 no-host configure.cpython 2,237,971 0 0 0 27,520 0 13,285 1,003 osh-native
34 no-host configure.cpython 2,224,484 0 0 0 27,520 0 13,222 1,081 osh-native-souffle
4 no-host configure.ocaml 409,736 0 0 0 5,120 0 1,962 139 bash
12 no-host configure.ocaml 390,778 0 0 0 5,112 0 1,876 149 dash
20 no-host configure.ocaml 644,932 0 0 0 5,112 0 1,853 289 osh-cpython
28 no-host configure.ocaml 413,441 0 0 0 5,120 0 1,925 168 osh-native
36 no-host configure.ocaml 412,325 0 0 0 5,120 0 1,935 156 osh-native-souffle
5 no-host configure.tcc 6,562 0 0 0 104 0 49 8 bash
13 no-host configure.tcc 5,477 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,553 0 0 0 96 0 53 3 osh-cpython
29 no-host configure.tcc 7,004 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,912 0 0 0 104 0 47 0 osh-native-souffle
3 no-host configure.util-linux 2,103,785 0 0 0 42,400 0 18,544 1,123 bash
11 no-host configure.util-linux 2,263,788 0 0 0 42,584 0 17,431 1,153 dash
19 no-host configure.util-linux 5,336,989 7 0 0 39,112 0 16,950 1,206 osh-cpython
27 no-host configure.util-linux 2,002,668 5 0 0 39,120 0 16,998 942 osh-native
35 no-host configure.util-linux 1,992,742 0 0 0 39,136 0 16,980 966 osh-native-souffle
6 no-host configure.yash 256,470 0 0 0 4,120 0 868 87 bash
14 no-host configure.yash 244,057 0 0 0 3,720 0 866 76 dash
22 no-host configure.yash 387,272 0 0 0 3,728 0 851 90 osh-cpython
30 no-host configure.yash 258,276 0 0 0 3,736 0 848 85 osh-native
38 no-host configure.yash 257,209 0 0 0 3,736 0 849 90 osh-native-souffle
0 no-host hello-world 153 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,734 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 343 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b6c512b5
dash dash-0ebcf347
osh-cpython osh-756f0c01
osh-native osh-86c01a12
osh-native-souffle osh-a5182c47
host label host id
no-host no-host-556df3ee