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 457 22 23.57 1.14
bin-true no-host 678 549 2,238 823 3.30 1.21
configure.cpython no-host 15,124 15,184 28,975 15,342 1.92 1.01
configure.ocaml no-host 3,821 3,777 4,657 3,864 1.22 1.01
configure.tcc no-host 49 42 193 50 3.97 1.02
configure.util-linux no-host 14,234 15,103 31,471 14,870 2.21 1.04
configure.yash no-host 1,847 1,791 2,445 1,856 1.32 1.01
hello-world no-host 2 1 48 3 30.42 1.80

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,555 1,106 23,518 3,200 9.20 1.25
bin-true no-host 106,281 66,447 752,871 127,220 7.08 1.20
configure.cpython no-host 2,217,481 2,243,111 6,144,599 2,234,298 2.77 1.01
configure.ocaml no-host 410,615 390,799 640,249 413,970 1.56 1.01
configure.tcc no-host 6,568 5,495 23,255 6,977 3.54 1.06
configure.util-linux no-host 2,097,675 2,255,051 5,334,619 2,020,900 2.54 0.96
configure.yash no-host 255,988 245,152 385,000 257,933 1.50 1.01
hello-world no-host 152 81 3,679 347 24.20 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.5 3.4 21.9 8.7 4.91 1.94
bin-true no-host 2.9 1.6 17.4 8.0 6.05 2.77
configure.cpython no-host 27.4 27.4 27.3 27.4 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.4 19.1 19.4 19.3 1.00 0.99
configure.util-linux no-host 30.3 30.1 30.3 30.1 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.9 1.4 17.3 6.3 6.00 2.18

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.3 3,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 823 1 2 2.7 8.0 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,342 1 61 15.8 27.4 1,772,668 49,197 28,508 101,770 908,098 762,800 42,399 60 50,000 0
configure.util-linux no-host 14,870 3 64 22.2 30.1 2,703,404 44,766 65,792 126,121 1,320,596 1,256,687 49,081 41 131,584 1
configure.ocaml no-host 3,864 1 2 2.7 20.6 150,038 11,045 5,138 8,602 71,634 69,802 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,527 30,527 0 1,599 14,801 14,127 350 0 50,000 0
configure.yash no-host 1,856 1 2 2.6 24.4 139,695 7,964 6,600 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.7 116,270 64,455 42,663 4,610 54,546 57,114 478 3 85,326 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 11 8 4.5 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 457 403 57 21.9 osh-cpython
31 no-host abuild-print-help 22 16 7 8.7 osh-native
1 no-host bin-true 678 500 210 2.9 bash
9 no-host bin-true 549 418 141 1.6 dash
17 no-host bin-true 2,238 1,435 1,061 17.4 osh-cpython
25 no-host bin-true 823 579 257 8.0 osh-native
2 no-host configure.cpython 15,124 9,065 6,453 27.4 bash
10 no-host configure.cpython 15,184 9,159 6,451 27.4 dash
18 no-host configure.cpython 28,975 17,874 13,002 27.3 osh-cpython
26 no-host configure.cpython 15,342 9,005 6,608 27.4 osh-native
4 no-host configure.ocaml 3,821 1,636 1,222 20.6 bash
12 no-host configure.ocaml 3,777 1,625 1,172 20.4 dash
20 no-host configure.ocaml 4,657 2,287 1,580 20.6 osh-cpython
28 no-host configure.ocaml 3,864 1,703 1,200 20.6 osh-native
5 no-host configure.tcc 49 33 16 19.4 bash
13 no-host configure.tcc 42 22 21 19.1 dash
21 no-host configure.tcc 193 143 53 19.4 osh-cpython
29 no-host configure.tcc 50 39 11 19.3 osh-native
3 no-host configure.util-linux 14,234 8,915 5,794 30.3 bash
11 no-host configure.util-linux 15,103 9,266 6,339 30.1 dash
19 no-host configure.util-linux 31,471 21,146 11,435 30.3 osh-cpython
27 no-host configure.util-linux 14,870 9,006 6,060 30.1 osh-native
6 no-host configure.yash 1,847 1,106 749 24.4 bash
14 no-host configure.yash 1,791 1,015 778 24.2 dash
22 no-host configure.yash 2,445 1,495 994 24.4 osh-cpython
30 no-host configure.yash 1,856 1,059 801 24.4 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 28 20 17.3 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,555 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,106 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,518 0 0 0 8 0 47 8 osh-cpython
31 no-host abuild-print-help 3,200 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 106,281 0 0 0 8 0 1,996 102 bash
9 no-host bin-true 66,447 0 0 0 8 0 1,996 85 dash
17 no-host bin-true 752,871 0 0 0 8 0 1,991 183 osh-cpython
25 no-host bin-true 127,220 0 0 0 16 0 1,988 73 osh-native
2 no-host configure.cpython 2,217,481 0 0 0 32,928 0 14,525 953 bash
10 no-host configure.cpython 2,243,111 0 0 0 32,992 0 14,636 1,213 dash
18 no-host configure.cpython 6,144,599 0 0 0 27,512 0 13,283 1,207 osh-cpython
26 no-host configure.cpython 2,234,298 0 0 0 27,520 0 13,216 1,055 osh-native
4 no-host configure.ocaml 410,615 0 0 0 5,120 0 1,949 158 bash
12 no-host configure.ocaml 390,799 0 0 0 5,112 0 1,890 129 dash
20 no-host configure.ocaml 640,249 1 0 0 5,112 0 1,857 200 osh-cpython
28 no-host configure.ocaml 413,970 0 0 0 5,120 0 1,934 154 osh-native
5 no-host configure.tcc 6,568 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,495 0 0 0 96 0 46 2 dash
21 no-host configure.tcc 23,255 0 0 0 96 0 54 13 osh-cpython
29 no-host configure.tcc 6,977 0 0 0 104 0 47 9 osh-native
3 no-host configure.util-linux 2,097,675 0 0 0 42,400 0 18,585 1,221 bash
11 no-host configure.util-linux 2,255,051 1 0 0 42,584 0 17,400 1,046 dash
19 no-host configure.util-linux 5,334,619 5 0 0 39,128 0 17,058 1,226 osh-cpython
27 no-host configure.util-linux 2,020,900 1 0 0 39,120 0 17,068 1,106 osh-native
6 no-host configure.yash 255,988 0 0 0 4,120 0 868 80 bash
14 no-host configure.yash 245,152 0 0 0 3,720 0 870 85 dash
22 no-host configure.yash 385,000 0 0 0 3,728 0 858 99 osh-cpython
30 no-host configure.yash 257,933 0 0 0 3,736 0 852 94 osh-native
0 no-host hello-world 152 0 0 0 8 0 0 1 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,679 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-d0645024
dash dash-308ec8e6
osh-cpython osh-5d3e13a5
osh-native osh-c35c1965
host label host id
no-host no-host-556df3ee