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 22 10 500 26 22.52 1.19
bin-true no-host 735 584 2,483 895 3.38 1.22
configure.cpython no-host 16,662 16,569 32,063 17,203 1.92 1.03
configure.ocaml no-host 4,094 4,075 5,062 4,222 1.24 1.03
configure.tcc no-host 53 50 216 56 4.05 1.06
configure.util-linux no-host 15,455 16,336 35,122 16,371 2.27 1.06
configure.yash no-host 1,971 1,987 2,772 2,046 1.41 1.04
hello-world no-host 2 1 54 3 32.64 1.78

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,540 1,134 23,345 3,202 9.19 1.26
bin-true no-host 105,316 67,442 752,130 126,226 7.14 1.20
configure.cpython no-host 2,217,594 2,247,186 6,086,241 2,231,888 2.74 1.01
configure.ocaml no-host 410,815 391,182 636,917 414,020 1.55 1.01
configure.tcc no-host 6,573 5,465 23,150 6,952 3.52 1.06
configure.util-linux no-host 2,095,884 2,259,514 5,328,470 2,008,011 2.54 0.96
configure.yash no-host 255,815 245,053 385,701 258,672 1.51 1.01
hello-world no-host 152 83 3,668 345 24.13 2.27

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.6 8.9 4.99 2.06
bin-true no-host 2.8 1.4 17.3 7.9 6.29 2.86
configure.cpython no-host 27.4 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 1.00 0.99
configure.tcc no-host 19.3 19.4 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.0 30.0 30.1 30.0 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.5 1.01 1.01
hello-world no-host 2.8 1.6 17.2 6.0 6.24 2.19

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.0 3,724 3,724 0 684 1,876 1,164 2 0 50,000 0
bin-true no-host 895 1 2 2.7 7.9 154,689 12,992 2,799 11,737 78,345 64,607 5,012 3 50,000 0
configure.cpython no-host 17,203 2 71 15.8 27.5 1,772,605 49,197 28,508 101,770 908,052 762,783 42,399 60 50,000 0
configure.util-linux no-host 16,371 4 72 22.2 30.0 2,703,269 44,766 65,792 126,121 1,320,496 1,256,652 49,081 41 131,584 1
configure.ocaml no-host 4,222 1 2 2.7 20.4 150,031 11,045 5,138 8,602 71,630 69,799 2,680 3 50,000 0
configure.tcc no-host 56 0 0 1.3 19.4 30,524 30,524 0 1,599 14,800 14,125 350 0 50,000 0
configure.yash no-host 2,046 1 2 2.6 24.5 139,688 7,964 6,600 7,554 70,302 61,832 2,990 3 50,000 0
abuild-print-help no-host 26 1 2 2.8 8.9 116,267 64,455 42,663 4,610 54,545 57,112 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 22 15 7 4.3 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 500 435 69 21.6 osh-cpython
31 no-host abuild-print-help 26 11 14 8.9 osh-native
1 no-host bin-true 735 520 244 2.8 bash
9 no-host bin-true 584 434 153 1.4 dash
17 no-host bin-true 2,483 1,593 1,166 17.3 osh-cpython
25 no-host bin-true 895 608 299 7.9 osh-native
2 no-host configure.cpython 16,662 9,683 7,335 27.4 bash
10 no-host configure.cpython 16,569 9,709 7,270 27.4 dash
18 no-host configure.cpython 32,063 19,432 14,637 27.4 osh-cpython
26 no-host configure.cpython 17,203 10,168 7,283 27.5 osh-native
4 no-host configure.ocaml 4,094 1,771 1,351 20.6 bash
12 no-host configure.ocaml 4,075 1,690 1,390 20.6 dash
20 no-host configure.ocaml 5,062 2,368 1,911 20.6 osh-cpython
28 no-host configure.ocaml 4,222 1,706 1,552 20.4 osh-native
5 no-host configure.tcc 53 39 15 19.3 bash
13 no-host configure.tcc 50 34 16 19.4 dash
21 no-host configure.tcc 216 151 69 19.3 osh-cpython
29 no-host configure.tcc 56 25 32 19.4 osh-native
3 no-host configure.util-linux 15,455 9,629 6,284 30.0 bash
11 no-host configure.util-linux 16,336 9,810 7,006 30.0 dash
19 no-host configure.util-linux 35,122 23,036 13,211 30.1 osh-cpython
27 no-host configure.util-linux 16,371 9,612 6,904 30.0 osh-native
6 no-host configure.yash 1,971 1,140 838 24.2 bash
14 no-host configure.yash 1,987 1,081 903 24.4 dash
22 no-host configure.yash 2,772 1,621 1,187 24.4 osh-cpython
30 no-host configure.yash 2,046 1,147 903 24.5 osh-native
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 54 42 12 17.2 osh-cpython
24 no-host hello-world 3 3 0 6.0 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,540 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,134 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,345 0 0 0 8 0 48 12 osh-cpython
31 no-host abuild-print-help 3,202 0 0 0 16 0 40 0 osh-native
1 no-host bin-true 105,316 0 0 0 8 0 1,987 132 bash
9 no-host bin-true 67,442 0 0 0 8 0 1,992 89 dash
17 no-host bin-true 752,130 0 0 0 8 0 1,993 293 osh-cpython
25 no-host bin-true 126,226 0 0 0 16 0 1,986 82 osh-native
2 no-host configure.cpython 2,217,594 0 0 0 32,928 0 14,426 1,147 bash
10 no-host configure.cpython 2,247,186 1 0 0 32,992 0 14,678 1,151 dash
18 no-host configure.cpython 6,086,241 2 0 0 27,512 0 13,338 1,323 osh-cpython
26 no-host configure.cpython 2,231,888 0 0 0 27,520 0 13,320 961 osh-native
4 no-host configure.ocaml 410,815 0 0 0 5,120 0 1,943 155 bash
12 no-host configure.ocaml 391,182 0 0 0 5,112 0 1,918 156 dash
20 no-host configure.ocaml 636,917 0 0 0 5,112 0 1,877 198 osh-cpython
28 no-host configure.ocaml 414,020 0 0 0 5,120 0 1,928 183 osh-native
5 no-host configure.tcc 6,573 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,465 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,150 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,952 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,095,884 0 0 0 42,408 0 18,596 1,180 bash
11 no-host configure.util-linux 2,259,514 0 0 0 42,592 0 17,499 1,161 dash
19 no-host configure.util-linux 5,328,470 7 0 0 39,120 0 17,008 1,343 osh-cpython
27 no-host configure.util-linux 2,008,011 9 0 0 39,128 0 16,992 1,151 osh-native
6 no-host configure.yash 255,815 0 0 0 4,120 0 873 73 bash
14 no-host configure.yash 245,053 0 0 0 3,720 0 866 78 dash
22 no-host configure.yash 385,701 0 0 0 3,728 0 858 140 osh-cpython
30 no-host configure.yash 258,672 0 0 0 3,736 0 852 85 osh-native
0 no-host hello-world 152 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,668 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-4d26b8cf
dash dash-308ec8e6
osh-cpython osh-9e0b3a4e
osh-native osh-185efe9c
host label host id
no-host no-host-1c33b689