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 py bash ratio native bash ratio
abuild-print-help no-host 20 10 461 23 23.31 1.17
bin-true no-host 691 550 2,278 826 3.29 1.19
configure.cpython no-host 15,363 15,580 29,186 15,557 1.90 1.01
configure.ocaml no-host 3,915 3,842 4,684 3,890 1.20 0.99
configure.tcc no-host 49 43 194 50 3.95 1.01
configure.util-linux no-host 14,325 15,224 31,943 14,561 2.23 1.02
configure.yash no-host 1,874 1,859 2,495 1,905 1.33 1.02
hello-world no-host 2 1 52 3 31.40 1.76

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,535 1,110 23,245 3,184 9.17 1.26
bin-true no-host 106,305 66,432 751,071 124,122 7.07 1.17
configure.cpython no-host 2,223,534 2,246,685 6,143,244 2,227,021 2.76 1.00
configure.ocaml no-host 410,845 391,210 638,069 413,816 1.55 1.01
configure.tcc no-host 6,561 5,470 23,243 6,975 3.54 1.06
configure.util-linux no-host 2,101,097 2,256,113 5,329,513 2,002,812 2.54 0.95
configure.yash no-host 255,640 244,774 384,509 257,997 1.50 1.01
hello-world no-host 156 83 3,658 344 23.45 2.21

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 py bash ratio native bash ratio
abuild-print-help no-host 4.5 3.4 21.8 8.8 4.88 1.97
bin-true no-host 3.0 1.6 17.3 8.0 5.74 2.65
configure.cpython no-host 27.3 27.3 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.4 19.4 19.1 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.0 30.3 30.3 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.2 1.00 0.99
hello-world no-host 2.9 1.4 17.3 6.3 6.00 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.3 6.3 3,717 3,717 0 684 1,869 1,164 2 0 50,000 0
bin-true no-host 826 1 2 2.7 8.0 154,682 12,988 2,795 11,737 78,338 64,607 5,012 3 50,000 0
configure.cpython no-host 15,557 2 66 15.8 27.4 1,772,598 49,193 28,504 101,770 908,045 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,561 3 64 22.2 30.3 2,703,262 44,762 65,788 126,121 1,320,489 1,256,652 49,081 41 131,576 1
configure.ocaml no-host 3,890 1 2 2.7 20.6 150,024 11,041 5,134 8,602 71,623 69,799 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,517 30,517 0 1,599 14,793 14,125 350 0 50,000 0
configure.yash no-host 1,905 1 2 2.6 24.2 139,681 7,960 6,596 7,554 70,295 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.8 116,260 64,451 42,659 4,609 54,538 57,113 478 3 85,318 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 18 2 4.5 bash
15 no-host abuild-print-help 10 5 5 3.4 dash
23 no-host abuild-print-help 461 424 40 21.8 osh-cpython
31 no-host abuild-print-help 23 14 10 8.8 osh-native
1 no-host bin-true 691 510 211 3.0 bash
9 no-host bin-true 550 426 135 1.6 dash
17 no-host bin-true 2,278 1,463 1,078 17.3 osh-cpython
25 no-host bin-true 826 570 269 8.0 osh-native
2 no-host configure.cpython 15,363 9,230 6,545 27.3 bash
10 no-host configure.cpython 15,580 9,609 6,407 27.3 dash
18 no-host configure.cpython 29,186 17,754 13,332 27.4 osh-cpython
26 no-host configure.cpython 15,557 9,257 6,579 27.4 osh-native
4 no-host configure.ocaml 3,915 1,745 1,212 20.4 bash
12 no-host configure.ocaml 3,842 1,593 1,266 20.6 dash
20 no-host configure.ocaml 4,684 2,296 1,596 20.6 osh-cpython
28 no-host configure.ocaml 3,890 1,666 1,263 20.6 osh-native
5 no-host configure.tcc 49 32 17 19.4 bash
13 no-host configure.tcc 43 20 24 19.4 dash
21 no-host configure.tcc 194 163 34 19.1 osh-cpython
29 no-host configure.tcc 50 31 19 19.3 osh-native
3 no-host configure.util-linux 14,325 8,932 5,879 30.3 bash
11 no-host configure.util-linux 15,224 9,360 6,375 30.0 dash
19 no-host configure.util-linux 31,943 21,101 11,986 30.3 osh-cpython
27 no-host configure.util-linux 14,561 8,602 6,152 30.3 osh-native
6 no-host configure.yash 1,874 1,130 750 24.4 bash
14 no-host configure.yash 1,859 1,062 802 24.4 dash
22 no-host configure.yash 2,495 1,587 949 24.4 osh-cpython
30 no-host configure.yash 1,905 1,059 850 24.2 osh-native
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 52 28 23 17.3 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native

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,535 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,110 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,245 0 0 0 8 0 47 12 osh-cpython
31 no-host abuild-print-help 3,184 0 0 0 16 0 42 1 osh-native
1 no-host bin-true 106,305 0 0 0 8 0 1,988 129 bash
9 no-host bin-true 66,432 0 0 0 8 0 1,985 108 dash
17 no-host bin-true 751,071 0 0 0 8 0 2,000 189 osh-cpython
25 no-host bin-true 124,122 0 0 0 16 0 1,988 80 osh-native
2 no-host configure.cpython 2,223,534 0 0 0 32,928 0 14,475 1,051 bash
10 no-host configure.cpython 2,246,685 0 0 0 32,992 0 14,533 1,242 dash
18 no-host configure.cpython 6,143,244 0 0 0 27,512 0 13,232 1,329 osh-cpython
26 no-host configure.cpython 2,227,021 0 0 0 27,520 0 13,281 1,218 osh-native
4 no-host configure.ocaml 410,845 0 0 0 5,120 0 1,946 235 bash
12 no-host configure.ocaml 391,210 0 0 0 5,112 0 1,874 162 dash
20 no-host configure.ocaml 638,069 0 0 0 5,112 0 1,858 174 osh-cpython
28 no-host configure.ocaml 413,816 0 0 0 5,120 0 1,935 189 osh-native
5 no-host configure.tcc 6,561 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,470 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,243 0 0 0 96 0 54 18 osh-cpython
29 no-host configure.tcc 6,975 0 0 0 104 0 46 1 osh-native
3 no-host configure.util-linux 2,101,097 1 0 0 42,408 0 18,498 1,238 bash
11 no-host configure.util-linux 2,256,113 3 0 0 42,592 0 17,411 1,169 dash
19 no-host configure.util-linux 5,329,513 15 0 0 39,112 0 16,981 1,369 osh-cpython
27 no-host configure.util-linux 2,002,812 0 0 0 39,128 0 17,037 1,170 osh-native
6 no-host configure.yash 255,640 0 0 0 4,120 0 866 81 bash
14 no-host configure.yash 244,774 0 0 0 3,720 0 870 80 dash
22 no-host configure.yash 384,509 0 0 0 3,728 0 857 102 osh-cpython
30 no-host configure.yash 257,997 0 0 0 3,736 0 849 87 osh-native
0 no-host hello-world 156 0 0 0 8 0 1 1 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,658 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-a8f586b2
dash dash-308ec8e6
osh-cpython osh-88ceff18
osh-native osh-b75b16f0
host label host id
no-host no-host-13226fd6