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 470 23 24.54 1.19
bin-true no-host 680 550 2,284 826 3.36 1.21
configure.cpython no-host 15,471 15,560 29,417 15,672 1.90 1.01
configure.ocaml no-host 3,864 3,841 4,753 3,923 1.23 1.02
configure.tcc no-host 49 43 197 50 4.07 1.04
configure.util-linux no-host 14,441 15,267 32,142 14,852 2.23 1.03
configure.yash no-host 1,842 1,824 2,539 1,895 1.38 1.03
hello-world no-host 2 1 51 3 32.68 1.84

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,545 1,100 23,557 3,214 9.26 1.26
bin-true no-host 106,437 66,469 750,005 129,205 7.05 1.21
configure.cpython no-host 2,215,675 2,242,464 6,105,451 2,240,667 2.76 1.01
configure.ocaml no-host 410,683 391,378 637,873 413,429 1.55 1.01
configure.tcc no-host 6,560 5,473 23,244 6,985 3.54 1.06
configure.util-linux no-host 2,101,616 2,262,317 5,319,280 2,010,927 2.53 0.96
configure.yash no-host 256,307 242,970 385,272 258,379 1.50 1.01
hello-world no-host 152 82 3,654 341 24.04 2.24

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.5 8.7 4.82 1.94
bin-true no-host 2.9 1.4 17.3 8.0 6.00 2.77
configure.cpython no-host 27.5 27.3 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.4 20.6 20.6 1.01 1.01
configure.tcc no-host 19.4 19.4 19.4 19.3 1.00 0.99
configure.util-linux no-host 30.3 30.1 30.3 30.0 1.00 0.99
configure.yash no-host 24.4 24.2 24.4 24.2 1.00 0.99
hello-world no-host 2.8 1.4 17.2 6.2 6.24 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 826 1 2 2.7 8.0 154,662 12,890 2,792 11,730 78,321 64,611 5,012 3 50,000 0
configure.cpython no-host 15,672 1 64 15.8 27.4 1,772,605 49,191 28,502 101,770 908,047 762,788 42,399 60 50,000 0
configure.util-linux no-host 14,852 2 62 22.2 30.0 2,703,269 44,760 65,786 126,121 1,320,491 1,256,657 49,081 41 131,572 1
configure.ocaml no-host 3,923 1 2 2.7 20.6 150,027 11,039 5,132 8,602 71,623 69,802 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,895 1 2 2.6 24.2 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.7 116,229 64,449 42,657 4,603 54,507 57,119 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 19 18 2 4.5 bash
15 no-host abuild-print-help 9 8 2 3.5 dash
23 no-host abuild-print-help 470 436 37 21.5 osh-cpython
31 no-host abuild-print-help 23 19 4 8.7 osh-native
1 no-host bin-true 680 504 208 2.9 bash
9 no-host bin-true 550 423 136 1.4 dash
17 no-host bin-true 2,284 1,510 1,033 17.3 osh-cpython
25 no-host bin-true 826 575 264 8.0 osh-native
2 no-host configure.cpython 15,471 9,409 6,464 27.5 bash
10 no-host configure.cpython 15,560 9,537 6,452 27.3 dash
18 no-host configure.cpython 29,417 17,861 13,443 27.5 osh-cpython
26 no-host configure.cpython 15,672 9,142 6,804 27.4 osh-native
4 no-host configure.ocaml 3,864 1,628 1,271 20.4 bash
12 no-host configure.ocaml 3,841 1,643 1,218 20.4 dash
20 no-host configure.ocaml 4,753 2,255 1,702 20.6 osh-cpython
28 no-host configure.ocaml 3,923 1,690 1,271 20.6 osh-native
5 no-host configure.tcc 49 23 26 19.4 bash
13 no-host configure.tcc 43 29 14 19.4 dash
21 no-host configure.tcc 197 156 44 19.4 osh-cpython
29 no-host configure.tcc 50 22 29 19.3 osh-native
3 no-host configure.util-linux 14,441 9,031 5,903 30.3 bash
11 no-host configure.util-linux 15,267 9,196 6,567 30.1 dash
19 no-host configure.util-linux 32,142 21,295 11,941 30.3 osh-cpython
27 no-host configure.util-linux 14,852 8,829 6,218 30.0 osh-native
6 no-host configure.yash 1,842 1,043 808 24.4 bash
14 no-host configure.yash 1,824 1,115 712 24.2 dash
22 no-host configure.yash 2,539 1,525 1,060 24.4 osh-cpython
30 no-host configure.yash 1,895 1,113 786 24.2 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 51 31 19 17.2 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,545 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,100 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,557 0 0 0 8 0 47 12 osh-cpython
31 no-host abuild-print-help 3,214 0 0 0 16 0 41 3 osh-native
1 no-host bin-true 106,437 0 0 0 8 0 1,988 97 bash
9 no-host bin-true 66,469 0 0 0 8 0 1,984 49 dash
17 no-host bin-true 750,005 0 0 0 8 0 1,997 199 osh-cpython
25 no-host bin-true 129,205 0 0 0 16 0 1,988 69 osh-native
2 no-host configure.cpython 2,215,675 0 0 0 32,928 0 14,430 1,023 bash
10 no-host configure.cpython 2,242,464 0 0 0 32,992 0 14,587 1,321 dash
18 no-host configure.cpython 6,105,451 0 0 0 27,512 0 13,235 1,278 osh-cpython
26 no-host configure.cpython 2,240,667 1 0 0 27,520 0 13,237 1,135 osh-native
4 no-host configure.ocaml 410,683 0 0 0 5,120 0 1,954 180 bash
12 no-host configure.ocaml 391,378 0 0 0 5,112 0 1,935 158 dash
20 no-host configure.ocaml 637,873 0 0 0 5,112 0 1,851 222 osh-cpython
28 no-host configure.ocaml 413,429 0 0 0 5,120 0 1,934 161 osh-native
5 no-host configure.tcc 6,560 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,473 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,244 0 0 0 96 0 54 7 osh-cpython
29 no-host configure.tcc 6,985 0 0 0 104 0 46 2 osh-native
3 no-host configure.util-linux 2,101,616 0 0 0 42,408 0 18,621 1,093 bash
11 no-host configure.util-linux 2,262,317 2 0 0 42,592 0 17,486 1,149 dash
19 no-host configure.util-linux 5,319,280 9 0 0 39,120 0 17,019 1,276 osh-cpython
27 no-host configure.util-linux 2,010,927 1 0 0 39,128 0 17,075 1,138 osh-native
6 no-host configure.yash 256,307 0 0 0 4,120 0 871 95 bash
14 no-host configure.yash 242,970 0 0 0 3,720 0 870 99 dash
22 no-host configure.yash 385,272 0 0 0 3,728 0 857 111 osh-cpython
30 no-host configure.yash 258,379 0 0 0 3,736 0 853 73 osh-native
0 no-host hello-world 152 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 7 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-98f4aa29
dash dash-308ec8e6
osh-cpython osh-54a87e70
osh-native osh-953b45cd
host label host id
no-host no-host-e54d7702