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 461 22 23.45 1.14
bin-true no-host 682 547 2,259 829 3.31 1.22
configure.cpython no-host 15,471 15,584 29,133 15,818 1.88 1.02
configure.ocaml no-host 3,936 3,864 4,771 3,955 1.21 1.00
configure.tcc no-host 49 43 202 52 4.14 1.06
configure.util-linux no-host 14,375 15,279 32,091 14,921 2.23 1.04
configure.yash no-host 1,878 1,827 2,520 1,912 1.34 1.02
hello-world no-host 2 1 51 3 31.79 1.81

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,533 1,131 23,452 3,206 9.26 1.27
bin-true no-host 106,319 66,404 752,629 127,178 7.08 1.20
configure.cpython no-host 2,216,710 2,246,943 6,138,690 2,244,212 2.77 1.01
configure.ocaml no-host 410,136 391,441 639,969 413,774 1.56 1.01
configure.tcc no-host 6,550 5,475 23,275 6,975 3.55 1.06
configure.util-linux no-host 2,096,812 2,258,882 5,323,541 2,017,604 2.54 0.96
configure.yash no-host 256,177 245,052 384,676 259,136 1.50 1.01
hello-world no-host 154 81 3,688 350 23.95 2.27

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.9 8.7 4.91 1.94
bin-true no-host 2.9 1.4 17.4 8.3 6.05 2.86
configure.cpython no-host 27.5 27.4 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.7 20.6 20.4 20.6 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.3 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.5 0.99 1.01
hello-world no-host 2.8 1.3 17.4 6.2 6.33 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.3 6.2 3,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 829 1 2 2.7 8.3 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,818 2 68 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,921 3 65 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,955 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 52 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,912 1 2 2.6 24.5 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 20 10 10 4.5 bash
15 no-host abuild-print-help 10 9 2 3.5 dash
23 no-host abuild-print-help 461 418 46 21.9 osh-cpython
31 no-host abuild-print-help 22 14 9 8.7 osh-native
1 no-host bin-true 682 517 194 2.9 bash
9 no-host bin-true 547 425 134 1.4 dash
17 no-host bin-true 2,259 1,545 980 17.4 osh-cpython
25 no-host bin-true 829 574 270 8.3 osh-native
2 no-host configure.cpython 15,471 9,267 6,598 27.5 bash
10 no-host configure.cpython 15,584 9,390 6,622 27.4 dash
18 no-host configure.cpython 29,133 17,778 13,250 27.5 osh-cpython
26 no-host configure.cpython 15,818 9,484 6,606 27.4 osh-native
4 no-host configure.ocaml 3,936 1,710 1,261 20.7 bash
12 no-host configure.ocaml 3,864 1,568 1,301 20.6 dash
20 no-host configure.ocaml 4,771 2,318 1,662 20.4 osh-cpython
28 no-host configure.ocaml 3,955 1,629 1,366 20.6 osh-native
5 no-host configure.tcc 49 32 17 19.3 bash
13 no-host configure.tcc 43 23 20 19.3 dash
21 no-host configure.tcc 202 145 61 19.3 osh-cpython
29 no-host configure.tcc 52 24 29 19.3 osh-native
3 no-host configure.util-linux 14,375 8,987 5,873 30.1 bash
11 no-host configure.util-linux 15,279 9,336 6,447 30.3 dash
19 no-host configure.util-linux 32,091 21,431 11,792 30.1 osh-cpython
27 no-host configure.util-linux 14,921 8,875 6,248 30.1 osh-native
6 no-host configure.yash 1,878 1,099 789 24.4 bash
14 no-host configure.yash 1,827 1,041 788 24.4 dash
22 no-host configure.yash 2,520 1,551 1,014 24.2 osh-cpython
30 no-host configure.yash 1,912 1,081 836 24.5 osh-native
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 51 21 29 17.4 osh-cpython
24 no-host hello-world 3 0 3 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,533 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,131 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,452 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,206 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 106,319 0 0 0 8 0 1,995 45 bash
9 no-host bin-true 66,404 0 0 0 8 0 1,991 32 dash
17 no-host bin-true 752,629 0 0 0 8 0 2,000 183 osh-cpython
25 no-host bin-true 127,178 0 0 0 16 0 1,991 69 osh-native
2 no-host configure.cpython 2,216,710 0 0 0 32,928 0 14,519 982 bash
10 no-host configure.cpython 2,246,943 0 0 0 32,992 0 14,587 1,200 dash
18 no-host configure.cpython 6,138,690 0 0 0 27,512 0 13,291 1,236 osh-cpython
26 no-host configure.cpython 2,244,212 2 0 0 27,520 0 13,358 1,021 osh-native
4 no-host configure.ocaml 410,136 0 0 0 5,120 0 1,957 168 bash
12 no-host configure.ocaml 391,441 0 0 0 5,112 0 1,940 146 dash
20 no-host configure.ocaml 639,969 0 0 0 5,112 0 1,855 167 osh-cpython
28 no-host configure.ocaml 413,774 0 0 0 5,120 0 1,929 161 osh-native
5 no-host configure.tcc 6,550 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,475 0 0 0 96 0 47 9 dash
21 no-host configure.tcc 23,275 0 0 0 96 0 52 12 osh-cpython
29 no-host configure.tcc 6,975 0 0 0 104 0 46 1 osh-native
3 no-host configure.util-linux 2,096,812 1 0 0 42,400 0 18,647 1,042 bash
11 no-host configure.util-linux 2,258,882 2 0 0 42,584 0 17,525 1,095 dash
19 no-host configure.util-linux 5,323,541 12 0 0 39,120 0 17,092 1,285 osh-cpython
27 no-host configure.util-linux 2,017,604 1 0 0 39,128 0 17,100 1,038 osh-native
6 no-host configure.yash 256,177 0 0 0 4,120 0 865 85 bash
14 no-host configure.yash 245,052 0 0 0 3,720 0 870 208 dash
22 no-host configure.yash 384,676 0 0 0 3,728 0 857 127 osh-cpython
30 no-host configure.yash 259,136 0 0 0 3,736 0 853 73 osh-native
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,688 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-bf226cc2
dash dash-308ec8e6
osh-cpython osh-0c73a763
osh-native osh-9c0108c9
host label host id
no-host no-host-556df3ee