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 468 23 24.78 1.24
bin-true no-host 671 544 2,260 826 3.37 1.23
configure.cpython no-host 15,007 15,241 30,062 15,788 2.00 1.05
configure.ocaml no-host 3,834 3,833 4,760 3,922 1.24 1.02
configure.tcc no-host 47 43 199 50 4.20 1.05
configure.util-linux no-host 14,063 15,338 32,922 15,182 2.34 1.08
configure.yash no-host 1,834 1,838 2,524 1,893 1.38 1.03
hello-world no-host 1 1 50 3 33.32 1.92

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,513 1,097 23,312 3,214 9.28 1.28
bin-true no-host 106,281 67,478 750,356 128,208 7.06 1.21
configure.cpython no-host 2,214,180 2,242,518 6,147,554 2,236,704 2.78 1.01
configure.ocaml no-host 410,317 390,041 638,756 413,714 1.56 1.01
configure.tcc no-host 6,557 5,463 23,190 6,512 3.54 0.99
configure.util-linux no-host 2,100,041 2,267,703 5,333,683 2,014,506 2.54 0.96
configure.yash no-host 256,075 244,483 385,774 258,476 1.51 1.01
hello-world no-host 153 79 3,647 347 23.84 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.3 3.5 21.6 9.0 5.00 2.09
bin-true no-host 3.0 1.4 17.3 8.0 5.74 2.65
configure.cpython no-host 27.3 27.4 27.5 27.4 1.01 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.1 19.3 19.7 1.00 1.02
configure.util-linux no-host 30.3 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.2 1.00 0.99
hello-world no-host 2.9 1.3 17.2 6.3 5.95 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,723 3,723 0 684 1,875 1,164 2 0 50,000 0
bin-true no-host 826 1 2 2.7 8.0 154,688 12,992 2,799 11,737 78,344 64,607 5,012 3 50,000 0
configure.cpython no-host 15,788 2 67 15.8 27.4 1,772,604 49,197 28,508 101,770 908,051 762,783 42,399 60 50,000 0
configure.util-linux no-host 15,182 3 69 22.2 30.3 2,703,377 44,766 65,792 126,155 1,320,531 1,256,691 49,086 41 131,584 1
configure.ocaml no-host 3,922 1 2 2.7 20.6 150,030 11,045 5,138 8,602 71,629 69,799 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.7 30,523 30,523 0 1,599 14,799 14,125 350 0 50,000 0
configure.yash no-host 1,893 1 2 2.6 24.2 139,687 7,964 6,600 7,554 70,301 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,266 64,455 42,663 4,610 54,544 57,112 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 19 0 4.3 bash
15 no-host abuild-print-help 10 9 2 3.5 dash
23 no-host abuild-print-help 468 416 56 21.6 osh-cpython
31 no-host abuild-print-help 23 11 13 9.0 osh-native
1 no-host bin-true 671 499 203 3.0 bash
9 no-host bin-true 544 417 136 1.4 dash
17 no-host bin-true 2,260 1,476 1,049 17.3 osh-cpython
25 no-host bin-true 826 581 260 8.0 osh-native
2 no-host configure.cpython 15,007 9,163 6,239 27.3 bash
10 no-host configure.cpython 15,241 9,283 6,383 27.4 dash
18 no-host configure.cpython 30,062 18,311 13,694 27.5 osh-cpython
26 no-host configure.cpython 15,788 9,244 6,818 27.4 osh-native
4 no-host configure.ocaml 3,834 1,652 1,214 20.6 bash
12 no-host configure.ocaml 3,833 1,565 1,288 20.6 dash
20 no-host configure.ocaml 4,760 2,360 1,610 20.6 osh-cpython
28 no-host configure.ocaml 3,922 1,702 1,261 20.6 osh-native
5 no-host configure.tcc 47 31 17 19.3 bash
13 no-host configure.tcc 43 24 19 19.1 dash
21 no-host configure.tcc 199 148 55 19.3 osh-cpython
29 no-host configure.tcc 50 22 28 19.7 osh-native
3 no-host configure.util-linux 14,063 8,878 5,658 30.3 bash
11 no-host configure.util-linux 15,338 9,366 6,471 30.1 dash
19 no-host configure.util-linux 32,922 21,960 12,124 30.1 osh-cpython
27 no-host configure.util-linux 15,182 9,122 6,263 30.3 osh-native
6 no-host configure.yash 1,834 1,059 782 24.4 bash
14 no-host configure.yash 1,838 1,044 797 24.2 dash
22 no-host configure.yash 2,524 1,534 1,034 24.4 osh-cpython
30 no-host configure.yash 1,893 1,019 879 24.2 osh-native
0 no-host hello-world 1 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 50 34 15 17.2 osh-cpython
24 no-host hello-world 3 0 3 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,513 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,097 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,312 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,214 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 106,281 0 0 0 8 0 1,989 58 bash
9 no-host bin-true 67,478 0 0 0 8 0 1,980 41 dash
17 no-host bin-true 750,356 0 0 0 8 0 1,990 261 osh-cpython
25 no-host bin-true 128,208 0 0 0 16 0 1,990 60 osh-native
2 no-host configure.cpython 2,214,180 1 0 0 32,928 0 14,547 1,055 bash
10 no-host configure.cpython 2,242,518 1 0 0 32,992 0 14,593 1,196 dash
18 no-host configure.cpython 6,147,554 0 0 0 27,512 0 13,208 1,310 osh-cpython
26 no-host configure.cpython 2,236,704 0 0 0 27,520 0 13,347 960 osh-native
4 no-host configure.ocaml 410,317 0 0 0 5,120 0 1,956 158 bash
12 no-host configure.ocaml 390,041 0 0 0 5,112 0 1,881 147 dash
20 no-host configure.ocaml 638,756 0 0 0 5,112 0 1,855 195 osh-cpython
28 no-host configure.ocaml 413,714 0 0 0 5,120 0 1,932 162 osh-native
5 no-host configure.tcc 6,557 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,463 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,190 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,512 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,100,041 1 0 0 42,408 0 18,568 1,064 bash
11 no-host configure.util-linux 2,267,703 1 0 0 42,592 0 17,471 1,084 dash
19 no-host configure.util-linux 5,333,683 15 0 0 39,152 0 17,078 1,333 osh-cpython
27 no-host configure.util-linux 2,014,506 0 0 0 39,144 0 17,039 1,086 osh-native
6 no-host configure.yash 256,075 0 0 0 4,120 0 873 78 bash
14 no-host configure.yash 244,483 0 0 0 3,720 0 870 80 dash
22 no-host configure.yash 385,774 0 0 0 3,728 0 859 185 osh-cpython
30 no-host configure.yash 258,476 0 0 0 3,736 0 850 80 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,647 0 0 0 8 0 7 6 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-20bf220d
dash dash-308ec8e6
osh-cpython osh-fb01728a
osh-native osh-0bc1bac7
host label host id
no-host no-host-1c33b689