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 19 9 441 22 23.11 1.16
bin-true no-host 667 545 2,211 807 3.31 1.21
configure.cpython no-host 14,804 14,875 28,044 15,022 1.89 1.01
configure.ocaml no-host 3,779 3,705 4,559 3,792 1.21 1.00
configure.tcc no-host 47 41 191 48 4.04 1.02
configure.util-linux no-host 13,807 14,696 30,661 14,307 2.22 1.04
configure.yash no-host 1,794 1,749 2,401 1,820 1.34 1.01
hello-world no-host 2 1 50 3 31.25 2.03

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,528 1,092 23,473 3,199 9.29 1.27
bin-true no-host 107,422 65,381 749,662 126,217 6.98 1.17
configure.cpython no-host 2,223,389 2,245,816 6,128,529 2,236,043 2.76 1.01
configure.ocaml no-host 410,441 390,349 640,270 413,929 1.56 1.01
configure.tcc no-host 6,560 5,468 23,280 7,011 3.55 1.07
configure.util-linux no-host 2,096,155 2,257,359 5,324,301 2,015,944 2.54 0.96
configure.yash no-host 256,186 244,568 384,904 259,111 1.50 1.01
hello-world no-host 152 83 3,679 348 24.20 2.29

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.3 3.5 21.9 9.0 5.06 2.09
bin-true no-host 3.0 1.4 17.4 8.3 5.78 2.74
configure.cpython no-host 27.4 27.4 27.5 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.3 19.3 19.1 0.99 0.99
configure.util-linux no-host 30.1 30.3 30.3 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.5 24.5 1.01 1.01
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,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 807 1 2 2.7 8.3 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,022 1 57 15.8 27.5 1,772,668 49,197 28,508 101,770 908,098 762,800 42,399 60 50,000 0
configure.util-linux no-host 14,307 2 58 22.2 30.1 2,703,404 44,766 65,812 126,121 1,320,596 1,256,687 49,081 41 131,624 1
configure.ocaml no-host 3,792 0 2 2.7 20.6 150,038 11,045 5,138 8,602 71,634 69,802 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.1 30,527 30,527 0 1,599 14,801 14,127 350 0 50,000 0
configure.yash no-host 1,820 1 2 2.6 24.5 139,695 7,964 6,600 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,270 64,455 42,663 4,610 54,546 57,114 478 3 85,326 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 12 7 4.3 bash
15 no-host abuild-print-help 9 7 3 3.5 dash
23 no-host abuild-print-help 441 406 39 21.9 osh-cpython
31 no-host abuild-print-help 22 18 5 9.0 osh-native
1 no-host bin-true 667 506 194 3.0 bash
9 no-host bin-true 545 410 143 1.4 dash
17 no-host bin-true 2,211 1,439 1,024 17.4 osh-cpython
25 no-host bin-true 807 542 277 8.3 osh-native
2 no-host configure.cpython 14,804 9,013 6,172 27.4 bash
10 no-host configure.cpython 14,875 8,933 6,360 27.4 dash
18 no-host configure.cpython 28,044 17,316 12,530 27.5 osh-cpython
26 no-host configure.cpython 15,022 8,813 6,464 27.5 osh-native
4 no-host configure.ocaml 3,779 1,602 1,209 20.6 bash
12 no-host configure.ocaml 3,705 1,478 1,244 20.6 dash
20 no-host configure.ocaml 4,559 2,216 1,547 20.6 osh-cpython
28 no-host configure.ocaml 3,792 1,526 1,305 20.6 osh-native
5 no-host configure.tcc 47 25 23 19.4 bash
13 no-host configure.tcc 41 17 24 19.3 dash
21 no-host configure.tcc 191 142 53 19.3 osh-cpython
29 no-host configure.tcc 48 29 20 19.1 osh-native
3 no-host configure.util-linux 13,807 8,749 5,545 30.1 bash
11 no-host configure.util-linux 14,696 8,890 6,294 30.3 dash
19 no-host configure.util-linux 30,661 20,558 11,156 30.3 osh-cpython
27 no-host configure.util-linux 14,307 8,603 5,904 30.1 osh-native
6 no-host configure.yash 1,794 1,070 733 24.2 bash
14 no-host configure.yash 1,749 1,022 731 24.4 dash
22 no-host configure.yash 2,401 1,464 979 24.5 osh-cpython
30 no-host configure.yash 1,820 993 831 24.5 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 50 30 21 17.3 osh-cpython
24 no-host hello-world 3 0 3 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,528 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,092 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,473 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,199 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 107,422 0 0 0 8 0 1,987 95 bash
9 no-host bin-true 65,381 0 0 0 8 0 1,991 222 dash
17 no-host bin-true 749,662 0 0 0 8 0 1,997 153 osh-cpython
25 no-host bin-true 126,217 0 0 0 16 0 1,986 130 osh-native
2 no-host configure.cpython 2,223,389 0 0 0 32,928 0 14,531 1,048 bash
10 no-host configure.cpython 2,245,816 0 0 0 32,992 0 14,706 1,249 dash
18 no-host configure.cpython 6,128,529 0 0 0 27,512 0 13,316 1,185 osh-cpython
26 no-host configure.cpython 2,236,043 0 0 0 27,520 0 13,394 988 osh-native
4 no-host configure.ocaml 410,441 0 0 0 5,120 0 1,956 175 bash
12 no-host configure.ocaml 390,349 0 0 0 5,112 0 1,893 151 dash
20 no-host configure.ocaml 640,270 0 0 0 5,112 0 1,856 215 osh-cpython
28 no-host configure.ocaml 413,929 0 0 0 5,120 0 1,924 167 osh-native
5 no-host configure.tcc 6,560 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,468 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,280 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 7,011 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,096,155 0 0 0 42,400 0 18,648 932 bash
11 no-host configure.util-linux 2,257,359 1 0 0 42,584 0 17,425 1,275 dash
19 no-host configure.util-linux 5,324,301 9 0 0 39,120 0 17,067 1,340 osh-cpython
27 no-host configure.util-linux 2,015,944 0 0 0 39,120 0 17,028 978 osh-native
6 no-host configure.yash 256,186 0 0 0 4,120 0 869 79 bash
14 no-host configure.yash 244,568 0 0 0 3,720 0 870 73 dash
22 no-host configure.yash 384,904 0 0 0 3,728 0 853 102 osh-cpython
30 no-host configure.yash 259,111 0 0 0 3,736 0 850 157 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,679 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-6c6e8fee
dash dash-308ec8e6
osh-cpython osh-b3404588
osh-native osh-3523253e
host label host id
no-host no-host-556df3ee