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 10 452 23 23.68 1.20
bin-true no-host 674 545 2,217 822 3.29 1.22
configure.cpython no-host 14,881 14,957 28,404 15,115 1.91 1.02
configure.ocaml no-host 3,766 3,712 4,559 3,801 1.21 1.01
configure.tcc no-host 48 42 190 49 3.97 1.02
configure.util-linux no-host 13,913 14,824 31,018 14,268 2.23 1.03
configure.yash no-host 1,812 1,764 2,412 1,817 1.33 1.00
hello-world no-host 2 1 46 3 30.44 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,549 1,126 23,072 3,213 9.05 1.26
bin-true no-host 105,387 67,421 744,981 128,601 7.07 1.22
configure.cpython no-host 2,218,051 2,244,301 6,061,038 2,244,745 2.73 1.01
configure.ocaml no-host 411,271 390,455 634,175 413,573 1.54 1.01
configure.tcc no-host 6,573 5,460 22,987 6,964 3.50 1.06
configure.util-linux no-host 2,106,161 2,257,703 5,286,258 2,016,502 2.51 0.96
configure.yash no-host 255,578 244,119 383,640 258,835 1.50 1.01
hello-world no-host 152 77 3,629 339 23.88 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.5 3.5 21.6 8.9 4.85 2.00
bin-true no-host 2.9 1.4 17.2 7.7 5.95 2.68
configure.cpython no-host 27.4 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.7 20.4 20.6 20.4 0.99 0.99
configure.tcc no-host 19.4 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.2 24.4 1.00 1.01
hello-world no-host 2.9 1.3 17.0 6.2 5.91 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,673 3,673 0 681 1,828 1,164 2 0 50,000 0
bin-true no-host 822 1 2 2.7 7.7 154,619 12,860 2,762 12,730 77,280 64,609 5,012 3 50,000 0
configure.cpython no-host 15,115 1 58 15.9 27.5 1,765,934 39,052 24,503 101,923 901,347 762,664 42,399 60 50,000 0
configure.util-linux no-host 14,268 3 58 22.2 30.1 2,695,085 29,056 65,774 126,121 1,312,366 1,256,598 49,081 41 131,548 1
configure.ocaml no-host 3,801 0 2 2.7 20.4 149,110 10,969 5,100 8,602 70,893 69,615 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,387 30,387 0 1,599 14,663 14,125 350 0 50,000 0
configure.yash no-host 1,817 1 2 2.6 24.4 138,968 6,642 6,495 7,554 69,574 61,840 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,013 64,388 42,627 4,601 54,295 57,117 478 3 85,254 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 13 7 4.5 bash
15 no-host abuild-print-help 10 8 1 3.5 dash
23 no-host abuild-print-help 452 407 48 21.6 osh-cpython
31 no-host abuild-print-help 23 19 4 8.9 osh-native
1 no-host bin-true 674 513 192 2.9 bash
9 no-host bin-true 545 417 137 1.4 dash
17 no-host bin-true 2,217 1,429 1,033 17.2 osh-cpython
25 no-host bin-true 822 574 263 7.7 osh-native
2 no-host configure.cpython 14,881 8,870 6,417 27.4 bash
10 no-host configure.cpython 14,957 8,941 6,442 27.4 dash
18 no-host configure.cpython 28,404 17,291 12,921 27.4 osh-cpython
26 no-host configure.cpython 15,115 8,873 6,510 27.5 osh-native
4 no-host configure.ocaml 3,766 1,631 1,177 20.7 bash
12 no-host configure.ocaml 3,712 1,512 1,218 20.4 dash
20 no-host configure.ocaml 4,559 2,212 1,544 20.6 osh-cpython
28 no-host configure.ocaml 3,801 1,664 1,175 20.4 osh-native
5 no-host configure.tcc 48 38 10 19.4 bash
13 no-host configure.tcc 42 22 20 19.3 dash
21 no-host configure.tcc 190 107 86 19.3 osh-cpython
29 no-host configure.tcc 49 19 30 19.3 osh-native
3 no-host configure.util-linux 13,913 8,842 5,552 30.3 bash
11 no-host configure.util-linux 14,824 9,006 6,318 30.1 dash
19 no-host configure.util-linux 31,018 20,698 11,374 30.1 osh-cpython
27 no-host configure.util-linux 14,268 8,710 5,756 30.1 osh-native
6 no-host configure.yash 1,812 1,106 714 24.2 bash
14 no-host configure.yash 1,764 1,052 716 24.4 dash
22 no-host configure.yash 2,412 1,484 969 24.2 osh-cpython
30 no-host configure.yash 1,817 1,039 781 24.4 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 46 24 23 17.0 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,549 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,126 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,072 0 0 0 8 0 47 7 osh-cpython
31 no-host abuild-print-help 3,213 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 105,387 0 0 0 8 0 1,995 57 bash
9 no-host bin-true 67,421 0 0 0 8 0 1,993 34 dash
17 no-host bin-true 744,981 0 0 0 8 0 1,998 279 osh-cpython
25 no-host bin-true 128,601 0 0 0 16 0 1,991 88 osh-native
2 no-host configure.cpython 2,218,051 0 0 0 32,928 0 14,625 1,024 bash
10 no-host configure.cpython 2,244,301 1 0 0 32,992 0 14,729 1,195 dash
18 no-host configure.cpython 6,061,038 0 0 0 27,512 0 13,375 1,117 osh-cpython
26 no-host configure.cpython 2,244,745 0 0 0 27,520 0 13,421 1,027 osh-native
4 no-host configure.ocaml 411,271 0 0 0 5,120 0 1,945 144 bash
12 no-host configure.ocaml 390,455 0 0 0 5,112 0 1,900 163 dash
20 no-host configure.ocaml 634,175 1 0 0 5,112 0 1,852 211 osh-cpython
28 no-host configure.ocaml 413,573 0 0 0 5,120 0 1,932 156 osh-native
5 no-host configure.tcc 6,573 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,460 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 22,987 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,964 0 0 0 104 0 46 1 osh-native
3 no-host configure.util-linux 2,106,161 0 0 0 42,400 0 18,580 918 bash
11 no-host configure.util-linux 2,257,703 0 0 0 42,584 0 17,450 1,044 dash
19 no-host configure.util-linux 5,286,258 3 0 0 39,120 0 17,164 1,366 osh-cpython
27 no-host configure.util-linux 2,016,502 0 0 0 39,120 0 17,014 1,070 osh-native
6 no-host configure.yash 255,578 0 0 0 4,120 0 871 81 bash
14 no-host configure.yash 244,119 0 0 0 3,720 0 868 78 dash
22 no-host configure.yash 383,640 0 0 0 3,728 0 853 88 osh-cpython
30 no-host configure.yash 258,835 0 0 0 3,736 0 853 89 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 77 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,629 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 339 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-3c4c9c11
dash dash-308ec8e6
osh-cpython osh-17d97860
osh-native osh-ddefc01e
host label host id
no-host no-host-f581f4dd