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 456 22 24.11 1.17
bin-true no-host 672 545 2,220 812 3.31 1.21
configure.cpython no-host 14,825 14,878 28,233 15,022 1.90 1.01
configure.ocaml no-host 3,786 3,704 4,579 3,794 1.21 1.00
configure.tcc no-host 48 41 191 49 4.01 1.02
configure.util-linux no-host 13,832 14,733 30,790 14,206 2.23 1.03
configure.yash no-host 1,794 1,751 2,415 1,805 1.35 1.01
hello-world no-host 1 1 47 3 31.97 1.92

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,107 23,224 3,203 9.11 1.26
bin-true no-host 107,361 65,414 752,076 127,192 7.01 1.18
configure.cpython no-host 2,222,833 2,240,637 6,147,985 2,230,444 2.77 1.00
configure.ocaml no-host 410,780 391,139 638,074 413,835 1.55 1.01
configure.tcc no-host 6,559 5,496 23,225 6,995 3.54 1.07
configure.util-linux no-host 2,110,716 2,265,343 5,338,921 2,011,369 2.53 0.95
configure.yash no-host 256,592 244,128 385,444 259,130 1.50 1.01
hello-world no-host 155 82 3,655 343 23.58 2.21

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.4 21.6 8.8 4.99 2.03
bin-true no-host 3.0 1.4 17.3 8.0 5.73 2.65
configure.cpython no-host 27.3 27.5 27.5 27.3 1.01 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.4 0.99 0.99
configure.tcc no-host 19.3 19.4 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.0 30.1 30.3 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.9 1.4 17.3 6.2 6.00 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,717 3,717 0 684 1,869 1,164 2 0 50,000 0
bin-true no-host 812 1 2 2.7 8.0 154,682 12,988 2,795 11,737 78,338 64,607 5,012 3 50,000 0
configure.cpython no-host 15,022 1 60 15.8 27.3 1,772,598 49,193 28,504 101,770 908,045 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,206 3 58 22.2 30.3 2,703,262 44,762 65,808 126,121 1,320,489 1,256,652 49,081 41 131,616 1
configure.ocaml no-host 3,794 1 2 2.7 20.4 150,024 11,041 5,134 8,602 71,623 69,799 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,517 30,517 0 1,599 14,793 14,125 350 0 50,000 0
configure.yash no-host 1,805 1 2 2.6 24.4 139,681 7,960 6,596 7,554 70,295 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,260 64,451 42,659 4,609 54,538 57,113 478 3 85,318 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 10 9 4.3 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 456 407 52 21.6 osh-cpython
31 no-host abuild-print-help 22 21 1 8.8 osh-native
1 no-host bin-true 672 498 205 3.0 bash
9 no-host bin-true 545 409 143 1.4 dash
17 no-host bin-true 2,220 1,479 994 17.3 osh-cpython
25 no-host bin-true 812 578 248 8.0 osh-native
2 no-host configure.cpython 14,825 9,085 6,141 27.3 bash
10 no-host configure.cpython 14,878 9,037 6,261 27.5 dash
18 no-host configure.cpython 28,233 17,415 12,614 27.5 osh-cpython
26 no-host configure.cpython 15,022 8,559 6,723 27.3 osh-native
4 no-host configure.ocaml 3,786 1,653 1,175 20.6 bash
12 no-host configure.ocaml 3,704 1,583 1,140 20.6 dash
20 no-host configure.ocaml 4,579 2,213 1,565 20.4 osh-cpython
28 no-host configure.ocaml 3,794 1,587 1,246 20.4 osh-native
5 no-host configure.tcc 48 23 26 19.3 bash
13 no-host configure.tcc 41 20 22 19.4 dash
21 no-host configure.tcc 191 140 54 19.3 osh-cpython
29 no-host configure.tcc 49 32 16 19.3 osh-native
3 no-host configure.util-linux 13,832 8,824 5,482 30.3 bash
11 no-host configure.util-linux 14,733 9,107 6,115 30.0 dash
19 no-host configure.util-linux 30,790 20,362 11,487 30.1 osh-cpython
27 no-host configure.util-linux 14,206 8,471 5,927 30.3 osh-native
6 no-host configure.yash 1,794 1,029 773 24.2 bash
14 no-host configure.yash 1,751 1,025 729 24.4 dash
22 no-host configure.yash 2,415 1,490 965 24.4 osh-cpython
30 no-host configure.yash 1,805 1,111 698 24.4 osh-native
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 47 20 27 17.3 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 2 bash
15 no-host abuild-print-help 1,107 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,224 0 0 0 8 0 47 6 osh-cpython
31 no-host abuild-print-help 3,203 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 107,361 0 0 0 8 0 1,990 66 bash
9 no-host bin-true 65,414 0 0 0 8 0 1,987 40 dash
17 no-host bin-true 752,076 0 0 0 8 0 2,000 204 osh-cpython
25 no-host bin-true 127,192 0 0 0 16 0 1,988 118 osh-native
2 no-host configure.cpython 2,222,833 0 0 0 32,928 0 14,514 1,202 bash
10 no-host configure.cpython 2,240,637 1 0 0 32,992 0 14,612 1,010 dash
18 no-host configure.cpython 6,147,985 0 0 0 27,512 0 13,315 1,061 osh-cpython
26 no-host configure.cpython 2,230,444 0 0 0 27,520 0 13,286 991 osh-native
4 no-host configure.ocaml 410,780 0 0 0 5,120 0 1,948 192 bash
12 no-host configure.ocaml 391,139 0 0 0 5,112 0 1,909 149 dash
20 no-host configure.ocaml 638,074 0 0 0 5,112 0 1,865 203 osh-cpython
28 no-host configure.ocaml 413,835 0 0 0 5,120 0 1,932 205 osh-native
5 no-host configure.tcc 6,559 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,496 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,225 0 0 0 96 0 53 13 osh-cpython
29 no-host configure.tcc 6,995 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,110,716 0 0 0 42,408 0 18,563 1,028 bash
11 no-host configure.util-linux 2,265,343 0 0 0 42,592 0 17,451 1,213 dash
19 no-host configure.util-linux 5,338,921 15 0 0 39,112 0 17,092 1,266 osh-cpython
27 no-host configure.util-linux 2,011,369 0 0 0 39,120 0 17,200 1,023 osh-native
6 no-host configure.yash 256,592 0 0 0 4,120 0 871 88 bash
14 no-host configure.yash 244,128 0 0 0 3,720 0 870 95 dash
22 no-host configure.yash 385,444 0 0 0 3,728 0 856 77 osh-cpython
30 no-host configure.yash 259,130 0 0 0 3,736 0 849 72 osh-native
0 no-host hello-world 155 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,655 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-9499008b
dash dash-308ec8e6
osh-cpython osh-ba898ee8
osh-native osh-6e5b318d
host label host id
no-host no-host-13226fd6