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 457 22 21 23.87 1.17
bin-true no-host 676 545 2,260 811 811 3.34 1.20
configure.cpython no-host 14,951 15,207 28,772 15,228 15,380 1.92 1.02
configure.ocaml no-host 3,797 3,743 4,657 3,829 3,832 1.23 1.01
configure.tcc no-host 48 41 196 49 48 4.07 1.02
configure.util-linux no-host 14,051 14,913 31,763 14,405 14,327 2.26 1.03
configure.yash no-host 1,834 1,787 2,455 1,833 1,849 1.34 1.00
hello-world no-host 2 1 49 3 3 29.94 1.80

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,558 1,103 23,326 3,190 3,052 9.12 1.25
bin-true no-host 107,307 66,429 763,850 125,869 125,877 7.12 1.17
configure.cpython no-host 2,217,534 2,245,319 6,220,176 2,225,904 2,216,496 2.80 1.00
configure.ocaml no-host 410,287 391,235 645,712 412,701 412,344 1.57 1.01
configure.tcc no-host 6,561 5,468 23,673 6,972 6,916 3.61 1.06
configure.util-linux no-host 2,103,257 2,258,517 5,347,721 2,001,149 1,991,636 2.54 0.95
configure.yash no-host 256,801 245,043 386,012 257,945 257,988 1.50 1.00
hello-world no-host 152 81 3,733 355 343 24.56 2.34

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.0 9.0 8.5 4.94 2.03
bin-true no-host 3.0 1.4 17.6 8.1 7.5 5.83 2.70
configure.cpython no-host 27.1 27.4 27.4 27.3 27.5 1.01 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 20.6 1.00 0.99
configure.tcc no-host 19.3 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.0 30.3 30.1 30.1 1.00 1.00
configure.yash no-host 24.5 24.5 24.1 24.5 24.4 0.98 1.00
hello-world no-host 2.9 1.4 17.6 6.4 5.9 6.09 2.23

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.4 3,773 3,773 0 695 1,850 1,228 2 0 50,000 0
bin-true no-host 811 1 2 2.6 8.1 154,738 13,220 2,877 9,745 78,319 66,674 3,008 3 50,000 0
configure.cpython no-host 15,228 1 62 15.0 27.3 1,772,720 49,854 28,587 86,398 908,071 778,251 22,694 60 50,000 0
configure.util-linux no-host 14,405 3 61 21.3 30.1 2,703,488 29,146 65,890 109,676 1,320,577 1,273,235 27,391 41 131,780 1
configure.ocaml no-host 3,829 1 2 2.6 20.4 150,094 11,051 5,221 7,532 71,604 70,958 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,579 30,579 0 1,521 14,774 14,284 226 0 50,000 0
configure.yash no-host 1,833 1 2 2.6 24.5 139,747 8,020 6,679 6,337 70,279 63,131 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,322 64,530 42,740 4,572 54,519 57,231 270 3 85,480 1
hello-world no-host 3 0 0 0.2 5.9 3,772 3,772 0 696 1,850 1,226 2 0 50,000 0
bin-true no-host 811 1 2 2.6 7.5 154,737 13,063 2,815 9,746 78,319 66,672 3,008 3 50,000 0
configure.cpython no-host 15,380 1 61 14.9 27.5 1,772,719 49,105 28,525 86,399 908,071 778,249 22,694 60 50,000 0
configure.util-linux no-host 14,327 3 60 21.3 30.1 2,703,488 42,741 65,828 109,678 1,320,577 1,273,233 27,391 41 131,656 1
configure.ocaml no-host 3,832 1 2 2.6 20.6 150,094 10,989 5,159 7,534 71,604 70,956 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,579 30,579 0 1,523 14,774 14,282 226 0 50,000 0
configure.yash no-host 1,849 1 2 2.6 24.4 139,747 7,958 6,617 6,339 70,279 63,129 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,321 64,468 42,678 4,573 54,519 57,229 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 10 9 4.5 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 457 403 58 22.0 osh-cpython
31 no-host abuild-print-help 22 11 12 9.0 osh-native
39 no-host abuild-print-help 21 13 8 8.5 osh-native-souffle
1 no-host bin-true 676 510 197 3.0 bash
9 no-host bin-true 545 429 125 1.4 dash
17 no-host bin-true 2,260 1,478 1,052 17.6 osh-cpython
25 no-host bin-true 811 580 246 8.1 osh-native
33 no-host bin-true 811 569 255 7.5 osh-native-souffle
2 no-host configure.cpython 14,951 9,056 6,267 27.1 bash
10 no-host configure.cpython 15,207 9,144 6,487 27.4 dash
18 no-host configure.cpython 28,772 17,532 13,133 27.4 osh-cpython
26 no-host configure.cpython 15,228 8,918 6,576 27.3 osh-native
34 no-host configure.cpython 15,380 9,060 6,496 27.5 osh-native-souffle
4 no-host configure.ocaml 3,797 1,625 1,211 20.6 bash
12 no-host configure.ocaml 3,743 1,604 1,161 20.6 dash
20 no-host configure.ocaml 4,657 2,268 1,603 20.6 osh-cpython
28 no-host configure.ocaml 3,829 1,615 1,249 20.4 osh-native
36 no-host configure.ocaml 3,832 1,688 1,181 20.6 osh-native-souffle
5 no-host configure.tcc 48 29 19 19.3 bash
13 no-host configure.tcc 41 28 14 19.3 dash
21 no-host configure.tcc 196 159 40 19.3 osh-cpython
29 no-host configure.tcc 49 33 16 19.3 osh-native
37 no-host configure.tcc 48 33 15 19.3 osh-native-souffle
3 no-host configure.util-linux 14,051 8,883 5,638 30.3 bash
11 no-host configure.util-linux 14,913 9,255 6,144 30.0 dash
19 no-host configure.util-linux 31,763 21,076 11,813 30.3 osh-cpython
27 no-host configure.util-linux 14,405 8,836 5,765 30.1 osh-native
35 no-host configure.util-linux 14,327 8,536 5,986 30.1 osh-native-souffle
6 no-host configure.yash 1,834 1,074 769 24.5 bash
14 no-host configure.yash 1,787 1,038 749 24.5 dash
22 no-host configure.yash 2,455 1,577 922 24.1 osh-cpython
30 no-host configure.yash 1,833 1,100 736 24.5 osh-native
38 no-host configure.yash 1,849 1,010 842 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 41 8 17.6 osh-cpython
24 no-host hello-world 3 3 0 6.4 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,558 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,103 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,326 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,190 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,052 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,307 0 0 0 8 0 1,995 53 bash
9 no-host bin-true 66,429 0 0 0 8 0 1,989 100 dash
17 no-host bin-true 763,850 0 0 0 8 0 1,996 182 osh-cpython
25 no-host bin-true 125,869 0 0 0 16 0 1,998 247 osh-native
33 no-host bin-true 125,877 0 0 0 16 0 1,991 61 osh-native-souffle
2 no-host configure.cpython 2,217,534 0 0 0 32,960 0 14,529 1,186 bash
10 no-host configure.cpython 2,245,319 0 0 0 32,992 0 14,660 915 dash
18 no-host configure.cpython 6,220,176 0 0 0 27,512 0 13,267 1,252 osh-cpython
26 no-host configure.cpython 2,225,904 0 0 0 27,520 0 13,272 1,010 osh-native
34 no-host configure.cpython 2,216,496 0 0 0 27,520 0 13,239 1,107 osh-native-souffle
4 no-host configure.ocaml 410,287 0 0 0 5,120 0 1,944 156 bash
12 no-host configure.ocaml 391,235 0 0 0 5,112 0 1,946 151 dash
20 no-host configure.ocaml 645,712 1 0 0 5,112 0 1,856 187 osh-cpython
28 no-host configure.ocaml 412,701 0 0 0 5,120 0 1,927 180 osh-native
36 no-host configure.ocaml 412,344 0 0 0 5,120 0 1,930 181 osh-native-souffle
5 no-host configure.tcc 6,561 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,468 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,673 0 0 0 96 0 53 13 osh-cpython
29 no-host configure.tcc 6,972 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,916 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,103,257 0 0 0 42,400 0 18,424 1,092 bash
11 no-host configure.util-linux 2,258,517 0 0 0 42,584 0 17,498 1,152 dash
19 no-host configure.util-linux 5,347,721 8 0 0 39,120 0 16,953 1,255 osh-cpython
27 no-host configure.util-linux 2,001,149 0 0 0 39,128 0 16,972 1,031 osh-native
35 no-host configure.util-linux 1,991,636 7 0 0 39,136 0 16,954 1,064 osh-native-souffle
6 no-host configure.yash 256,801 0 0 0 4,120 0 871 72 bash
14 no-host configure.yash 245,043 0 0 0 3,720 0 871 88 dash
22 no-host configure.yash 386,012 0 0 0 3,728 0 849 125 osh-cpython
30 no-host configure.yash 257,945 0 0 0 3,736 0 848 89 osh-native
38 no-host configure.yash 257,988 0 0 0 3,736 0 847 98 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,733 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 355 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-7cfa92d8
dash dash-0ebcf347
osh-cpython osh-6630ba76
osh-native osh-d3ab861e
osh-native-souffle osh-adcbaeb2
host label host id
no-host no-host-556df3ee