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 476 24 23.64 1.18
bin-true no-host 687 555 2,258 842 3.29 1.22
configure.cpython no-host 15,483 15,787 29,674 16,252 1.92 1.05
configure.ocaml no-host 3,905 3,871 4,854 3,994 1.24 1.02
configure.tcc no-host 51 43 202 51 3.94 0.99
configure.util-linux no-host 14,454 15,500 32,845 15,235 2.27 1.05
configure.yash no-host 1,898 1,835 2,619 1,926 1.38 1.01
hello-world no-host 2 1 50 3 31.98 1.86

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,528 1,098 23,116 3,192 9.14 1.26
bin-true no-host 106,299 65,394 734,588 130,171 6.91 1.22
configure.cpython no-host 2,217,074 2,248,288 6,086,418 2,240,618 2.75 1.01
configure.ocaml no-host 410,650 391,605 635,297 414,225 1.55 1.01
configure.tcc no-host 6,555 5,488 22,963 7,020 3.50 1.07
configure.util-linux no-host 2,100,732 2,257,184 5,297,762 2,026,368 2.52 0.96
configure.yash no-host 256,377 244,150 384,166 258,687 1.50 1.01
hello-world no-host 148 82 3,641 341 24.60 2.30

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.8 8.9 5.03 2.06
bin-true no-host 3.0 1.3 17.3 8.0 5.74 2.65
configure.cpython no-host 27.4 27.4 27.5 27.4 1.00 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.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.1 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.4 1.00 1.00
hello-world no-host 2.6 1.4 17.2 6.2 6.55 2.35

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 842 1 2 2.7 8.0 154,658 12,890 2,792 11,730 78,319 64,609 5,012 3 50,000 0
configure.cpython no-host 16,252 2 68 15.9 27.4 1,772,935 49,191 28,502 101,923 908,314 762,698 42,399 60 50,000 0
configure.util-linux no-host 15,235 3 66 22.2 30.3 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,994 1 2 2.7 20.4 150,021 11,039 5,132 8,602 71,620 69,799 2,680 3 50,000 0
configure.tcc no-host 51 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,926 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 24 1 2 2.8 8.9 116,221 64,449 42,657 4,601 54,503 57,117 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 11 9 4.3 bash
15 no-host abuild-print-help 10 5 5 3.4 dash
23 no-host abuild-print-help 476 434 45 21.8 osh-cpython
31 no-host abuild-print-help 24 12 13 8.9 osh-native
1 no-host bin-true 687 517 200 3.0 bash
9 no-host bin-true 555 432 132 1.3 dash
17 no-host bin-true 2,258 1,475 1,048 17.3 osh-cpython
25 no-host bin-true 842 589 268 8.0 osh-native
2 no-host configure.cpython 15,483 9,282 6,598 27.4 bash
10 no-host configure.cpython 15,787 9,569 6,651 27.4 dash
18 no-host configure.cpython 29,674 17,987 13,588 27.5 osh-cpython
26 no-host configure.cpython 16,252 9,475 7,056 27.4 osh-native
4 no-host configure.ocaml 3,905 1,700 1,247 20.6 bash
12 no-host configure.ocaml 3,871 1,688 1,202 20.6 dash
20 no-host configure.ocaml 4,854 2,253 1,815 20.4 osh-cpython
28 no-host configure.ocaml 3,994 1,765 1,269 20.4 osh-native
5 no-host configure.tcc 51 32 19 19.3 bash
13 no-host configure.tcc 43 27 16 19.3 dash
21 no-host configure.tcc 202 160 46 19.3 osh-cpython
29 no-host configure.tcc 51 31 20 19.3 osh-native
3 no-host configure.util-linux 14,454 9,079 5,863 30.1 bash
11 no-host configure.util-linux 15,500 9,481 6,511 30.1 dash
19 no-host configure.util-linux 32,845 21,702 12,251 30.1 osh-cpython
27 no-host configure.util-linux 15,235 9,140 6,286 30.3 osh-native
6 no-host configure.yash 1,898 1,116 792 24.4 bash
14 no-host configure.yash 1,835 1,094 744 24.2 dash
22 no-host configure.yash 2,619 1,644 1,020 24.4 osh-cpython
30 no-host configure.yash 1,926 1,085 846 24.4 osh-native
0 no-host hello-world 2 2 0 2.6 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 50 37 13 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,528 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,098 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,116 0 0 0 8 0 47 7 osh-cpython
31 no-host abuild-print-help 3,192 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 106,299 0 0 0 8 0 1,987 40 bash
9 no-host bin-true 65,394 0 0 0 8 0 1,983 67 dash
17 no-host bin-true 734,588 0 0 0 8 0 1,987 120 osh-cpython
25 no-host bin-true 130,171 0 0 0 16 0 1,981 124 osh-native
2 no-host configure.cpython 2,217,074 0 0 0 32,928 0 14,517 1,049 bash
10 no-host configure.cpython 2,248,288 0 0 0 32,992 0 14,568 1,199 dash
18 no-host configure.cpython 6,086,418 0 0 0 27,512 0 13,248 1,312 osh-cpython
26 no-host configure.cpython 2,240,618 0 0 0 27,520 0 13,281 1,040 osh-native
4 no-host configure.ocaml 410,650 0 0 0 5,120 0 1,947 156 bash
12 no-host configure.ocaml 391,605 0 0 0 5,112 0 1,873 145 dash
20 no-host configure.ocaml 635,297 0 0 0 5,112 0 1,856 196 osh-cpython
28 no-host configure.ocaml 414,225 0 0 0 5,120 0 1,933 161 osh-native
5 no-host configure.tcc 6,555 0 0 0 104 0 49 7 bash
13 no-host configure.tcc 5,488 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 22,963 0 0 0 96 0 53 16 osh-cpython
29 no-host configure.tcc 7,020 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,100,732 0 0 0 42,400 0 18,577 1,290 bash
11 no-host configure.util-linux 2,257,184 2 0 0 42,592 0 17,452 1,087 dash
19 no-host configure.util-linux 5,297,762 2 0 0 39,136 0 17,051 1,297 osh-cpython
27 no-host configure.util-linux 2,026,368 3 0 0 39,128 0 17,037 1,042 osh-native
6 no-host configure.yash 256,377 0 0 0 4,120 0 869 78 bash
14 no-host configure.yash 244,150 0 0 0 3,720 0 865 90 dash
22 no-host configure.yash 384,166 0 0 0 3,728 0 855 93 osh-cpython
30 no-host configure.yash 258,687 0 0 0 3,736 0 852 79 osh-native
0 no-host hello-world 148 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,641 0 0 0 8 0 7 4 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-8f7e7efa
dash dash-308ec8e6
osh-cpython osh-74b025f5
osh-native osh-083f9707
host label host id
no-host no-host-e54d7702