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 454 23 23.97 1.19
bin-true no-host 684 553 2,226 822 3.25 1.20
configure.cpython no-host 15,236 15,162 28,721 15,406 1.89 1.01
configure.ocaml no-host 3,837 3,751 4,643 3,868 1.21 1.01
configure.tcc no-host 48 42 194 50 4.06 1.04
configure.util-linux no-host 14,130 15,018 31,415 14,495 2.22 1.03
configure.yash no-host 1,829 1,783 2,449 1,838 1.34 1.00
hello-world no-host 2 1 48 3 29.46 1.78

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,099 23,286 3,207 9.19 1.27
bin-true no-host 106,350 68,424 745,256 126,172 7.01 1.19
configure.cpython no-host 2,224,651 2,243,669 6,106,096 2,236,302 2.74 1.01
configure.ocaml no-host 410,438 390,799 638,579 413,654 1.56 1.01
configure.tcc no-host 6,552 5,489 23,118 6,984 3.53 1.07
configure.util-linux no-host 2,097,600 2,258,848 5,305,925 2,009,408 2.53 0.96
configure.yash no-host 256,338 245,192 383,404 258,131 1.50 1.01
hello-world no-host 150 84 3,656 353 24.37 2.35

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.5 9.0 4.82 2.03
bin-true no-host 2.9 1.6 17.4 7.9 6.05 2.73
configure.cpython no-host 27.4 27.5 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 1.00 0.99
configure.tcc no-host 19.3 19.4 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.3 30.3 30.3 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.6 17.4 6.2 6.05 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.3 6.2 3,729 3,729 0 684 1,881 1,164 2 0 50,000 0
bin-true no-host 822 1 2 2.7 7.9 154,694 12,996 2,803 11,737 78,350 64,607 5,012 3 50,000 0
configure.cpython no-host 15,406 1 63 15.8 27.4 1,772,610 49,201 28,512 101,770 908,057 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,495 3 63 22.2 30.1 2,703,274 44,770 65,796 126,121 1,320,501 1,256,652 49,081 41 131,592 1
configure.ocaml no-host 3,868 1 2 2.7 20.4 150,036 11,049 5,142 8,602 71,635 69,799 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,529 30,529 0 1,599 14,805 14,125 350 0 50,000 0
configure.yash no-host 1,838 1 2 2.6 24.4 139,693 7,968 6,604 7,554 70,307 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,272 64,459 42,667 4,610 54,550 57,112 478 3 85,334 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 6 4.5 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 454 399 59 21.5 osh-cpython
31 no-host abuild-print-help 23 11 12 9.0 osh-native
1 no-host bin-true 684 507 210 2.9 bash
9 no-host bin-true 553 429 133 1.6 dash
17 no-host bin-true 2,226 1,469 1,011 17.4 osh-cpython
25 no-host bin-true 822 581 257 7.9 osh-native
2 no-host configure.cpython 15,236 9,272 6,363 27.4 bash
10 no-host configure.cpython 15,162 9,134 6,436 27.5 dash
18 no-host configure.cpython 28,721 17,306 13,255 27.4 osh-cpython
26 no-host configure.cpython 15,406 9,160 6,516 27.4 osh-native
4 no-host configure.ocaml 3,837 1,583 1,287 20.6 bash
12 no-host configure.ocaml 3,751 1,540 1,229 20.6 dash
20 no-host configure.ocaml 4,643 2,244 1,602 20.6 osh-cpython
28 no-host configure.ocaml 3,868 1,639 1,258 20.4 osh-native
5 no-host configure.tcc 48 31 17 19.3 bash
13 no-host configure.tcc 42 30 12 19.4 dash
21 no-host configure.tcc 194 144 52 19.3 osh-cpython
29 no-host configure.tcc 50 30 20 19.4 osh-native
3 no-host configure.util-linux 14,130 8,922 5,681 30.3 bash
11 no-host configure.util-linux 15,018 9,225 6,273 30.3 dash
19 no-host configure.util-linux 31,415 21,013 11,466 30.3 osh-cpython
27 no-host configure.util-linux 14,495 8,762 5,923 30.1 osh-native
6 no-host configure.yash 1,829 1,109 728 24.2 bash
14 no-host configure.yash 1,783 1,047 739 24.4 dash
22 no-host configure.yash 2,449 1,555 937 24.2 osh-cpython
30 no-host configure.yash 1,838 1,056 785 24.4 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 48 36 12 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,534 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,099 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,286 0 0 0 8 0 47 7 osh-cpython
31 no-host abuild-print-help 3,207 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 106,350 0 0 0 8 0 1,994 120 bash
9 no-host bin-true 68,424 0 0 0 8 0 1,984 85 dash
17 no-host bin-true 745,256 0 0 0 8 0 1,991 158 osh-cpython
25 no-host bin-true 126,172 0 0 0 16 0 1,995 207 osh-native
2 no-host configure.cpython 2,224,651 1 0 0 32,928 0 14,539 1,364 bash
10 no-host configure.cpython 2,243,669 0 0 0 32,992 0 14,637 1,139 dash
18 no-host configure.cpython 6,106,096 0 0 0 27,512 0 13,325 1,231 osh-cpython
26 no-host configure.cpython 2,236,302 0 0 0 27,520 0 13,334 1,015 osh-native
4 no-host configure.ocaml 410,438 0 0 0 5,120 0 1,951 157 bash
12 no-host configure.ocaml 390,799 0 0 0 5,112 0 1,896 149 dash
20 no-host configure.ocaml 638,579 0 0 0 5,112 0 1,858 206 osh-cpython
28 no-host configure.ocaml 413,654 0 0 0 5,120 0 1,933 178 osh-native
5 no-host configure.tcc 6,552 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,489 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,118 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,984 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,097,600 0 0 0 42,400 0 18,620 1,117 bash
11 no-host configure.util-linux 2,258,848 0 0 0 42,584 0 17,473 1,203 dash
19 no-host configure.util-linux 5,305,925 5 0 0 39,112 0 17,057 1,260 osh-cpython
27 no-host configure.util-linux 2,009,408 0 0 0 39,120 0 17,092 1,083 osh-native
6 no-host configure.yash 256,338 0 0 0 4,120 0 872 182 bash
14 no-host configure.yash 245,192 0 0 0 3,720 0 867 75 dash
22 no-host configure.yash 383,404 0 0 0 3,728 0 860 92 osh-cpython
30 no-host configure.yash 258,131 0 0 0 3,736 0 856 91 osh-native
0 no-host hello-world 150 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,656 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 353 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-4328f3ef
dash dash-308ec8e6
osh-cpython osh-adec27f2
osh-native osh-7571d2f9
host label host id
no-host no-host-1c33b689