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 9 454 22 23.70 1.16
bin-true no-host 682 538 2,201 825 3.23 1.21
configure.cpython no-host 14,804 14,903 28,079 15,057 1.90 1.02
configure.ocaml no-host 3,744 3,715 4,567 3,798 1.22 1.01
configure.tcc no-host 47 42 190 49 4.02 1.04
configure.util-linux no-host 13,792 14,688 30,669 14,255 2.22 1.03
configure.yash no-host 1,810 1,754 2,400 1,810 1.33 1.00
hello-world no-host 1 1 47 3 31.62 1.86

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,554 1,108 23,369 3,187 9.15 1.25
bin-true no-host 107,325 67,477 740,743 130,186 6.90 1.21
configure.cpython no-host 2,218,680 2,248,797 6,088,566 2,229,028 2.74 1.00
configure.ocaml no-host 410,631 390,910 636,741 414,071 1.55 1.01
configure.tcc no-host 6,564 5,491 23,079 7,005 3.52 1.07
configure.util-linux no-host 2,095,980 2,261,437 5,289,588 2,011,913 2.52 0.96
configure.yash no-host 256,298 244,165 383,537 258,508 1.50 1.01
hello-world no-host 151 82 3,650 341 24.17 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.8 4.88 1.97
bin-true no-host 3.0 1.4 17.3 8.1 5.74 2.70
configure.cpython no-host 27.4 27.4 27.5 27.3 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.4 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.1 30.1 30.3 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.5 24.4 1.01 1.01
hello-world no-host 2.8 1.4 17.1 6.2 6.21 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 825 1 2 2.7 8.1 154,662 12,890 2,792 11,730 78,321 64,611 5,012 3 50,000 0
configure.cpython no-host 15,057 1 58 15.8 27.3 1,772,605 49,191 28,502 101,770 908,047 762,788 42,399 60 50,000 0
configure.util-linux no-host 14,255 3 58 22.2 30.1 2,703,269 44,760 65,806 126,121 1,320,491 1,256,657 49,081 41 131,612 1
configure.ocaml no-host 3,798 0 2 2.7 20.6 150,027 11,039 5,132 8,602 71,623 69,802 2,680 3 50,000 0
configure.tcc no-host 49 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,810 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 22 1 2 2.8 8.8 116,229 64,449 42,657 4,603 54,507 57,119 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 18 2 4.5 bash
15 no-host abuild-print-help 9 6 4 3.4 dash
23 no-host abuild-print-help 454 395 62 21.8 osh-cpython
31 no-host abuild-print-help 22 11 12 8.8 osh-native
1 no-host bin-true 682 505 206 3.0 bash
9 no-host bin-true 538 416 133 1.4 dash
17 no-host bin-true 2,201 1,434 1,020 17.3 osh-cpython
25 no-host bin-true 825 590 250 8.1 osh-native
2 no-host configure.cpython 14,804 8,865 6,338 27.4 bash
10 no-host configure.cpython 14,903 8,948 6,376 27.4 dash
18 no-host configure.cpython 28,079 16,875 13,005 27.5 osh-cpython
26 no-host configure.cpython 15,057 8,975 6,353 27.3 osh-native
4 no-host configure.ocaml 3,744 1,632 1,150 20.6 bash
12 no-host configure.ocaml 3,715 1,591 1,143 20.6 dash
20 no-host configure.ocaml 4,567 2,259 1,507 20.6 osh-cpython
28 no-host configure.ocaml 3,798 1,630 1,207 20.6 osh-native
5 no-host configure.tcc 47 25 23 19.3 bash
13 no-host configure.tcc 42 21 22 19.4 dash
21 no-host configure.tcc 190 150 44 19.3 osh-cpython
29 no-host configure.tcc 49 27 23 19.4 osh-native
3 no-host configure.util-linux 13,792 8,613 5,652 30.1 bash
11 no-host configure.util-linux 14,688 9,119 6,069 30.1 dash
19 no-host configure.util-linux 30,669 20,676 11,036 30.3 osh-cpython
27 no-host configure.util-linux 14,255 8,668 5,787 30.1 osh-native
6 no-host configure.yash 1,810 1,044 768 24.2 bash
14 no-host configure.yash 1,754 993 765 24.4 dash
22 no-host configure.yash 2,400 1,483 957 24.5 osh-cpython
30 no-host configure.yash 1,810 1,095 719 24.4 osh-native
0 no-host hello-world 1 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 47 30 17 17.1 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,554 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,108 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 23,369 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,187 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 107,325 0 0 0 8 0 1,995 70 bash
9 no-host bin-true 67,477 0 0 0 8 0 1,990 45 dash
17 no-host bin-true 740,743 0 0 0 8 0 1,998 115 osh-cpython
25 no-host bin-true 130,186 0 0 0 16 0 1,996 147 osh-native
2 no-host configure.cpython 2,218,680 0 0 0 32,928 0 14,494 1,047 bash
10 no-host configure.cpython 2,248,797 0 0 0 32,992 0 14,603 1,112 dash
18 no-host configure.cpython 6,088,566 1 0 0 27,512 0 13,225 1,183 osh-cpython
26 no-host configure.cpython 2,229,028 0 0 0 27,520 0 13,240 1,269 osh-native
4 no-host configure.ocaml 410,631 0 0 0 5,120 0 1,940 186 bash
12 no-host configure.ocaml 390,910 0 0 0 5,112 0 1,897 157 dash
20 no-host configure.ocaml 636,741 0 0 0 5,112 0 1,866 192 osh-cpython
28 no-host configure.ocaml 414,071 0 0 0 5,120 0 1,940 162 osh-native
5 no-host configure.tcc 6,564 0 0 0 104 0 48 0 bash
13 no-host configure.tcc 5,491 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,079 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 7,005 0 0 0 104 0 46 3 osh-native
3 no-host configure.util-linux 2,095,980 0 0 0 42,400 0 18,597 1,054 bash
11 no-host configure.util-linux 2,261,437 1 0 0 42,592 0 17,501 1,117 dash
19 no-host configure.util-linux 5,289,588 9 0 0 39,112 0 17,050 1,214 osh-cpython
27 no-host configure.util-linux 2,011,913 0 0 0 39,128 0 17,039 1,033 osh-native
6 no-host configure.yash 256,298 0 0 0 4,120 0 878 88 bash
14 no-host configure.yash 244,165 0 0 0 3,720 0 873 66 dash
22 no-host configure.yash 383,537 0 0 0 3,728 0 856 92 osh-cpython
30 no-host configure.yash 258,508 0 0 0 3,736 0 852 97 osh-native
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,650 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-024772fd
dash dash-308ec8e6
osh-cpython osh-528d0b0c
osh-native osh-e2b280f4
host label host id
no-host no-host-e54d7702