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 498 24 25.88 1.24
bin-true no-host 677 544 2,227 822 3.29 1.21
configure.cpython no-host 15,150 15,227 29,031 15,504 1.92 1.02
configure.ocaml no-host 3,828 3,764 4,671 3,855 1.22 1.01
configure.tcc no-host 48 42 194 49 4.03 1.03
configure.util-linux no-host 14,107 15,100 31,443 14,525 2.23 1.03
configure.yash no-host 1,838 1,786 2,476 1,863 1.35 1.01
hello-world no-host 2 1 49 3 32.12 1.88

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,532 1,120 23,334 3,213 9.22 1.27
bin-true no-host 103,307 66,370 744,661 127,188 7.21 1.23
configure.cpython no-host 2,213,190 2,247,138 6,140,117 2,240,822 2.77 1.01
configure.ocaml no-host 410,544 391,253 639,180 413,475 1.56 1.01
configure.tcc no-host 6,560 5,488 23,216 6,963 3.54 1.06
configure.util-linux no-host 2,099,493 2,268,203 5,330,268 2,014,458 2.54 0.96
configure.yash no-host 256,717 243,394 385,093 258,334 1.50 1.01
hello-world no-host 152 83 3,661 346 24.09 2.28

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.5 9.0 4.97 2.09
bin-true no-host 3.0 1.3 17.4 7.9 5.78 2.61
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.4 19.3 19.3 19.1 0.99 0.99
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.2 24.2 1.00 1.00
hello-world no-host 2.9 1.4 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,504 1 65 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,525 3 64 22.2 30.3 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,855 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 49 0 0 1.3 19.1 30,529 30,529 0 1,599 14,805 14,125 350 0 50,000 0
configure.yash no-host 1,863 1 2 2.6 24.2 139,693 7,968 6,604 7,554 70,307 61,832 2,990 3 50,000 0
abuild-print-help no-host 24 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 18 2 4.3 bash
15 no-host abuild-print-help 9 8 2 3.4 dash
23 no-host abuild-print-help 498 435 65 21.5 osh-cpython
31 no-host abuild-print-help 24 22 2 9.0 osh-native
1 no-host bin-true 677 509 198 3.0 bash
9 no-host bin-true 544 413 139 1.3 dash
17 no-host bin-true 2,227 1,456 1,034 17.4 osh-cpython
25 no-host bin-true 822 572 265 7.9 osh-native
2 no-host configure.cpython 15,150 9,160 6,397 27.4 bash
10 no-host configure.cpython 15,227 9,308 6,347 27.5 dash
18 no-host configure.cpython 29,031 17,690 13,211 27.4 osh-cpython
26 no-host configure.cpython 15,504 9,262 6,515 27.4 osh-native
4 no-host configure.ocaml 3,828 1,662 1,198 20.6 bash
12 no-host configure.ocaml 3,764 1,550 1,234 20.6 dash
20 no-host configure.ocaml 4,671 2,311 1,566 20.6 osh-cpython
28 no-host configure.ocaml 3,855 1,622 1,271 20.4 osh-native
5 no-host configure.tcc 48 18 30 19.4 bash
13 no-host configure.tcc 42 28 14 19.3 dash
21 no-host configure.tcc 194 140 57 19.3 osh-cpython
29 no-host configure.tcc 49 28 22 19.1 osh-native
3 no-host configure.util-linux 14,107 8,855 5,732 30.3 bash
11 no-host configure.util-linux 15,100 9,281 6,319 30.0 dash
19 no-host configure.util-linux 31,443 21,029 11,514 30.1 osh-cpython
27 no-host configure.util-linux 14,525 8,931 5,792 30.3 osh-native
6 no-host configure.yash 1,838 1,027 819 24.2 bash
14 no-host configure.yash 1,786 1,079 710 24.4 dash
22 no-host configure.yash 2,476 1,511 1,009 24.2 osh-cpython
30 no-host configure.yash 1,863 979 887 24.2 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 26 22 17.4 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,532 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,120 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,334 0 0 0 8 0 47 253 osh-cpython
31 no-host abuild-print-help 3,213 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 103,307 0 0 0 8 0 1,993 161 bash
9 no-host bin-true 66,370 0 0 0 8 0 1,987 38 dash
17 no-host bin-true 744,661 0 0 0 8 0 1,999 114 osh-cpython
25 no-host bin-true 127,188 0 0 0 16 0 1,994 239 osh-native
2 no-host configure.cpython 2,213,190 0 0 0 32,928 0 14,591 1,239 bash
10 no-host configure.cpython 2,247,138 1 0 0 32,992 0 14,687 971 dash
18 no-host configure.cpython 6,140,117 1 0 0 27,512 0 13,310 1,336 osh-cpython
26 no-host configure.cpython 2,240,822 0 0 0 27,520 0 13,253 1,226 osh-native
4 no-host configure.ocaml 410,544 0 0 0 5,120 0 1,946 193 bash
12 no-host configure.ocaml 391,253 0 0 0 5,112 0 1,937 170 dash
20 no-host configure.ocaml 639,180 0 0 0 5,112 0 1,857 205 osh-cpython
28 no-host configure.ocaml 413,475 0 0 0 5,120 0 1,932 177 osh-native
5 no-host configure.tcc 6,560 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,488 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,216 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,963 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,099,493 0 0 0 42,400 0 18,637 1,122 bash
11 no-host configure.util-linux 2,268,203 0 0 0 42,584 0 17,518 1,156 dash
19 no-host configure.util-linux 5,330,268 8 0 0 39,120 0 17,044 1,225 osh-cpython
27 no-host configure.util-linux 2,014,458 0 0 0 39,128 0 17,084 962 osh-native
6 no-host configure.yash 256,717 0 0 0 4,120 0 867 78 bash
14 no-host configure.yash 243,394 0 0 0 3,720 0 864 87 dash
22 no-host configure.yash 385,093 0 0 0 3,728 0 857 93 osh-cpython
30 no-host configure.yash 258,334 0 0 0 3,736 0 851 111 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,661 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-090c7574
dash dash-308ec8e6
osh-cpython osh-8095c8da
osh-native osh-e721b3ef
host label host id
no-host no-host-1c33b689