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 20 10 460 23 23.55 1.16
bin-true no-host 684 554 2,253 818 3.30 1.20
configure.cpython no-host 15,247 15,383 29,085 15,634 1.91 1.03
configure.ocaml no-host 3,864 3,834 4,711 3,900 1.22 1.01
configure.tcc no-host 48 42 197 50 4.07 1.03
configure.util-linux no-host 14,322 15,258 31,997 14,827 2.23 1.04
configure.yash no-host 1,845 1,797 2,507 1,863 1.36 1.01
hello-world no-host 2 1 49 3 30.96 1.82

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,570 1,116 23,257 3,215 9.05 1.25
bin-true no-host 106,290 66,466 753,888 126,179 7.09 1.19
configure.cpython no-host 2,219,544 2,245,531 6,137,659 2,239,217 2.77 1.01
configure.ocaml no-host 410,884 390,911 637,443 413,396 1.55 1.01
configure.tcc no-host 6,550 5,470 23,176 6,970 3.54 1.06
configure.util-linux no-host 2,095,027 2,255,077 5,329,960 2,021,352 2.54 0.96
configure.yash no-host 255,063 244,587 385,240 258,971 1.51 1.02
hello-world no-host 151 82 3,654 346 24.20 2.29

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.8 4.85 1.97
bin-true no-host 2.9 1.6 17.3 8.0 6.00 2.77
configure.cpython no-host 27.4 27.5 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.3 19.1 1.00 0.99
configure.util-linux no-host 30.1 30.3 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.4 0.99 1.00
hello-world no-host 2.8 1.4 17.3 6.2 6.29 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 818 1 2 2.7 8.0 154,676 12,986 2,793 11,734 78,335 64,607 5,012 3 50,000 0
configure.cpython no-host 15,634 1 64 15.8 27.5 1,772,595 49,191 28,502 101,770 908,042 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,827 3 63 22.2 30.1 2,703,259 44,760 65,786 126,121 1,320,486 1,256,652 49,081 41 131,572 1
configure.ocaml no-host 3,900 1 2 2.7 20.6 150,021 11,039 5,132 8,602 71,620 69,799 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.1 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,863 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 23 1 2 2.8 8.8 116,257 64,449 42,657 4,609 54,535 57,113 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 20 16 4 4.5 bash
15 no-host abuild-print-help 10 5 5 3.5 dash
23 no-host abuild-print-help 460 411 52 21.6 osh-cpython
31 no-host abuild-print-help 23 10 13 8.8 osh-native
1 no-host bin-true 684 522 191 2.9 bash
9 no-host bin-true 554 445 118 1.6 dash
17 no-host bin-true 2,253 1,461 1,051 17.3 osh-cpython
25 no-host bin-true 818 570 261 8.0 osh-native
2 no-host configure.cpython 15,247 9,056 6,591 27.4 bash
10 no-host configure.cpython 15,383 9,299 6,503 27.5 dash
18 no-host configure.cpython 29,085 17,559 13,407 27.4 osh-cpython
26 no-host configure.cpython 15,634 9,116 6,778 27.5 osh-native
4 no-host configure.ocaml 3,864 1,664 1,233 20.6 bash
12 no-host configure.ocaml 3,834 1,647 1,204 20.4 dash
20 no-host configure.ocaml 4,711 2,311 1,604 20.6 osh-cpython
28 no-host configure.ocaml 3,900 1,642 1,296 20.6 osh-native
5 no-host configure.tcc 48 30 18 19.3 bash
13 no-host configure.tcc 42 19 23 19.3 dash
21 no-host configure.tcc 197 136 64 19.3 osh-cpython
29 no-host configure.tcc 50 25 25 19.1 osh-native
3 no-host configure.util-linux 14,322 9,061 5,738 30.1 bash
11 no-host configure.util-linux 15,258 9,233 6,507 30.3 dash
19 no-host configure.util-linux 31,997 21,301 11,807 30.1 osh-cpython
27 no-host configure.util-linux 14,827 8,927 6,091 30.1 osh-native
6 no-host configure.yash 1,845 983 868 24.4 bash
14 no-host configure.yash 1,797 1,061 739 24.4 dash
22 no-host configure.yash 2,507 1,537 1,007 24.2 osh-cpython
30 no-host configure.yash 1,863 1,057 809 24.4 osh-native
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 23 26 17.3 osh-cpython
24 no-host hello-world 3 3 0 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,570 0 0 0 16 0 41 4 bash
15 no-host abuild-print-help 1,116 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,257 0 0 0 8 0 47 8 osh-cpython
31 no-host abuild-print-help 3,215 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 106,290 0 0 0 8 0 1,993 51 bash
9 no-host bin-true 66,466 0 0 0 8 0 1,985 95 dash
17 no-host bin-true 753,888 0 0 0 8 0 1,996 160 osh-cpython
25 no-host bin-true 126,179 0 0 0 16 0 1,988 67 osh-native
2 no-host configure.cpython 2,219,544 0 0 0 32,928 0 14,445 1,064 bash
10 no-host configure.cpython 2,245,531 0 0 0 32,992 0 14,529 1,194 dash
18 no-host configure.cpython 6,137,659 1 0 0 27,512 0 13,272 1,195 osh-cpython
26 no-host configure.cpython 2,239,217 0 0 0 27,520 0 13,303 1,124 osh-native
4 no-host configure.ocaml 410,884 0 0 0 5,120 0 1,965 166 bash
12 no-host configure.ocaml 390,911 0 0 0 5,112 0 1,929 143 dash
20 no-host configure.ocaml 637,443 1 0 0 5,112 0 1,858 186 osh-cpython
28 no-host configure.ocaml 413,396 0 0 0 5,120 0 1,931 166 osh-native
5 no-host configure.tcc 6,550 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,470 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,176 0 0 0 96 0 52 9 osh-cpython
29 no-host configure.tcc 6,970 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,095,027 1 0 0 42,400 0 18,589 1,103 bash
11 no-host configure.util-linux 2,255,077 0 0 0 42,584 0 17,462 1,110 dash
19 no-host configure.util-linux 5,329,960 10 0 0 39,112 0 17,144 1,367 osh-cpython
27 no-host configure.util-linux 2,021,352 0 0 0 39,120 0 17,112 1,152 osh-native
6 no-host configure.yash 255,063 0 0 0 4,120 0 871 161 bash
14 no-host configure.yash 244,587 0 0 0 3,720 0 866 95 dash
22 no-host configure.yash 385,240 0 0 0 3,728 0 856 99 osh-cpython
30 no-host configure.yash 258,971 0 0 0 3,736 0 857 90 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,654 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-902a3783
dash dash-308ec8e6
osh-cpython osh-e8809cdf
osh-native osh-78321acb
host label host id
no-host no-host-e54d7702