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 9 473 23 21 23.94 1.14
bin-true no-host 683 540 2,295 815 824 3.36 1.19
configure.cpython no-host 15,251 15,217 29,255 15,414 15,654 1.92 1.01
configure.ocaml no-host 3,846 3,789 4,705 3,868 3,890 1.22 1.01
configure.tcc no-host 48 43 204 49 50 4.24 1.02
configure.util-linux no-host 14,139 15,109 31,824 14,553 14,793 2.25 1.03
configure.yash no-host 1,836 1,779 2,508 1,866 1,880 1.37 1.02
hello-world no-host 2 1 58 3 3 37.57 1.87

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,551 1,101 23,695 3,221 3,062 9.29 1.26
bin-true no-host 107,328 66,453 774,740 125,255 127,262 7.22 1.17
configure.cpython no-host 2,226,203 2,234,678 6,212,281 2,211,025 2,211,893 2.79 0.99
configure.ocaml no-host 410,574 390,873 647,866 413,258 412,657 1.58 1.01
configure.tcc no-host 6,539 5,471 24,076 6,970 6,905 3.68 1.07
configure.util-linux no-host 2,100,832 2,260,514 5,389,392 1,997,619 1,988,898 2.57 0.95
configure.yash no-host 256,670 244,413 388,567 258,228 257,120 1.51 1.01
hello-world no-host 153 78 3,946 343 337 25.79 2.24

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 22.4 8.9 8.7 5.18 2.06
bin-true no-host 3.0 1.6 18.2 8.1 7.6 6.05 2.70
configure.cpython no-host 27.4 27.3 27.4 27.4 27.3 1.00 1.00
configure.ocaml no-host 20.4 20.4 20.6 20.6 20.4 1.01 1.01
configure.tcc no-host 19.4 19.3 19.3 19.4 19.1 0.99 1.00
configure.util-linux no-host 30.1 30.1 30.1 30.3 30.0 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.4 24.2 1.01 1.01
hello-world no-host 2.9 1.4 18.1 6.3 5.9 6.28 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,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 815 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,414 2 64 14.9 27.4 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,553 3 62 21.2 30.3 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,868 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,866 1 2 2.5 24.4 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 824 1 2 2.6 7.6 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,654 2 63 14.9 27.3 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,793 3 63 21.2 30.0 2,702,513 53,693 65,629 108,693 1,290,640 1,303,180 32,239 41 131,258 1
configure.ocaml no-host 3,890 1 2 2.6 20.4 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.1 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,880 1 2 2.5 24.2 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,291 64,341 42,551 4,533 54,436 57,322 277 3 85,102 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 15 5 4.3 bash
15 no-host abuild-print-help 9 9 1 3.4 dash
23 no-host abuild-print-help 473 446 31 22.4 osh-cpython
31 no-host abuild-print-help 23 18 5 8.9 osh-native
39 no-host abuild-print-help 21 15 7 8.7 osh-native-souffle
1 no-host bin-true 683 499 214 3.0 bash
9 no-host bin-true 540 417 133 1.6 dash
17 no-host bin-true 2,295 1,470 1,084 18.2 osh-cpython
25 no-host bin-true 815 587 243 8.1 osh-native
33 no-host bin-true 824 582 255 7.6 osh-native-souffle
2 no-host configure.cpython 15,251 9,104 6,550 27.4 bash
10 no-host configure.cpython 15,217 9,221 6,417 27.3 dash
18 no-host configure.cpython 29,255 17,826 13,341 27.4 osh-cpython
26 no-host configure.cpython 15,414 9,046 6,629 27.4 osh-native
34 no-host configure.cpython 15,654 9,067 6,723 27.3 osh-native-souffle
4 no-host configure.ocaml 3,846 1,698 1,183 20.4 bash
12 no-host configure.ocaml 3,789 1,634 1,174 20.4 dash
20 no-host configure.ocaml 4,705 2,225 1,693 20.6 osh-cpython
28 no-host configure.ocaml 3,868 1,650 1,256 20.6 osh-native
36 no-host configure.ocaml 3,890 1,737 1,189 20.4 osh-native-souffle
5 no-host configure.tcc 48 31 18 19.4 bash
13 no-host configure.tcc 43 32 11 19.3 dash
21 no-host configure.tcc 204 156 51 19.3 osh-cpython
29 no-host configure.tcc 49 28 22 19.4 osh-native
37 no-host configure.tcc 50 25 25 19.1 osh-native-souffle
3 no-host configure.util-linux 14,139 8,990 5,627 30.1 bash
11 no-host configure.util-linux 15,109 9,298 6,304 30.1 dash
19 no-host configure.util-linux 31,824 21,054 11,880 30.1 osh-cpython
27 no-host configure.util-linux 14,553 8,725 6,025 30.3 osh-native
35 no-host configure.util-linux 14,793 8,928 6,054 30.0 osh-native-souffle
6 no-host configure.yash 1,836 1,018 826 24.2 bash
14 no-host configure.yash 1,779 1,021 762 24.4 dash
22 no-host configure.yash 2,508 1,572 978 24.4 osh-cpython
30 no-host configure.yash 1,866 1,091 780 24.4 osh-native
38 no-host configure.yash 1,880 1,058 827 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 58 41 16 18.1 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 0 3 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,551 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,101 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,695 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,221 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,062 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,328 0 0 0 8 0 1,991 147 bash
9 no-host bin-true 66,453 0 0 0 8 0 1,989 57 dash
17 no-host bin-true 774,740 0 0 0 8 0 1,998 158 osh-cpython
25 no-host bin-true 125,255 0 0 0 16 0 1,985 96 osh-native
33 no-host bin-true 127,262 0 0 0 16 0 1,995 73 osh-native-souffle
2 no-host configure.cpython 2,226,203 0 0 0 32,928 0 14,540 1,048 bash
10 no-host configure.cpython 2,234,678 0 0 0 32,992 0 14,600 1,001 dash
18 no-host configure.cpython 6,212,281 0 0 0 27,512 0 13,193 1,074 osh-cpython
26 no-host configure.cpython 2,211,025 0 0 0 27,520 0 13,250 951 osh-native
34 no-host configure.cpython 2,211,893 0 0 0 27,520 0 13,155 1,056 osh-native-souffle
4 no-host configure.ocaml 410,574 0 0 0 5,120 0 1,964 163 bash
12 no-host configure.ocaml 390,873 0 0 0 5,112 0 1,864 145 dash
20 no-host configure.ocaml 647,866 1 0 0 5,112 0 1,858 162 osh-cpython
28 no-host configure.ocaml 413,258 0 0 0 5,120 0 1,923 178 osh-native
36 no-host configure.ocaml 412,657 0 0 0 5,120 0 1,935 138 osh-native-souffle
5 no-host configure.tcc 6,539 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,471 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,076 0 0 0 96 0 53 13 osh-cpython
29 no-host configure.tcc 6,970 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,905 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,100,832 0 0 0 42,400 0 18,648 1,043 bash
11 no-host configure.util-linux 2,260,514 0 0 0 42,584 0 17,280 1,147 dash
19 no-host configure.util-linux 5,389,392 7 0 0 39,120 0 16,974 1,153 osh-cpython
27 no-host configure.util-linux 1,997,619 0 0 0 39,128 0 16,994 987 osh-native
35 no-host configure.util-linux 1,988,898 0 0 0 39,136 0 16,924 978 osh-native-souffle
6 no-host configure.yash 256,670 0 0 0 4,120 0 869 76 bash
14 no-host configure.yash 244,413 0 0 0 3,720 0 869 70 dash
22 no-host configure.yash 388,567 0 0 0 3,728 0 853 75 osh-cpython
30 no-host configure.yash 258,228 0 0 0 3,736 0 851 94 osh-native
38 no-host configure.yash 257,120 0 0 0 3,736 0 848 73 osh-native-souffle
0 no-host hello-world 153 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,946 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-bc6559f7
dash dash-0ebcf347
osh-cpython osh-1b0de21b
osh-native osh-1e6796b2
osh-native-souffle osh-ecc6c02f
host label host id
no-host no-host-556df3ee