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 447 22 23.57 1.18
bin-true no-host 668 537 2,228 808 3.33 1.21
configure.cpython no-host 14,820 14,887 28,053 15,115 1.89 1.02
configure.ocaml no-host 3,778 3,696 4,565 3,794 1.21 1.00
configure.tcc no-host 47 41 190 48 4.07 1.03
configure.util-linux no-host 13,848 14,743 30,805 14,214 2.22 1.03
configure.yash no-host 1,797 1,755 2,388 1,810 1.33 1.01
hello-world no-host 2 1 47 3 29.62 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,508 1,129 23,250 3,217 9.27 1.28
bin-true no-host 104,314 66,453 748,026 126,478 7.17 1.21
configure.cpython no-host 2,214,684 2,239,798 6,092,338 2,243,219 2.75 1.01
configure.ocaml no-host 410,761 391,208 636,344 413,832 1.55 1.01
configure.tcc no-host 6,535 5,478 23,133 7,036 3.54 1.08
configure.util-linux no-host 2,092,545 2,260,268 5,324,800 2,015,202 2.54 0.96
configure.yash no-host 256,674 245,066 384,305 259,180 1.50 1.01
hello-world no-host 154 84 3,652 343 23.71 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 py bash ratio native bash ratio
abuild-print-help no-host 4.5 3.4 21.6 8.7 4.85 1.94
bin-true no-host 2.9 1.4 17.3 8.0 6.00 2.77
configure.cpython no-host 27.5 27.4 27.4 27.4 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.3 0.99 0.99
configure.util-linux no-host 30.0 30.1 30.3 30.0 1.01 1.00
configure.yash no-host 24.4 24.5 24.2 24.2 0.99 0.99
hello-world no-host 2.8 1.4 17.2 6.2 6.24 2.24

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,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 808 1 2 2.7 8.0 154,658 12,890 2,792 11,730 78,319 64,609 5,012 3 50,000 0
configure.cpython no-host 15,115 1 59 15.8 27.4 1,772,595 49,191 28,502 101,770 908,042 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,214 2 57 22.2 30.0 2,703,259 44,760 65,806 126,121 1,320,486 1,256,652 49,081 41 131,612 1
configure.ocaml no-host 3,794 1 2 2.7 20.6 150,021 11,039 5,132 8,602 71,620 69,799 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,810 1 2 2.6 24.2 139,678 7,958 6,594 7,554 70,292 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.7 116,221 64,449 42,657 4,601 54,503 57,117 478 3 85,314 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.5 bash
15 no-host abuild-print-help 10 9 2 3.4 dash
23 no-host abuild-print-help 447 409 41 21.6 osh-cpython
31 no-host abuild-print-help 22 22 1 8.7 osh-native
1 no-host bin-true 668 497 202 2.9 bash
9 no-host bin-true 537 424 122 1.4 dash
17 no-host bin-true 2,228 1,492 988 17.3 osh-cpython
25 no-host bin-true 808 565 257 8.0 osh-native
2 no-host configure.cpython 14,820 9,043 6,167 27.5 bash
10 no-host configure.cpython 14,887 9,123 6,182 27.4 dash
18 no-host configure.cpython 28,053 17,008 12,846 27.4 osh-cpython
26 no-host configure.cpython 15,115 8,895 6,487 27.4 osh-native
4 no-host configure.ocaml 3,778 1,563 1,250 20.6 bash
12 no-host configure.ocaml 3,696 1,563 1,153 20.6 dash
20 no-host configure.ocaml 4,565 2,240 1,524 20.6 osh-cpython
28 no-host configure.ocaml 3,794 1,621 1,211 20.6 osh-native
5 no-host configure.tcc 47 28 20 19.4 bash
13 no-host configure.tcc 41 31 11 19.3 dash
21 no-host configure.tcc 190 134 60 19.3 osh-cpython
29 no-host configure.tcc 48 22 27 19.3 osh-native
3 no-host configure.util-linux 13,848 8,777 5,546 30.0 bash
11 no-host configure.util-linux 14,743 9,178 6,064 30.1 dash
19 no-host configure.util-linux 30,805 20,675 11,187 30.3 osh-cpython
27 no-host configure.util-linux 14,214 8,615 5,795 30.0 osh-native
6 no-host configure.yash 1,797 1,077 725 24.4 bash
14 no-host configure.yash 1,755 1,024 735 24.5 dash
22 no-host configure.yash 2,388 1,478 951 24.2 osh-cpython
30 no-host configure.yash 1,810 988 825 24.2 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 47 32 15 17.2 osh-cpython
24 no-host hello-world 3 0 3 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,508 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,129 0 0 0 8 0 38 2 dash
23 no-host abuild-print-help 23,250 0 0 0 8 0 47 13 osh-cpython
31 no-host abuild-print-help 3,217 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 104,314 0 0 0 8 0 1,990 60 bash
9 no-host bin-true 66,453 0 0 0 8 0 1,984 74 dash
17 no-host bin-true 748,026 0 0 0 8 0 2,003 390 osh-cpython
25 no-host bin-true 126,478 0 0 0 16 0 1,986 52 osh-native
2 no-host configure.cpython 2,214,684 0 0 0 32,928 0 14,496 1,158 bash
10 no-host configure.cpython 2,239,798 0 0 0 32,992 0 14,570 1,223 dash
18 no-host configure.cpython 6,092,338 0 0 0 27,512 0 13,232 1,361 osh-cpython
26 no-host configure.cpython 2,243,219 0 0 0 27,520 0 13,243 1,082 osh-native
4 no-host configure.ocaml 410,761 0 0 0 5,120 0 1,956 175 bash
12 no-host configure.ocaml 391,208 0 0 0 5,112 0 1,921 148 dash
20 no-host configure.ocaml 636,344 1 0 0 5,112 0 1,869 191 osh-cpython
28 no-host configure.ocaml 413,832 0 0 0 5,120 0 1,930 148 osh-native
5 no-host configure.tcc 6,535 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,478 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,133 0 0 0 96 0 52 8 osh-cpython
29 no-host configure.tcc 7,036 0 0 0 104 0 46 1 osh-native
3 no-host configure.util-linux 2,092,545 1 0 0 42,400 0 18,486 1,204 bash
11 no-host configure.util-linux 2,260,268 2 0 0 42,584 0 17,426 1,093 dash
19 no-host configure.util-linux 5,324,800 15 0 0 39,112 0 17,022 1,179 osh-cpython
27 no-host configure.util-linux 2,015,202 0 0 0 39,128 0 17,067 1,017 osh-native
6 no-host configure.yash 256,674 0 0 0 4,120 0 869 78 bash
14 no-host configure.yash 245,066 0 0 0 3,720 0 868 74 dash
22 no-host configure.yash 384,305 0 0 0 3,728 0 853 84 osh-cpython
30 no-host configure.yash 259,180 0 0 0 3,736 0 856 85 osh-native
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,652 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-c3c28207
dash dash-308ec8e6
osh-cpython osh-7e5d83f3
osh-native osh-e2080d3e
host label host id
no-host no-host-e54d7702