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 451 23 21 23.33 1.17
bin-true no-host 666 545 2,238 813 809 3.36 1.22
configure.cpython no-host 15,295 15,382 29,155 15,483 15,658 1.91 1.01
configure.ocaml no-host 3,850 3,783 4,728 3,869 3,879 1.23 1.00
configure.tcc no-host 48 42 197 49 48 4.12 1.02
configure.util-linux no-host 14,244 15,060 31,490 14,560 14,455 2.21 1.02
configure.yash no-host 1,854 1,800 2,489 1,852 1,853 1.34 1.00
hello-world no-host 1 1 50 3 3 33.42 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,545 1,102 23,197 3,230 3,088 9.11 1.27
bin-true no-host 103,367 66,432 758,817 125,209 125,827 7.34 1.21
configure.cpython no-host 2,223,773 2,246,695 6,215,731 2,234,315 2,218,794 2.80 1.00
configure.ocaml no-host 410,595 391,588 647,124 413,910 412,664 1.58 1.01
configure.tcc no-host 6,534 5,500 23,530 7,027 6,904 3.60 1.08
configure.util-linux no-host 2,105,938 2,257,115 5,329,475 2,004,485 1,989,322 2.53 0.95
configure.yash no-host 256,097 244,563 387,157 258,543 257,808 1.51 1.01
hello-world no-host 149 83 3,734 351 344 25.06 2.36

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.4 21.9 8.9 8.7 5.06 2.06
bin-true no-host 3.0 1.6 17.7 8.3 7.7 5.87 2.74
configure.cpython no-host 27.5 27.3 27.4 27.4 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 20.4 1.00 0.99
configure.tcc no-host 19.4 19.3 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.3 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.5 24.4 1.00 1.01
hello-world no-host 2.6 1.4 17.6 6.3 5.9 6.70 2.40

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 813 1 2 2.6 8.3 154,740 13,220 2,877 9,744 78,321 66,675 3,008 3 50,000 0
configure.cpython no-host 15,483 1 62 15.0 27.4 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,560 3 62 21.3 30.1 2,703,490 29,146 65,890 109,675 1,320,579 1,273,236 27,391 41 131,780 1
configure.ocaml no-host 3,869 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 49 0 0 1.3 19.3 30,581 30,581 0 1,520 14,776 14,285 226 0 50,000 0
configure.yash no-host 1,852 1 2 2.6 24.5 139,749 8,020 6,679 6,336 70,281 63,132 1,803 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 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 809 1 2 2.6 7.7 154,739 13,063 2,815 9,745 78,321 66,673 3,008 3 50,000 0
configure.cpython no-host 15,658 1 62 14.9 27.3 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,455 3 62 21.3 30.3 2,703,490 42,741 65,828 109,677 1,320,579 1,273,234 27,391 41 131,656 1
configure.ocaml no-host 3,879 1 2 2.6 20.4 150,096 10,989 5,159 7,533 71,606 70,957 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,581 30,581 0 1,522 14,776 14,283 226 0 50,000 0
configure.yash no-host 1,853 1 2 2.6 24.4 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 19 14 6 4.3 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 451 416 39 21.9 osh-cpython
31 no-host abuild-print-help 23 21 2 8.9 osh-native
39 no-host abuild-print-help 21 11 10 8.7 osh-native-souffle
1 no-host bin-true 666 498 200 3.0 bash
9 no-host bin-true 545 412 141 1.6 dash
17 no-host bin-true 2,238 1,385 1,109 17.7 osh-cpython
25 no-host bin-true 813 566 259 8.3 osh-native
33 no-host bin-true 809 561 261 7.7 osh-native-souffle
2 no-host configure.cpython 15,295 9,260 6,446 27.5 bash
10 no-host configure.cpython 15,382 9,337 6,472 27.3 dash
18 no-host configure.cpython 29,155 17,822 13,242 27.4 osh-cpython
26 no-host configure.cpython 15,483 9,097 6,651 27.4 osh-native
34 no-host configure.cpython 15,658 9,055 6,630 27.3 osh-native-souffle
4 no-host configure.ocaml 3,850 1,656 1,234 20.6 bash
12 no-host configure.ocaml 3,783 1,589 1,213 20.6 dash
20 no-host configure.ocaml 4,728 2,224 1,724 20.6 osh-cpython
28 no-host configure.ocaml 3,869 1,676 1,233 20.4 osh-native
36 no-host configure.ocaml 3,879 1,634 1,281 20.4 osh-native-souffle
5 no-host configure.tcc 48 26 22 19.4 bash
13 no-host configure.tcc 42 22 20 19.3 dash
21 no-host configure.tcc 197 149 51 19.3 osh-cpython
29 no-host configure.tcc 49 27 23 19.3 osh-native
37 no-host configure.tcc 48 23 25 19.3 osh-native-souffle
3 no-host configure.util-linux 14,244 8,875 5,843 30.3 bash
11 no-host configure.util-linux 15,060 9,380 6,175 30.3 dash
19 no-host configure.util-linux 31,490 20,845 11,730 30.1 osh-cpython
27 no-host configure.util-linux 14,560 8,804 5,955 30.1 osh-native
35 no-host configure.util-linux 14,455 8,628 6,015 30.3 osh-native-souffle
6 no-host configure.yash 1,854 1,086 774 24.4 bash
14 no-host configure.yash 1,800 998 806 24.4 dash
22 no-host configure.yash 2,489 1,564 967 24.4 osh-cpython
30 no-host configure.yash 1,852 1,053 802 24.5 osh-native
38 no-host configure.yash 1,853 1,115 742 24.4 osh-native-souffle
0 no-host hello-world 1 2 0 2.6 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 50 33 16 17.6 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,545 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,102 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,197 0 0 0 8 0 45 13 osh-cpython
31 no-host abuild-print-help 3,230 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,088 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 103,367 0 0 0 8 0 1,994 70 bash
9 no-host bin-true 66,432 0 0 0 8 0 1,980 38 dash
17 no-host bin-true 758,817 0 0 0 8 0 1,997 94 osh-cpython
25 no-host bin-true 125,209 0 0 0 16 0 1,994 139 osh-native
33 no-host bin-true 125,827 0 0 0 16 0 1,992 121 osh-native-souffle
2 no-host configure.cpython 2,223,773 0 0 0 32,928 0 14,468 1,247 bash
10 no-host configure.cpython 2,246,695 0 0 0 32,992 0 14,571 1,079 dash
18 no-host configure.cpython 6,215,731 1 0 0 27,512 0 13,247 1,376 osh-cpython
26 no-host configure.cpython 2,234,315 0 0 0 27,520 0 13,210 1,095 osh-native
34 no-host configure.cpython 2,218,794 0 0 0 27,520 0 13,264 962 osh-native-souffle
4 no-host configure.ocaml 410,595 0 0 0 5,120 0 1,947 158 bash
12 no-host configure.ocaml 391,588 0 0 0 5,112 0 1,938 150 dash
20 no-host configure.ocaml 647,124 0 0 0 5,112 0 1,855 166 osh-cpython
28 no-host configure.ocaml 413,910 0 0 0 5,120 0 1,935 161 osh-native
36 no-host configure.ocaml 412,664 0 0 0 5,120 0 1,933 160 osh-native-souffle
5 no-host configure.tcc 6,534 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,500 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,530 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 7,027 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,904 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,105,938 0 0 0 42,400 0 18,518 1,087 bash
11 no-host configure.util-linux 2,257,115 0 0 0 42,584 0 17,678 1,164 dash
19 no-host configure.util-linux 5,329,475 10 0 0 39,120 0 16,982 1,281 osh-cpython
27 no-host configure.util-linux 2,004,485 2 0 0 39,128 0 16,976 1,109 osh-native
35 no-host configure.util-linux 1,989,322 6 0 0 39,136 0 17,006 1,133 osh-native-souffle
6 no-host configure.yash 256,097 0 0 0 4,120 0 868 70 bash
14 no-host configure.yash 244,563 0 0 0 3,720 0 867 72 dash
22 no-host configure.yash 387,157 0 0 0 3,728 0 852 109 osh-cpython
30 no-host configure.yash 258,543 0 0 0 3,736 0 851 88 osh-native
38 no-host configure.yash 257,808 0 0 0 3,736 0 850 88 osh-native-souffle
0 no-host hello-world 149 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 3 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 344 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-fe60da97
dash dash-0ebcf347
osh-cpython osh-cab0cd32
osh-native osh-7dfc28b9
osh-native-souffle osh-0f19fbb4
host label host id
no-host no-host-556df3ee