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 468 24 23.29 1.20
bin-true no-host 690 551 2,333 846 3.38 1.22
configure.cpython no-host 15,534 15,587 29,564 15,872 1.90 1.02
configure.ocaml no-host 3,908 3,794 4,830 3,944 1.24 1.01
configure.tcc no-host 51 43 201 53 3.97 1.05
configure.util-linux no-host 14,349 15,289 32,655 15,054 2.28 1.05
configure.yash no-host 1,892 1,796 2,547 1,900 1.35 1.00
hello-world no-host 2 1 48 3 31.29 1.85

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,534 1,094 23,540 3,224 9.29 1.27
bin-true no-host 104,358 66,438 751,112 128,182 7.20 1.23
configure.cpython no-host 2,218,968 2,241,227 6,101,494 2,233,872 2.75 1.01
configure.ocaml no-host 410,289 391,058 637,579 413,407 1.55 1.01
configure.tcc no-host 6,558 5,471 23,251 6,976 3.55 1.06
configure.util-linux no-host 2,096,628 2,259,788 5,334,879 2,014,764 2.54 0.96
configure.yash no-host 256,308 245,196 385,193 258,842 1.50 1.01
hello-world no-host 153 84 3,652 341 23.87 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.5 21.6 8.9 5.00 2.06
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.4 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.1 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.2 1.01 1.00
hello-world no-host 2.8 1.6 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 846 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,872 2 69 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 15,054 3 66 22.2 30.3 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,944 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 53 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,900 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 24 1 2 2.8 8.9 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 15 6 4.3 bash
15 no-host abuild-print-help 10 4 5 3.5 dash
23 no-host abuild-print-help 468 404 67 21.6 osh-cpython
31 no-host abuild-print-help 24 18 7 8.9 osh-native
1 no-host bin-true 690 511 211 2.9 bash
9 no-host bin-true 551 420 139 1.4 dash
17 no-host bin-true 2,333 1,564 1,019 17.2 osh-cpython
25 no-host bin-true 846 589 271 8.0 osh-native
2 no-host configure.cpython 15,534 9,336 6,605 27.4 bash
10 no-host configure.cpython 15,587 9,296 6,719 27.4 dash
18 no-host configure.cpython 29,564 17,978 13,460 27.4 osh-cpython
26 no-host configure.cpython 15,872 9,312 6,829 27.4 osh-native
4 no-host configure.ocaml 3,908 1,658 1,285 20.6 bash
12 no-host configure.ocaml 3,794 1,590 1,224 20.6 dash
20 no-host configure.ocaml 4,830 2,385 1,655 20.6 osh-cpython
28 no-host configure.ocaml 3,944 1,753 1,234 20.6 osh-native
5 no-host configure.tcc 51 23 28 19.4 bash
13 no-host configure.tcc 43 17 26 19.3 dash
21 no-host configure.tcc 201 118 87 19.3 osh-cpython
29 no-host configure.tcc 53 29 25 19.3 osh-native
3 no-host configure.util-linux 14,349 9,091 5,749 30.1 bash
11 no-host configure.util-linux 15,289 9,435 6,371 30.1 dash
19 no-host configure.util-linux 32,655 21,842 11,906 30.1 osh-cpython
27 no-host configure.util-linux 15,054 9,079 6,155 30.3 osh-native
6 no-host configure.yash 1,892 1,121 780 24.2 bash
14 no-host configure.yash 1,796 1,107 692 24.4 dash
22 no-host configure.yash 2,547 1,591 1,001 24.4 osh-cpython
30 no-host configure.yash 1,900 1,104 800 24.2 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 48 32 16 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,534 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,094 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,540 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,224 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 104,358 0 0 0 8 0 1,994 53 bash
9 no-host bin-true 66,438 0 0 0 8 0 1,991 79 dash
17 no-host bin-true 751,112 0 0 0 8 0 1,996 183 osh-cpython
25 no-host bin-true 128,182 0 0 0 16 0 1,990 99 osh-native
2 no-host configure.cpython 2,218,968 0 0 0 32,928 0 14,549 1,068 bash
10 no-host configure.cpython 2,241,227 0 0 0 32,992 0 14,554 1,131 dash
18 no-host configure.cpython 6,101,494 1 0 0 27,512 0 13,300 1,234 osh-cpython
26 no-host configure.cpython 2,233,872 1 0 0 27,520 0 13,263 968 osh-native
4 no-host configure.ocaml 410,289 0 0 0 5,120 0 1,959 174 bash
12 no-host configure.ocaml 391,058 0 0 0 5,112 0 1,931 157 dash
20 no-host configure.ocaml 637,579 1 0 0 5,112 0 1,871 179 osh-cpython
28 no-host configure.ocaml 413,407 0 0 0 5,120 0 1,933 150 osh-native
5 no-host configure.tcc 6,558 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,471 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,251 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,976 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,096,628 0 0 0 42,408 0 18,637 1,200 bash
11 no-host configure.util-linux 2,259,788 2 0 0 42,592 0 17,500 1,092 dash
19 no-host configure.util-linux 5,334,879 11 0 0 39,136 0 17,072 1,231 osh-cpython
27 no-host configure.util-linux 2,014,764 2 0 0 39,128 0 17,047 1,068 osh-native
6 no-host configure.yash 256,308 0 0 0 4,120 0 866 83 bash
14 no-host configure.yash 245,196 0 0 0 3,720 0 871 80 dash
22 no-host configure.yash 385,193 0 0 0 3,728 0 858 97 osh-cpython
30 no-host configure.yash 258,842 0 0 0 3,736 0 851 80 osh-native
0 no-host hello-world 153 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 3 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-231e9372
dash dash-308ec8e6
osh-cpython osh-218c8d14
osh-native osh-f53b497f
host label host id
no-host no-host-e54d7702