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 460 23 23.57 1.16
bin-true no-host 677 553 2,245 827 3.32 1.22
configure.cpython no-host 15,310 15,439 29,027 15,603 1.90 1.02
configure.ocaml no-host 3,847 3,792 4,670 3,887 1.21 1.01
configure.tcc no-host 48 42 191 50 3.95 1.03
configure.util-linux no-host 14,319 15,089 31,630 14,648 2.21 1.02
configure.yash no-host 1,869 1,811 2,473 1,853 1.32 0.99
hello-world no-host 2 1 48 3 30.73 1.82

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,548 1,133 23,532 3,205 9.24 1.26
bin-true no-host 106,373 66,464 755,106 130,169 7.10 1.22
configure.cpython no-host 2,224,556 2,248,871 6,109,164 2,229,666 2.75 1.00
configure.ocaml no-host 410,339 391,368 638,564 412,689 1.56 1.01
configure.tcc no-host 6,551 5,486 23,214 6,995 3.54 1.07
configure.util-linux no-host 2,099,606 2,263,771 5,323,909 2,014,912 2.54 0.96
configure.yash no-host 256,073 244,199 385,160 258,703 1.50 1.01
hello-world no-host 152 80 3,645 344 23.98 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.5 3.4 21.8 8.7 4.88 1.94
bin-true no-host 2.9 1.4 17.2 8.0 5.95 2.77
configure.cpython no-host 27.4 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.3 19.3 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.3 30.3 30.3 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.4 1.00 1.00
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 827 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,603 1 65 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,648 3 62 22.2 30.1 2,703,259 44,760 65,786 126,121 1,320,486 1,256,652 49,081 41 131,572 1
configure.ocaml no-host 3,887 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 50 0 0 1.3 19.4 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,853 1 2 2.6 24.4 139,678 7,958 6,594 7,554 70,292 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 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 20 12 8 4.5 bash
15 no-host abuild-print-help 10 10 1 3.4 dash
23 no-host abuild-print-help 460 424 39 21.8 osh-cpython
31 no-host abuild-print-help 23 13 10 8.7 osh-native
1 no-host bin-true 677 523 187 2.9 bash
9 no-host bin-true 553 421 142 1.4 dash
17 no-host bin-true 2,245 1,417 1,078 17.2 osh-cpython
25 no-host bin-true 827 585 258 8.0 osh-native
2 no-host configure.cpython 15,310 9,287 6,428 27.4 bash
10 no-host configure.cpython 15,439 9,413 6,448 27.4 dash
18 no-host configure.cpython 29,027 17,545 13,332 27.4 osh-cpython
26 no-host configure.cpython 15,603 9,271 6,607 27.4 osh-native
4 no-host configure.ocaml 3,847 1,556 1,330 20.6 bash
12 no-host configure.ocaml 3,792 1,603 1,210 20.6 dash
20 no-host configure.ocaml 4,670 2,175 1,703 20.6 osh-cpython
28 no-host configure.ocaml 3,887 1,613 1,312 20.6 osh-native
5 no-host configure.tcc 48 29 20 19.3 bash
13 no-host configure.tcc 42 21 21 19.3 dash
21 no-host configure.tcc 191 125 68 19.3 osh-cpython
29 no-host configure.tcc 50 27 23 19.4 osh-native
3 no-host configure.util-linux 14,319 8,989 5,806 30.3 bash
11 no-host configure.util-linux 15,089 9,197 6,392 30.3 dash
19 no-host configure.util-linux 31,630 21,079 11,616 30.3 osh-cpython
27 no-host configure.util-linux 14,648 8,807 6,030 30.1 osh-native
6 no-host configure.yash 1,869 1,057 821 24.4 bash
14 no-host configure.yash 1,811 1,081 733 24.4 dash
22 no-host configure.yash 2,473 1,562 954 24.4 osh-cpython
30 no-host configure.yash 1,853 975 882 24.4 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 48 24 23 17.2 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,548 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,133 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,532 0 0 0 8 0 47 14 osh-cpython
31 no-host abuild-print-help 3,205 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 106,373 0 0 0 8 0 1,991 41 bash
9 no-host bin-true 66,464 0 0 0 8 0 1,980 39 dash
17 no-host bin-true 755,106 0 0 0 8 0 1,991 128 osh-cpython
25 no-host bin-true 130,169 0 0 0 16 0 1,988 53 osh-native
2 no-host configure.cpython 2,224,556 0 0 0 32,928 0 14,425 1,122 bash
10 no-host configure.cpython 2,248,871 0 0 0 32,992 0 14,676 1,156 dash
18 no-host configure.cpython 6,109,164 1 0 0 27,512 0 12,929 1,272 osh-cpython
26 no-host configure.cpython 2,229,666 0 0 0 27,520 0 13,184 1,080 osh-native
4 no-host configure.ocaml 410,339 0 0 0 5,120 0 1,947 183 bash
12 no-host configure.ocaml 391,368 0 0 0 5,112 0 1,944 152 dash
20 no-host configure.ocaml 638,564 0 0 0 5,112 0 1,865 177 osh-cpython
28 no-host configure.ocaml 412,689 0 0 0 5,120 0 1,934 150 osh-native
5 no-host configure.tcc 6,551 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,486 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,214 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,995 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,099,606 2 0 0 42,400 0 18,685 1,071 bash
11 no-host configure.util-linux 2,263,771 0 0 0 42,592 0 17,452 1,159 dash
19 no-host configure.util-linux 5,323,909 11 0 0 39,112 0 17,067 1,273 osh-cpython
27 no-host configure.util-linux 2,014,912 3 0 0 39,128 0 17,052 1,088 osh-native
6 no-host configure.yash 256,073 0 0 0 4,120 0 867 102 bash
14 no-host configure.yash 244,199 0 0 0 3,720 0 869 87 dash
22 no-host configure.yash 385,160 0 0 0 3,728 0 856 102 osh-cpython
30 no-host configure.yash 258,703 0 0 0 3,736 0 855 68 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,645 0 0 0 8 0 7 5 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-59a37119
dash dash-308ec8e6
osh-cpython osh-1d9e6a25
osh-native osh-286f7192
host label host id
no-host no-host-e54d7702