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 9 447 22 20 23.75 1.17
bin-true no-host 665 532 2,235 802 802 3.36 1.21
configure.cpython no-host 14,813 14,857 28,212 15,047 15,123 1.90 1.02
configure.ocaml no-host 3,758 3,694 4,591 3,785 3,783 1.22 1.01
configure.tcc no-host 47 41 194 48 48 4.12 1.03
configure.util-linux no-host 13,817 14,670 30,707 14,154 14,126 2.22 1.02
configure.yash no-host 1,787 1,744 2,420 1,801 1,785 1.35 1.01
hello-world no-host 2 1 49 3 3 32.13 1.88

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,099 23,245 3,206 3,071 9.13 1.26
bin-true no-host 105,349 65,465 755,860 124,123 123,789 7.17 1.18
configure.cpython no-host 2,222,669 2,238,780 6,207,039 2,233,770 2,210,235 2.79 1.00
configure.ocaml no-host 410,846 390,965 646,118 412,674 413,119 1.57 1.00
configure.tcc no-host 6,555 5,472 23,540 7,014 6,941 3.59 1.07
configure.util-linux no-host 2,104,542 2,260,784 5,314,668 1,995,000 1,986,354 2.53 0.95
configure.yash no-host 256,827 244,527 386,590 258,761 258,104 1.51 1.01
hello-world no-host 151 78 3,733 347 343 24.72 2.30

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.0 8.5 4.91 2.03
bin-true no-host 2.9 1.6 17.7 7.9 7.6 6.14 2.73
configure.cpython no-host 27.4 27.5 27.3 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
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.0 30.3 30.3 0.99 1.00
configure.yash no-host 24.2 24.5 24.2 24.2 24.4 1.00 1.00
hello-world no-host 2.9 1.3 17.6 6.3 5.8 6.09 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,775 3,775 0 694 1,852 1,229 2 0 50,000 0
bin-true no-host 802 1 2 2.6 7.9 154,740 13,220 2,877 9,744 78,321 66,675 3,008 3 50,000 0
configure.cpython no-host 15,047 1 57 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,154 3 58 21.3 30.3 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,785 1 2 2.6 20.6 150,096 11,051 5,221 7,531 71,606 70,959 1,448 3 50,000 0
configure.tcc no-host 48 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,801 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.0 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.8 3,774 3,774 0 695 1,852 1,227 2 0 50,000 0
bin-true no-host 802 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,123 1 57 14.9 27.5 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,126 3 57 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,783 0 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 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,785 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 20 1 2 2.8 8.5 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 16 4 4.5 bash
15 no-host abuild-print-help 9 6 3 3.4 dash
23 no-host abuild-print-help 447 406 44 21.9 osh-cpython
31 no-host abuild-print-help 22 14 9 9.0 osh-native
39 no-host abuild-print-help 20 15 6 8.5 osh-native-souffle
1 no-host bin-true 665 513 183 2.9 bash
9 no-host bin-true 532 419 122 1.6 dash
17 no-host bin-true 2,235 1,415 1,077 17.7 osh-cpython
25 no-host bin-true 802 563 253 7.9 osh-native
33 no-host bin-true 802 563 253 7.6 osh-native-souffle
2 no-host configure.cpython 14,813 9,035 6,170 27.4 bash
10 no-host configure.cpython 14,857 8,990 6,289 27.5 dash
18 no-host configure.cpython 28,212 17,386 12,655 27.3 osh-cpython
26 no-host configure.cpython 15,047 8,724 6,589 27.4 osh-native
34 no-host configure.cpython 15,123 8,672 6,562 27.5 osh-native-souffle
4 no-host configure.ocaml 3,758 1,528 1,271 20.6 bash
12 no-host configure.ocaml 3,694 1,587 1,125 20.6 dash
20 no-host configure.ocaml 4,591 2,146 1,649 20.6 osh-cpython
28 no-host configure.ocaml 3,785 1,628 1,195 20.6 osh-native
36 no-host configure.ocaml 3,783 1,536 1,285 20.6 osh-native-souffle
5 no-host configure.tcc 47 22 26 19.4 bash
13 no-host configure.tcc 41 34 7 19.3 dash
21 no-host configure.tcc 194 137 60 19.3 osh-cpython
29 no-host configure.tcc 48 31 18 19.3 osh-native
37 no-host configure.tcc 48 29 19 19.3 osh-native-souffle
3 no-host configure.util-linux 13,817 8,614 5,677 30.3 bash
11 no-host configure.util-linux 14,670 8,990 6,172 30.3 dash
19 no-host configure.util-linux 30,707 20,663 11,117 30.0 osh-cpython
27 no-host configure.util-linux 14,154 8,440 5,911 30.3 osh-native
35 no-host configure.util-linux 14,126 8,715 5,600 30.3 osh-native-souffle
6 no-host configure.yash 1,787 1,025 771 24.2 bash
14 no-host configure.yash 1,744 978 769 24.5 dash
22 no-host configure.yash 2,420 1,415 1,045 24.2 osh-cpython
30 no-host configure.yash 1,801 1,072 732 24.2 osh-native
38 no-host configure.yash 1,785 1,017 772 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 0 1 1.3 dash
16 no-host hello-world 49 34 15 17.6 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 0 3 5.8 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 1 bash
15 no-host abuild-print-help 1,099 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,245 0 0 0 8 0 45 13 osh-cpython
31 no-host abuild-print-help 3,206 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,071 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 105,349 0 0 0 8 0 1,995 87 bash
9 no-host bin-true 65,465 0 0 0 8 0 1,986 35 dash
17 no-host bin-true 755,860 0 0 0 8 0 1,995 212 osh-cpython
25 no-host bin-true 124,123 0 0 0 16 0 1,990 107 osh-native
33 no-host bin-true 123,789 0 0 0 16 0 1,992 156 osh-native-souffle
2 no-host configure.cpython 2,222,669 0 0 0 32,928 0 14,450 1,283 bash
10 no-host configure.cpython 2,238,780 0 0 0 32,992 0 14,636 1,232 dash
18 no-host configure.cpython 6,207,039 0 0 0 27,512 0 13,287 1,160 osh-cpython
26 no-host configure.cpython 2,233,770 0 0 0 27,520 0 13,310 1,257 osh-native
34 no-host configure.cpython 2,210,235 0 0 0 27,520 0 13,272 1,095 osh-native-souffle
4 no-host configure.ocaml 410,846 0 0 0 5,120 0 1,941 171 bash
12 no-host configure.ocaml 390,965 0 0 0 5,112 0 1,941 141 dash
20 no-host configure.ocaml 646,118 0 0 0 5,112 0 1,859 284 osh-cpython
28 no-host configure.ocaml 412,674 0 0 0 5,120 0 1,929 191 osh-native
36 no-host configure.ocaml 413,119 0 0 0 5,120 0 1,934 150 osh-native-souffle
5 no-host configure.tcc 6,555 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,472 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,540 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 7,014 0 0 0 104 0 47 0 osh-native
37 no-host configure.tcc 6,941 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,104,542 0 0 0 42,400 0 18,676 1,092 bash
11 no-host configure.util-linux 2,260,784 1 0 0 42,584 0 17,474 1,133 dash
19 no-host configure.util-linux 5,314,668 8 0 0 39,120 0 17,026 1,106 osh-cpython
27 no-host configure.util-linux 1,995,000 0 0 0 39,120 0 16,952 1,053 osh-native
35 no-host configure.util-linux 1,986,354 0 0 0 39,128 0 16,900 1,117 osh-native-souffle
6 no-host configure.yash 256,827 0 0 0 4,120 0 868 66 bash
14 no-host configure.yash 244,527 0 0 0 3,720 0 868 87 dash
22 no-host configure.yash 386,590 0 0 0 3,728 0 855 103 osh-cpython
30 no-host configure.yash 258,761 0 0 0 3,736 0 850 74 osh-native
38 no-host configure.yash 258,104 0 0 0 3,736 0 848 79 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,733 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 347 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-d35c43ca
dash dash-0ebcf347
osh-cpython osh-54c6bf2b
osh-native osh-9db4a80b
osh-native-souffle osh-982b3747
host label host id
no-host no-host-556df3ee