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 10 458 22 24.29 1.18
bin-true no-host 672 542 2,218 818 3.30 1.22
configure.cpython no-host 15,088 15,179 28,839 15,503 1.91 1.03
configure.ocaml no-host 3,858 3,780 4,686 3,869 1.21 1.00
configure.tcc no-host 49 42 194 49 3.99 1.00
configure.util-linux no-host 14,124 14,994 31,749 14,613 2.25 1.03
configure.yash no-host 1,843 1,802 2,470 1,856 1.34 1.01
hello-world no-host 2 1 50 3 32.01 1.81

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,521 1,095 23,460 3,239 9.31 1.28
bin-true no-host 104,355 66,504 751,661 126,200 7.20 1.21
configure.cpython no-host 2,223,187 2,245,837 6,134,636 2,239,952 2.76 1.01
configure.ocaml no-host 410,739 391,036 640,298 413,858 1.56 1.01
configure.tcc no-host 6,592 5,497 23,288 6,990 3.53 1.06
configure.util-linux no-host 2,094,119 2,249,041 5,317,981 2,014,847 2.54 0.96
configure.yash no-host 256,693 244,464 383,274 257,820 1.49 1.00
hello-world no-host 155 79 3,675 350 23.71 2.26

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 8.8 5.06 2.03
bin-true no-host 3.0 1.4 17.4 7.9 5.78 2.61
configure.cpython no-host 27.5 27.4 27.4 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.3 19.4 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.3 30.4 30.3 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.5 24.2 1.01 1.00
hello-world no-host 2.9 1.4 17.3 6.2 6.00 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.3 6.2 3,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 818 1 2 2.7 7.9 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,503 2 61 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,613 3 62 22.2 30.1 2,703,404 44,766 65,792 126,121 1,320,596 1,256,687 49,081 41 131,584 1
configure.ocaml no-host 3,869 1 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 49 0 0 1.3 19.4 30,527 30,527 0 1,599 14,801 14,127 350 0 50,000 0
configure.yash no-host 1,856 1 2 2.6 24.2 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 8.8 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 13 6 4.3 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 458 420 41 21.9 osh-cpython
31 no-host abuild-print-help 22 21 2 8.8 osh-native
1 no-host bin-true 672 516 186 3.0 bash
9 no-host bin-true 542 416 134 1.4 dash
17 no-host bin-true 2,218 1,453 1,024 17.4 osh-cpython
25 no-host bin-true 818 586 247 7.9 osh-native
2 no-host configure.cpython 15,088 9,073 6,408 27.5 bash
10 no-host configure.cpython 15,179 9,194 6,399 27.4 dash
18 no-host configure.cpython 28,839 17,542 13,154 27.4 osh-cpython
26 no-host configure.cpython 15,503 9,157 6,608 27.5 osh-native
4 no-host configure.ocaml 3,858 1,677 1,214 20.6 bash
12 no-host configure.ocaml 3,780 1,599 1,198 20.6 dash
20 no-host configure.ocaml 4,686 2,228 1,668 20.6 osh-cpython
28 no-host configure.ocaml 3,869 1,674 1,234 20.6 osh-native
5 no-host configure.tcc 49 24 25 19.3 bash
13 no-host configure.tcc 42 17 25 19.4 dash
21 no-host configure.tcc 194 156 42 19.3 osh-cpython
29 no-host configure.tcc 49 30 19 19.4 osh-native
3 no-host configure.util-linux 14,124 8,812 5,771 30.3 bash
11 no-host configure.util-linux 14,994 9,049 6,442 30.4 dash
19 no-host configure.util-linux 31,749 21,163 11,680 30.3 osh-cpython
27 no-host configure.util-linux 14,613 8,647 6,156 30.1 osh-native
6 no-host configure.yash 1,843 1,054 797 24.2 bash
14 no-host configure.yash 1,802 1,075 731 24.4 dash
22 no-host configure.yash 2,470 1,459 1,055 24.5 osh-cpython
30 no-host configure.yash 1,856 1,074 784 24.2 osh-native
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 50 37 12 17.3 osh-cpython
24 no-host hello-world 3 3 0 6.2 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,521 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,095 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,460 0 0 0 8 0 47 8 osh-cpython
31 no-host abuild-print-help 3,239 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 104,355 0 0 0 8 0 1,994 53 bash
9 no-host bin-true 66,504 0 0 0 8 0 1,989 37 dash
17 no-host bin-true 751,661 0 0 0 8 0 1,996 78 osh-cpython
25 no-host bin-true 126,200 0 0 0 16 0 1,992 147 osh-native
2 no-host configure.cpython 2,223,187 1 0 0 32,928 0 14,469 1,077 bash
10 no-host configure.cpython 2,245,837 0 0 0 32,992 0 14,560 1,266 dash
18 no-host configure.cpython 6,134,636 1 0 0 27,512 0 13,337 1,170 osh-cpython
26 no-host configure.cpython 2,239,952 0 0 0 27,520 0 13,291 889 osh-native
4 no-host configure.ocaml 410,739 0 0 0 5,120 0 1,945 184 bash
12 no-host configure.ocaml 391,036 0 0 0 5,112 0 1,914 151 dash
20 no-host configure.ocaml 640,298 0 0 0 5,112 0 1,858 172 osh-cpython
28 no-host configure.ocaml 413,858 0 0 0 5,120 0 1,928 162 osh-native
5 no-host configure.tcc 6,592 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,497 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,288 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,990 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,094,119 0 0 0 42,400 0 18,557 1,181 bash
11 no-host configure.util-linux 2,249,041 1 0 0 42,584 0 17,447 1,115 dash
19 no-host configure.util-linux 5,317,981 15 0 0 39,112 0 17,191 1,454 osh-cpython
27 no-host configure.util-linux 2,014,847 1 0 0 39,120 0 17,046 1,072 osh-native
6 no-host configure.yash 256,693 0 0 0 4,120 0 869 83 bash
14 no-host configure.yash 244,464 0 0 0 3,720 0 869 88 dash
22 no-host configure.yash 383,274 0 0 0 3,728 0 856 97 osh-cpython
30 no-host configure.yash 257,820 0 0 0 3,736 0 850 79 osh-native
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,675 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-460ac080
dash dash-308ec8e6
osh-cpython osh-4f8de241
osh-native osh-dfaa108a
host label host id
no-host no-host-556df3ee