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 456 23 23.65 1.18
bin-true no-host 677 547 2,246 824 3.32 1.22
configure.cpython no-host 15,196 15,300 28,772 15,388 1.89 1.01
configure.ocaml no-host 3,839 3,777 4,647 3,869 1.21 1.01
configure.tcc no-host 48 41 191 50 4.01 1.04
configure.util-linux no-host 14,168 15,039 31,517 14,532 2.22 1.03
configure.yash no-host 1,832 1,788 2,491 1,851 1.36 1.01
hello-world no-host 2 1 48 3 27.43 1.68

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,538 1,105 23,235 3,197 9.15 1.26
bin-true no-host 105,337 66,548 745,760 127,174 7.08 1.21
configure.cpython no-host 2,225,347 2,246,593 6,097,267 2,245,754 2.74 1.01
configure.ocaml no-host 410,815 391,362 637,620 413,746 1.55 1.01
configure.tcc no-host 6,564 5,480 23,210 6,999 3.54 1.07
configure.util-linux no-host 2,096,722 2,254,881 5,328,828 2,010,659 2.54 0.96
configure.yash no-host 254,986 245,090 384,882 258,320 1.51 1.01
hello-world no-host 154 81 3,649 341 23.69 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.5 3.4 21.4 8.9 4.79 2.00
bin-true no-host 2.9 1.3 17.3 8.0 6.00 2.77
configure.cpython no-host 27.3 27.1 27.3 27.1 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.4 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.1 30.1 30.3 30.4 1.00 1.01
configure.yash no-host 24.2 24.1 24.2 24.2 1.00 1.00
hello-world no-host 2.9 1.4 17.3 6.0 6.00 2.09

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.0 3,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 824 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,388 1 63 15.8 27.1 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,532 3 60 22.2 30.4 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,869 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,851 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.9 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 17 3 4.5 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 456 419 40 21.4 osh-cpython
31 no-host abuild-print-help 23 19 4 8.9 osh-native
1 no-host bin-true 677 492 218 2.9 bash
9 no-host bin-true 547 422 135 1.3 dash
17 no-host bin-true 2,246 1,490 1,005 17.3 osh-cpython
25 no-host bin-true 824 600 240 8.0 osh-native
2 no-host configure.cpython 15,196 9,158 6,438 27.3 bash
10 no-host configure.cpython 15,300 9,351 6,387 27.1 dash
18 no-host configure.cpython 28,772 17,399 13,200 27.3 osh-cpython
26 no-host configure.cpython 15,388 9,058 6,608 27.1 osh-native
4 no-host configure.ocaml 3,839 1,611 1,272 20.6 bash
12 no-host configure.ocaml 3,777 1,636 1,163 20.4 dash
20 no-host configure.ocaml 4,647 2,212 1,637 20.6 osh-cpython
28 no-host configure.ocaml 3,869 1,663 1,244 20.6 osh-native
5 no-host configure.tcc 48 31 18 19.3 bash
13 no-host configure.tcc 41 20 22 19.4 dash
21 no-host configure.tcc 191 122 72 19.3 osh-cpython
29 no-host configure.tcc 50 25 25 19.3 osh-native
3 no-host configure.util-linux 14,168 8,967 5,672 30.1 bash
11 no-host configure.util-linux 15,039 9,249 6,277 30.1 dash
19 no-host configure.util-linux 31,517 21,068 11,523 30.3 osh-cpython
27 no-host configure.util-linux 14,532 8,626 6,104 30.4 osh-native
6 no-host configure.yash 1,832 1,093 742 24.2 bash
14 no-host configure.yash 1,788 1,020 772 24.1 dash
22 no-host configure.yash 2,491 1,519 1,013 24.2 osh-cpython
30 no-host configure.yash 1,851 1,100 755 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 48 18 30 17.3 osh-cpython
24 no-host hello-world 3 0 3 6.0 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,538 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,105 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,235 0 0 0 8 0 47 12 osh-cpython
31 no-host abuild-print-help 3,197 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 105,337 0 0 0 8 0 1,990 87 bash
9 no-host bin-true 66,548 0 0 0 8 0 1,989 96 dash
17 no-host bin-true 745,760 0 0 0 8 0 1,994 217 osh-cpython
25 no-host bin-true 127,174 0 0 0 16 0 1,990 55 osh-native
2 no-host configure.cpython 2,225,347 0 0 0 32,928 0 14,521 1,178 bash
10 no-host configure.cpython 2,246,593 0 0 0 32,992 0 14,613 1,060 dash
18 no-host configure.cpython 6,097,267 0 0 0 27,512 0 13,306 1,316 osh-cpython
26 no-host configure.cpython 2,245,754 0 0 0 27,520 0 13,303 1,319 osh-native
4 no-host configure.ocaml 410,815 0 0 0 5,120 0 1,933 257 bash
12 no-host configure.ocaml 391,362 0 0 0 5,112 0 1,945 157 dash
20 no-host configure.ocaml 637,620 0 0 0 5,112 0 1,869 211 osh-cpython
28 no-host configure.ocaml 413,746 0 0 0 5,120 0 1,935 158 osh-native
5 no-host configure.tcc 6,564 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,480 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,210 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,999 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,096,722 0 0 0 42,400 0 18,581 1,154 bash
11 no-host configure.util-linux 2,254,881 0 0 0 42,584 0 17,362 1,092 dash
19 no-host configure.util-linux 5,328,828 3 0 0 39,112 0 17,003 1,243 osh-cpython
27 no-host configure.util-linux 2,010,659 0 0 0 39,120 0 17,036 1,001 osh-native
6 no-host configure.yash 254,986 0 0 0 4,120 0 868 102 bash
14 no-host configure.yash 245,090 0 0 0 3,720 0 867 92 dash
22 no-host configure.yash 384,882 0 0 0 3,728 0 858 129 osh-cpython
30 no-host configure.yash 258,320 0 0 0 3,736 0 852 89 osh-native
0 no-host hello-world 154 0 0 0 8 0 1 1 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,649 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-0a1f4073
dash dash-308ec8e6
osh-cpython osh-473efec9
osh-native osh-dbefa126
host label host id
no-host no-host-e54d7702