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 465 22 23.30 1.10
bin-true no-host 693 566 2,283 834 3.29 1.20
configure.cpython no-host 15,964 15,729 30,155 16,012 1.89 1.00
configure.ocaml no-host 3,948 3,868 4,838 3,967 1.23 1.00
configure.tcc no-host 49 43 200 51 4.08 1.05
configure.util-linux no-host 14,718 15,457 32,915 15,047 2.24 1.02
configure.yash no-host 1,916 1,840 2,574 1,920 1.34 1.00
hello-world no-host 2 1 51 3 30.95 1.82

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,527 1,133 23,447 3,112 9.28 1.23
bin-true no-host 104,360 66,508 748,666 127,265 7.17 1.22
configure.cpython no-host 2,215,908 2,247,358 6,136,435 2,227,215 2.77 1.01
configure.ocaml no-host 410,857 390,799 639,660 413,270 1.56 1.01
configure.tcc no-host 6,532 5,504 23,285 6,926 3.56 1.06
configure.util-linux no-host 2,100,381 2,254,766 5,314,844 2,007,402 2.53 0.96
configure.yash no-host 256,526 244,992 384,630 258,496 1.50 1.01
hello-world no-host 152 82 3,683 341 24.23 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.3 3.5 21.6 8.4 5.00 1.94
bin-true no-host 2.9 1.4 17.3 7.9 6.00 2.73
configure.cpython no-host 27.5 27.1 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 0.99 1.00
configure.tcc no-host 19.3 19.3 19.1 19.3 0.99 1.00
configure.util-linux no-host 30.3 30.2 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.5 24.2 1.01 0.99
hello-world no-host 2.8 1.6 17.4 5.9 6.33 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 5.9 3,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 834 1 2 2.7 7.9 154,692 12,780 2,737 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 16,012 1 65 15.8 27.5 1,772,668 44,567 28,446 101,770 908,098 762,800 42,399 60 50,000 0
configure.util-linux no-host 15,047 3 66 22.2 30.1 2,703,404 45,079 65,730 126,121 1,320,596 1,256,687 49,081 41 131,460 1
configure.ocaml no-host 3,967 1 2 2.7 20.6 150,038 10,983 5,076 8,602 71,634 69,802 2,680 3 50,000 0
configure.tcc no-host 51 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,920 1 2 2.6 24.2 139,695 7,902 6,538 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.4 116,270 64,393 42,601 4,610 54,546 57,114 478 3 85,202 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 17 3 4.3 bash
15 no-host abuild-print-help 10 7 3 3.5 dash
23 no-host abuild-print-help 465 400 69 21.6 osh-cpython
31 no-host abuild-print-help 22 13 9 8.4 osh-native
1 no-host bin-true 693 505 214 2.9 bash
9 no-host bin-true 566 429 141 1.4 dash
17 no-host bin-true 2,283 1,461 1,094 17.3 osh-cpython
25 no-host bin-true 834 579 269 7.9 osh-native
2 no-host configure.cpython 15,964 9,631 6,753 27.5 bash
10 no-host configure.cpython 15,729 9,495 6,675 27.1 dash
18 no-host configure.cpython 30,155 18,193 13,940 27.4 osh-cpython
26 no-host configure.cpython 16,012 9,239 7,049 27.5 osh-native
4 no-host configure.ocaml 3,948 1,736 1,247 20.6 bash
12 no-host configure.ocaml 3,868 1,731 1,156 20.6 dash
20 no-host configure.ocaml 4,838 2,293 1,760 20.4 osh-cpython
28 no-host configure.ocaml 3,967 1,653 1,351 20.6 osh-native
5 no-host configure.tcc 49 18 31 19.3 bash
13 no-host configure.tcc 43 17 26 19.3 dash
21 no-host configure.tcc 200 161 42 19.1 osh-cpython
29 no-host configure.tcc 51 21 31 19.3 osh-native
3 no-host configure.util-linux 14,718 9,136 6,063 30.3 bash
11 no-host configure.util-linux 15,457 9,361 6,598 30.2 dash
19 no-host configure.util-linux 32,915 21,450 12,644 30.1 osh-cpython
27 no-host configure.util-linux 15,047 9,134 6,116 30.1 osh-native
6 no-host configure.yash 1,916 1,083 838 24.4 bash
14 no-host configure.yash 1,840 1,042 799 24.4 dash
22 no-host configure.yash 2,574 1,545 1,071 24.5 osh-cpython
30 no-host configure.yash 1,920 1,074 851 24.2 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 51 28 23 17.4 osh-cpython
24 no-host hello-world 3 3 0 5.9 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,527 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,133 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,447 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,112 0 0 0 16 0 42 2 osh-native
1 no-host bin-true 104,360 0 0 0 8 0 1,989 109 bash
9 no-host bin-true 66,508 0 0 0 8 0 1,986 38 dash
17 no-host bin-true 748,666 0 0 0 8 0 1,998 102 osh-cpython
25 no-host bin-true 127,265 0 0 0 16 0 1,989 60 osh-native
2 no-host configure.cpython 2,215,908 0 0 0 32,928 0 14,365 1,007 bash
10 no-host configure.cpython 2,247,358 0 0 0 32,992 0 14,712 952 dash
18 no-host configure.cpython 6,136,435 0 0 0 27,512 0 13,303 1,342 osh-cpython
26 no-host configure.cpython 2,227,215 0 0 0 27,520 0 13,305 1,227 osh-native
4 no-host configure.ocaml 410,857 0 0 0 5,120 0 1,956 154 bash
12 no-host configure.ocaml 390,799 0 0 0 5,112 0 1,869 158 dash
20 no-host configure.ocaml 639,660 0 0 0 5,112 0 1,856 192 osh-cpython
28 no-host configure.ocaml 413,270 0 0 0 5,120 0 1,934 158 osh-native
5 no-host configure.tcc 6,532 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,504 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,285 0 0 0 96 0 53 12 osh-cpython
29 no-host configure.tcc 6,926 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,100,381 0 0 0 42,400 0 18,522 1,022 bash
11 no-host configure.util-linux 2,254,766 0 0 0 42,584 0 17,448 1,074 dash
19 no-host configure.util-linux 5,314,844 12 0 0 39,112 0 17,103 1,345 osh-cpython
27 no-host configure.util-linux 2,007,402 4 0 0 39,128 0 17,168 1,041 osh-native
6 no-host configure.yash 256,526 0 0 0 4,120 0 871 174 bash
14 no-host configure.yash 244,992 0 0 0 3,720 0 864 85 dash
22 no-host configure.yash 384,630 2 0 0 3,728 0 856 96 osh-cpython
30 no-host configure.yash 258,496 0 0 0 3,736 0 853 77 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,683 0 0 0 8 0 7 5 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-b3165df9
dash dash-308ec8e6
osh-cpython osh-04629989
osh-native osh-e39e0026
host label host id
no-host no-host-556df3ee