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 10 477 22 21 24.43 1.15
bin-true no-host 677 543 2,305 818 814 3.40 1.21
configure.cpython no-host 15,223 15,179 29,579 15,477 15,462 1.94 1.02
configure.ocaml no-host 3,838 3,746 4,715 3,843 3,831 1.23 1.00
configure.tcc no-host 48 42 203 49 49 4.25 1.03
configure.util-linux no-host 14,214 14,996 31,761 14,426 14,412 2.23 1.01
configure.yash no-host 1,836 1,769 2,486 1,853 1,840 1.35 1.01
hello-world no-host 1 1 56 3 3 38.81 2.09

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,087 23,690 3,189 3,115 9.27 1.25
bin-true no-host 105,281 65,443 772,663 126,222 126,188 7.34 1.20
configure.cpython no-host 2,217,511 2,239,269 6,206,056 2,213,833 2,206,510 2.80 1.00
configure.ocaml no-host 410,222 390,989 646,449 413,247 412,358 1.58 1.01
configure.tcc no-host 6,554 5,474 24,092 6,986 6,908 3.68 1.07
configure.util-linux no-host 2,103,038 2,260,013 5,384,025 2,002,666 1,988,173 2.56 0.95
configure.yash no-host 256,636 244,655 389,087 258,280 258,083 1.52 1.01
hello-world no-host 152 82 3,949 339 335 25.98 2.23

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 22.7 8.9 8.5 5.09 2.00
bin-true no-host 3.0 1.4 18.4 8.0 7.7 6.09 2.65
configure.cpython no-host 27.3 27.5 27.5 27.4 27.5 1.01 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.3 19.4 19.3 19.0 19.4 1.00 0.99
configure.util-linux no-host 30.3 30.1 30.3 30.3 30.0 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.2 24.2 1.01 1.00
hello-world no-host 2.9 1.4 18.1 6.2 5.8 6.28 2.14

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,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 818 1 2 2.6 8.0 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,477 1 66 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,426 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,843 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.0 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,853 1 2 2.5 24.2 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 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.8 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 814 1 2 2.6 7.7 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,462 1 63 14.9 27.5 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,412 3 62 21.2 30.0 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,831 1 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,840 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.5 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 17 3 4.5 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 477 432 48 22.7 osh-cpython
31 no-host abuild-print-help 22 18 5 8.9 osh-native
39 no-host abuild-print-help 21 10 11 8.5 osh-native-souffle
1 no-host bin-true 677 512 195 3.0 bash
9 no-host bin-true 543 421 132 1.4 dash
17 no-host bin-true 2,305 1,478 1,085 18.4 osh-cpython
25 no-host bin-true 818 593 239 8.0 osh-native
33 no-host bin-true 814 581 249 7.7 osh-native-souffle
2 no-host configure.cpython 15,223 9,080 6,527 27.3 bash
10 no-host configure.cpython 15,179 9,286 6,321 27.5 dash
18 no-host configure.cpython 29,579 18,393 13,124 27.5 osh-cpython
26 no-host configure.cpython 15,477 8,909 6,845 27.4 osh-native
34 no-host configure.cpython 15,462 9,100 6,485 27.5 osh-native-souffle
4 no-host configure.ocaml 3,838 1,635 1,238 20.6 bash
12 no-host configure.ocaml 3,746 1,599 1,169 20.6 dash
20 no-host configure.ocaml 4,715 2,336 1,591 20.6 osh-cpython
28 no-host configure.ocaml 3,843 1,667 1,217 20.6 osh-native
36 no-host configure.ocaml 3,831 1,596 1,272 20.6 osh-native-souffle
5 no-host configure.tcc 48 29 19 19.3 bash
13 no-host configure.tcc 42 34 8 19.4 dash
21 no-host configure.tcc 203 160 47 19.3 osh-cpython
29 no-host configure.tcc 49 28 22 19.0 osh-native
37 no-host configure.tcc 49 22 27 19.4 osh-native-souffle
3 no-host configure.util-linux 14,214 9,031 5,653 30.3 bash
11 no-host configure.util-linux 14,996 9,205 6,302 30.1 dash
19 no-host configure.util-linux 31,761 21,236 11,650 30.3 osh-cpython
27 no-host configure.util-linux 14,426 8,540 6,086 30.3 osh-native
35 no-host configure.util-linux 14,412 8,613 5,998 30.0 osh-native-souffle
6 no-host configure.yash 1,836 1,046 798 24.2 bash
14 no-host configure.yash 1,769 1,021 751 24.2 dash
22 no-host configure.yash 2,486 1,527 1,002 24.4 osh-cpython
30 no-host configure.yash 1,853 1,059 791 24.2 osh-native
38 no-host configure.yash 1,840 1,087 757 24.2 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 43 13 18.1 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 1 bash
15 no-host abuild-print-help 1,087 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,690 0 0 0 8 0 44 11 osh-cpython
31 no-host abuild-print-help 3,189 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,115 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,281 0 0 0 8 0 1,994 69 bash
9 no-host bin-true 65,443 0 0 0 8 0 1,988 61 dash
17 no-host bin-true 772,663 0 0 0 8 0 1,998 307 osh-cpython
25 no-host bin-true 126,222 0 0 0 16 0 1,985 84 osh-native
33 no-host bin-true 126,188 0 0 0 16 0 1,987 51 osh-native-souffle
2 no-host configure.cpython 2,217,511 0 0 0 32,928 0 14,527 1,039 bash
10 no-host configure.cpython 2,239,269 0 0 0 32,992 0 14,541 1,113 dash
18 no-host configure.cpython 6,206,056 1 0 0 27,512 0 13,223 1,160 osh-cpython
26 no-host configure.cpython 2,213,833 0 0 0 27,520 0 13,240 1,013 osh-native
34 no-host configure.cpython 2,206,510 0 0 0 27,520 0 13,210 985 osh-native-souffle
4 no-host configure.ocaml 410,222 0 0 0 5,120 0 1,962 174 bash
12 no-host configure.ocaml 390,989 0 0 0 5,112 0 1,942 135 dash
20 no-host configure.ocaml 646,449 0 0 0 5,112 0 1,864 183 osh-cpython
28 no-host configure.ocaml 413,247 0 0 0 5,120 0 1,925 177 osh-native
36 no-host configure.ocaml 412,358 0 0 0 5,120 0 1,934 161 osh-native-souffle
5 no-host configure.tcc 6,554 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,474 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,092 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,986 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,908 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,103,038 0 0 0 42,400 0 18,534 970 bash
11 no-host configure.util-linux 2,260,013 2 0 0 42,584 0 17,499 1,072 dash
19 no-host configure.util-linux 5,384,025 15 0 0 39,112 0 17,020 1,077 osh-cpython
27 no-host configure.util-linux 2,002,666 0 0 0 39,120 0 17,006 935 osh-native
35 no-host configure.util-linux 1,988,173 0 0 0 39,136 0 16,997 997 osh-native-souffle
6 no-host configure.yash 256,636 0 0 0 4,120 0 870 80 bash
14 no-host configure.yash 244,655 0 0 0 3,720 0 868 79 dash
22 no-host configure.yash 389,087 0 0 0 3,728 0 853 80 osh-cpython
30 no-host configure.yash 258,280 0 0 0 3,736 0 846 80 osh-native
38 no-host configure.yash 258,083 0 0 0 3,736 0 845 73 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,949 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 339 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 335 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-0335ce3c
dash dash-0ebcf347
osh-cpython osh-ada81d64
osh-native osh-f0e9d76e
osh-native-souffle osh-043c42a5
host label host id
no-host no-host-556df3ee