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 452 22 21 23.59 1.15
bin-true no-host 676 543 2,241 810 835 3.32 1.20
configure.cpython no-host 15,081 15,185 28,657 15,305 15,269 1.90 1.01
configure.ocaml no-host 3,795 3,791 4,649 3,869 3,841 1.23 1.02
configure.tcc no-host 48 42 192 50 49 4.02 1.05
configure.util-linux no-host 14,076 14,885 31,187 14,449 14,352 2.22 1.03
configure.yash no-host 1,867 1,814 2,532 1,827 1,843 1.36 0.98
hello-world no-host 1 1 51 3 3 34.38 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,556 1,113 23,212 3,188 3,145 9.08 1.25
bin-true no-host 104,324 66,466 757,271 125,078 126,813 7.26 1.20
configure.cpython no-host 2,219,504 2,251,510 6,216,856 2,222,122 2,216,198 2.80 1.00
configure.ocaml no-host 410,235 391,549 645,705 413,478 412,376 1.57 1.01
configure.tcc no-host 6,582 5,482 23,543 7,010 6,950 3.58 1.07
configure.util-linux no-host 2,106,673 2,258,370 5,319,287 2,003,515 1,990,468 2.52 0.95
configure.yash no-host 255,999 245,094 386,990 258,874 258,227 1.51 1.01
hello-world no-host 151 85 3,728 353 348 24.69 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 8.9 8.7 4.94 2.00
bin-true no-host 3.0 1.3 17.7 8.3 7.7 5.87 2.74
configure.cpython no-host 27.5 27.4 27.4 27.4 27.5 1.00 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.4 19.4 19.3 19.1 1.01 1.00
configure.util-linux no-host 30.4 30.3 30.1 30.4 30.0 0.99 1.00
configure.yash no-host 24.4 24.4 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.8 1.6 17.6 6.2 5.8 6.38 2.24

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.2 3,775 3,775 0 694 1,852 1,229 2 0 50,000 0
bin-true no-host 810 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,305 1 60 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,449 3 59 21.3 30.4 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 50 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,827 1 2 2.6 24.4 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 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.8 3,774 3,774 0 695 1,852 1,227 2 0 50,000 0
bin-true no-host 835 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,269 1 61 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,352 3 61 21.3 30.0 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,841 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.1 30,581 30,581 0 1,522 14,776 14,283 226 0 50,000 0
configure.yash no-host 1,843 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 15 5 4.5 bash
15 no-host abuild-print-help 10 5 5 3.5 dash
23 no-host abuild-print-help 452 389 65 22.0 osh-cpython
31 no-host abuild-print-help 22 13 10 8.9 osh-native
39 no-host abuild-print-help 21 13 9 8.7 osh-native-souffle
1 no-host bin-true 676 501 206 3.0 bash
9 no-host bin-true 543 410 141 1.3 dash
17 no-host bin-true 2,241 1,446 1,051 17.7 osh-cpython
25 no-host bin-true 810 586 239 8.3 osh-native
33 no-host bin-true 835 604 245 7.7 osh-native-souffle
2 no-host configure.cpython 15,081 9,044 6,432 27.5 bash
10 no-host configure.cpython 15,185 9,131 6,474 27.4 dash
18 no-host configure.cpython 28,657 17,616 12,887 27.4 osh-cpython
26 no-host configure.cpython 15,305 8,935 6,629 27.4 osh-native
34 no-host configure.cpython 15,269 9,065 6,378 27.5 osh-native-souffle
4 no-host configure.ocaml 3,795 1,674 1,159 20.6 bash
12 no-host configure.ocaml 3,791 1,548 1,264 20.6 dash
20 no-host configure.ocaml 4,649 2,301 1,548 20.6 osh-cpython
28 no-host configure.ocaml 3,869 1,582 1,323 20.4 osh-native
36 no-host configure.ocaml 3,841 1,615 1,260 20.6 osh-native-souffle
5 no-host configure.tcc 48 34 15 19.3 bash
13 no-host configure.tcc 42 28 14 19.4 dash
21 no-host configure.tcc 192 133 62 19.4 osh-cpython
29 no-host configure.tcc 50 33 18 19.3 osh-native
37 no-host configure.tcc 49 29 20 19.1 osh-native-souffle
3 no-host configure.util-linux 14,076 8,859 5,690 30.4 bash
11 no-host configure.util-linux 14,885 9,118 6,253 30.3 dash
19 no-host configure.util-linux 31,187 20,657 11,602 30.1 osh-cpython
27 no-host configure.util-linux 14,449 8,519 6,119 30.4 osh-native
35 no-host configure.util-linux 14,352 8,514 6,027 30.0 osh-native-souffle
6 no-host configure.yash 1,867 1,034 811 24.4 bash
14 no-host configure.yash 1,814 1,057 760 24.4 dash
22 no-host configure.yash 2,532 1,490 1,082 24.4 osh-cpython
30 no-host configure.yash 1,827 1,125 706 24.4 osh-native
38 no-host configure.yash 1,843 1,097 750 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 51 35 15 17.6 osh-cpython
24 no-host hello-world 3 0 3 6.2 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,556 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,113 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,212 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,188 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,145 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,324 0 0 0 8 0 1,988 63 bash
9 no-host bin-true 66,466 0 0 0 8 0 1,987 43 dash
17 no-host bin-true 757,271 0 0 0 8 0 1,997 159 osh-cpython
25 no-host bin-true 125,078 0 0 0 16 0 1,989 47 osh-native
33 no-host bin-true 126,813 0 0 0 16 0 1,993 61 osh-native-souffle
2 no-host configure.cpython 2,219,504 0 0 0 32,928 0 14,428 1,120 bash
10 no-host configure.cpython 2,251,510 0 0 0 32,992 0 14,606 973 dash
18 no-host configure.cpython 6,216,856 1 0 0 27,512 0 13,272 1,255 osh-cpython
26 no-host configure.cpython 2,222,122 0 0 0 27,520 0 13,284 1,054 osh-native
34 no-host configure.cpython 2,216,198 0 0 0 27,520 0 13,292 1,102 osh-native-souffle
4 no-host configure.ocaml 410,235 0 0 0 5,120 0 1,946 175 bash
12 no-host configure.ocaml 391,549 0 0 0 5,112 0 1,935 134 dash
20 no-host configure.ocaml 645,705 0 0 0 5,112 0 1,863 165 osh-cpython
28 no-host configure.ocaml 413,478 0 0 0 5,120 0 1,927 166 osh-native
36 no-host configure.ocaml 412,376 0 0 0 5,120 0 1,929 175 osh-native-souffle
5 no-host configure.tcc 6,582 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,482 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,543 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 7,010 0 0 0 104 0 47 6 osh-native
37 no-host configure.tcc 6,950 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,106,673 0 0 0 42,400 0 18,606 1,024 bash
11 no-host configure.util-linux 2,258,370 0 0 0 42,584 0 17,447 1,018 dash
19 no-host configure.util-linux 5,319,287 10 0 0 39,112 0 16,953 1,230 osh-cpython
27 no-host configure.util-linux 2,003,515 0 0 0 39,120 0 16,902 1,081 osh-native
35 no-host configure.util-linux 1,990,468 2 0 0 39,136 0 16,990 1,111 osh-native-souffle
6 no-host configure.yash 255,999 0 0 0 4,120 0 878 101 bash
14 no-host configure.yash 245,094 0 0 0 3,720 0 866 73 dash
22 no-host configure.yash 386,990 0 0 0 3,728 0 853 97 osh-cpython
30 no-host configure.yash 258,874 0 0 0 3,736 0 851 78 osh-native
38 no-host configure.yash 258,227 0 0 0 3,736 0 849 71 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,728 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 353 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 348 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-57774321
dash dash-0ebcf347
osh-cpython osh-f22af87f
osh-native osh-898f6d5e
osh-native-souffle osh-e011ed13
host label host id
no-host no-host-556df3ee