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 447 22 23.21 1.14
bin-true no-host 667 537 2,271 811 3.40 1.22
configure.cpython no-host 14,863 14,948 28,471 15,143 1.92 1.02
configure.ocaml no-host 3,785 3,703 4,603 3,798 1.22 1.00
configure.tcc no-host 48 42 193 49 4.01 1.02
configure.util-linux no-host 13,889 14,747 30,781 14,280 2.22 1.03
configure.yash no-host 1,801 1,759 2,416 1,823 1.34 1.01
hello-world no-host 2 1 49 3 30.20 1.74

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,543 1,103 22,943 3,148 9.02 1.24
bin-true no-host 105,413 65,444 758,872 129,181 7.20 1.23
configure.cpython no-host 2,229,437 2,248,950 6,183,075 2,228,037 2.77 1.00
configure.ocaml no-host 410,502 391,307 640,410 413,826 1.56 1.01
configure.tcc no-host 6,540 5,463 23,310 6,995 3.56 1.07
configure.util-linux no-host 2,101,679 2,259,007 5,333,607 2,000,979 2.54 0.95
configure.yash no-host 256,094 244,141 385,656 258,624 1.51 1.01
hello-world no-host 151 82 3,698 349 24.49 2.31

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.8 8.9 4.88 2.00
bin-true no-host 3.0 1.4 17.6 8.0 5.82 2.65
configure.cpython no-host 27.1 27.5 27.4 27.4 1.01 1.01
configure.ocaml no-host 20.6 20.4 20.3 20.4 0.99 0.99
configure.tcc no-host 19.1 19.3 19.3 19.1 1.01 1.00
configure.util-linux no-host 30.1 30.0 30.1 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.4 6.2 6.33 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.3 6.2 3,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 811 1 2 2.6 8.0 154,714 13,066 2,818 9,734 78,361 66,619 3,008 3 50,000 0
configure.cpython no-host 15,143 1 60 15.0 27.4 1,772,690 49,108 28,528 86,381 908,113 778,196 22,694 60 50,000 0
configure.util-linux no-host 14,280 3 58 21.3 30.1 2,703,426 42,745 65,832 109,643 1,320,611 1,273,172 27,391 41 131,664 1
configure.ocaml no-host 3,798 1 2 2.6 20.4 150,060 10,993 5,163 7,513 71,649 70,898 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.1 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,823 1 2 2.6 24.4 139,717 7,961 6,620 6,320 70,321 63,076 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,292 64,471 42,681 4,555 54,561 57,176 270 3 85,362 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 16 4 4.5 bash
15 no-host abuild-print-help 9 10 0 3.5 dash
23 no-host abuild-print-help 447 413 37 21.8 osh-cpython
31 no-host abuild-print-help 22 17 5 8.9 osh-native
1 no-host bin-true 667 504 197 3.0 bash
9 no-host bin-true 537 416 131 1.4 dash
17 no-host bin-true 2,271 1,470 1,067 17.6 osh-cpython
25 no-host bin-true 811 580 245 8.0 osh-native
2 no-host configure.cpython 14,863 9,010 6,254 27.1 bash
10 no-host configure.cpython 14,948 8,921 6,441 27.5 dash
18 no-host configure.cpython 28,471 17,410 12,922 27.4 osh-cpython
26 no-host configure.cpython 15,143 8,984 6,428 27.4 osh-native
4 no-host configure.ocaml 3,785 1,578 1,242 20.6 bash
12 no-host configure.ocaml 3,703 1,535 1,188 20.4 dash
20 no-host configure.ocaml 4,603 2,271 1,541 20.3 osh-cpython
28 no-host configure.ocaml 3,798 1,638 1,198 20.4 osh-native
5 no-host configure.tcc 48 26 23 19.1 bash
13 no-host configure.tcc 42 26 16 19.3 dash
21 no-host configure.tcc 193 142 54 19.3 osh-cpython
29 no-host configure.tcc 49 21 28 19.1 osh-native
3 no-host configure.util-linux 13,889 8,788 5,569 30.1 bash
11 no-host configure.util-linux 14,747 8,988 6,241 30.0 dash
19 no-host configure.util-linux 30,781 20,657 11,208 30.1 osh-cpython
27 no-host configure.util-linux 14,280 8,644 5,833 30.1 osh-native
6 no-host configure.yash 1,801 1,046 763 24.4 bash
14 no-host configure.yash 1,759 1,056 705 24.4 dash
22 no-host configure.yash 2,416 1,440 1,019 24.4 osh-cpython
30 no-host configure.yash 1,823 1,059 768 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 49 40 8 17.4 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,543 0 0 0 16 0 39 2 bash
15 no-host abuild-print-help 1,103 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,943 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,148 0 0 0 16 0 39 4 osh-native
1 no-host bin-true 105,413 0 0 0 8 0 1,988 63 bash
9 no-host bin-true 65,444 0 0 0 8 0 1,982 62 dash
17 no-host bin-true 758,872 0 0 0 8 0 2,000 276 osh-cpython
25 no-host bin-true 129,181 0 0 0 16 0 1,988 72 osh-native
2 no-host configure.cpython 2,229,437 1 0 0 32,928 0 14,387 1,074 bash
10 no-host configure.cpython 2,248,950 0 0 0 32,992 0 14,586 1,095 dash
18 no-host configure.cpython 6,183,075 0 0 0 27,512 0 13,253 1,240 osh-cpython
26 no-host configure.cpython 2,228,037 0 0 0 27,520 0 13,248 998 osh-native
4 no-host configure.ocaml 410,502 0 0 0 5,120 0 1,956 158 bash
12 no-host configure.ocaml 391,307 0 0 0 5,112 0 1,916 149 dash
20 no-host configure.ocaml 640,410 0 0 0 5,112 0 1,853 168 osh-cpython
28 no-host configure.ocaml 413,826 0 0 0 5,120 0 1,923 171 osh-native
5 no-host configure.tcc 6,540 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,463 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,310 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,995 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,101,679 0 0 0 42,408 0 18,575 1,096 bash
11 no-host configure.util-linux 2,259,007 0 0 0 42,592 0 17,459 1,133 dash
19 no-host configure.util-linux 5,333,607 6 0 0 39,112 0 17,101 1,315 osh-cpython
27 no-host configure.util-linux 2,000,979 1 0 0 39,128 0 16,998 1,098 osh-native
6 no-host configure.yash 256,094 0 0 0 4,120 0 873 75 bash
14 no-host configure.yash 244,141 0 0 0 3,720 0 869 85 dash
22 no-host configure.yash 385,656 0 0 0 3,728 0 853 85 osh-cpython
30 no-host configure.yash 258,624 0 0 0 3,736 0 847 95 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,698 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-7febf1a7
dash dash-308ec8e6
osh-cpython osh-e7182864
osh-native osh-a0c5f2d4
host label host id
no-host no-host-556df3ee