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 458 23 23.33 1.17
bin-true no-host 675 551 2,282 815 3.38 1.21
configure.cpython no-host 15,382 15,522 29,493 15,504 1.92 1.01
configure.ocaml no-host 3,917 3,835 4,711 3,865 1.20 0.99
configure.tcc no-host 49 42 195 50 4.00 1.02
configure.util-linux no-host 14,222 15,274 31,859 14,654 2.24 1.03
configure.yash no-host 1,874 1,840 2,472 1,882 1.32 1.00
hello-world no-host 2 1 51 3 31.41 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,536 1,087 23,545 3,224 9.28 1.27
bin-true no-host 105,326 66,419 753,150 127,188 7.15 1.21
configure.cpython no-host 2,217,386 2,246,316 6,099,998 2,237,664 2.75 1.01
configure.ocaml no-host 410,530 391,615 637,820 413,423 1.55 1.01
configure.tcc no-host 6,539 5,482 23,223 6,975 3.55 1.07
configure.util-linux no-host 2,093,359 2,262,102 5,336,044 2,016,801 2.55 0.96
configure.yash no-host 256,227 245,132 385,689 258,423 1.51 1.01
hello-world no-host 154 81 3,651 344 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.3 3.4 21.7 9.0 5.03 2.09
bin-true no-host 2.9 1.6 17.2 8.1 5.95 2.82
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.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.1 30.0 30.0 30.1 1.00 1.00
configure.yash no-host 24.2 24.2 24.5 24.4 1.01 1.01
hello-world no-host 2.9 1.4 17.2 6.2 5.95 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.2 6.2 3,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 815 1 2 2.7 8.1 154,658 12,890 2,792 11,730 78,319 64,609 5,012 3 50,000 0
configure.cpython no-host 15,504 1 65 15.8 27.5 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,654 3 63 22.2 30.1 2,703,368 44,760 65,786 126,155 1,320,522 1,256,691 49,086 41 131,572 1
configure.ocaml no-host 3,865 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,882 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 9.0 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 13 7 4.3 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 458 406 55 21.7 osh-cpython
31 no-host abuild-print-help 23 16 7 9.0 osh-native
1 no-host bin-true 675 497 211 2.9 bash
9 no-host bin-true 551 424 136 1.6 dash
17 no-host bin-true 2,282 1,498 1,046 17.2 osh-cpython
25 no-host bin-true 815 570 259 8.1 osh-native
2 no-host configure.cpython 15,382 9,272 6,514 27.4 bash
10 no-host configure.cpython 15,522 9,162 6,783 27.4 dash
18 no-host configure.cpython 29,493 17,719 13,669 27.4 osh-cpython
26 no-host configure.cpython 15,504 9,076 6,676 27.5 osh-native
4 no-host configure.ocaml 3,917 1,740 1,216 20.6 bash
12 no-host configure.ocaml 3,835 1,645 1,208 20.6 dash
20 no-host configure.ocaml 4,711 2,157 1,761 20.6 osh-cpython
28 no-host configure.ocaml 3,865 1,658 1,244 20.6 osh-native
5 no-host configure.tcc 49 32 17 19.3 bash
13 no-host configure.tcc 42 29 14 19.3 dash
21 no-host configure.tcc 195 159 40 19.4 osh-cpython
29 no-host configure.tcc 50 34 16 19.4 osh-native
3 no-host configure.util-linux 14,222 8,872 5,827 30.1 bash
11 no-host configure.util-linux 15,274 9,223 6,547 30.0 dash
19 no-host configure.util-linux 31,859 21,349 11,594 30.0 osh-cpython
27 no-host configure.util-linux 14,654 8,708 6,045 30.1 osh-native
6 no-host configure.yash 1,874 1,082 801 24.2 bash
14 no-host configure.yash 1,840 1,039 804 24.2 dash
22 no-host configure.yash 2,472 1,523 992 24.5 osh-cpython
30 no-host configure.yash 1,882 1,136 749 24.4 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 51 25 26 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,536 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,087 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,545 0 0 0 8 0 47 13 osh-cpython
31 no-host abuild-print-help 3,224 0 0 0 16 0 40 4 osh-native
1 no-host bin-true 105,326 0 0 0 8 0 1,993 79 bash
9 no-host bin-true 66,419 0 0 0 8 0 1,989 43 dash
17 no-host bin-true 753,150 0 0 0 8 0 1,991 165 osh-cpython
25 no-host bin-true 127,188 0 0 0 16 0 1,990 128 osh-native
2 no-host configure.cpython 2,217,386 1 0 0 32,928 0 14,368 1,313 bash
10 no-host configure.cpython 2,246,316 0 0 0 32,992 0 14,552 1,024 dash
18 no-host configure.cpython 6,099,998 1 0 0 27,512 0 13,235 1,191 osh-cpython
26 no-host configure.cpython 2,237,664 0 0 0 27,520 0 13,304 938 osh-native
4 no-host configure.ocaml 410,530 0 0 0 5,120 0 1,946 145 bash
12 no-host configure.ocaml 391,615 0 0 0 5,112 0 1,933 144 dash
20 no-host configure.ocaml 637,820 0 0 0 5,112 0 1,860 186 osh-cpython
28 no-host configure.ocaml 413,423 0 0 0 5,120 0 1,932 148 osh-native
5 no-host configure.tcc 6,539 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,482 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,223 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,975 0 0 0 104 0 47 0 osh-native
3 no-host configure.util-linux 2,093,359 7 0 0 42,408 0 18,614 953 bash
11 no-host configure.util-linux 2,262,102 2 0 0 42,592 0 17,494 1,192 dash
19 no-host configure.util-linux 5,336,044 5 0 0 39,136 0 17,053 1,283 osh-cpython
27 no-host configure.util-linux 2,016,801 3 0 0 39,136 0 17,106 977 osh-native
6 no-host configure.yash 256,227 0 0 0 4,120 0 870 83 bash
14 no-host configure.yash 245,132 0 0 0 3,720 0 871 68 dash
22 no-host configure.yash 385,689 0 0 0 3,728 0 858 102 osh-cpython
30 no-host configure.yash 258,423 0 0 0 3,736 0 845 210 osh-native
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,651 0 0 0 8 0 7 3 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-88a41214
dash dash-308ec8e6
osh-cpython osh-65c08336
osh-native osh-eb8f2882
host label host id
no-host no-host-e54d7702