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 457 24 24.30 1.27
bin-true no-host 674 545 2,207 822 3.27 1.22
configure.cpython no-host 14,868 15,013 28,340 15,166 1.91 1.02
configure.ocaml no-host 3,798 3,731 4,588 3,811 1.21 1.00
configure.tcc no-host 47 41 191 48 4.03 1.02
configure.util-linux no-host 13,918 14,770 30,898 14,275 2.22 1.03
configure.yash no-host 1,812 1,762 2,420 1,816 1.34 1.00
hello-world no-host 1 1 47 3 31.70 1.93

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,542 1,095 23,384 3,223 9.20 1.27
bin-true no-host 104,355 66,499 749,579 128,184 7.18 1.23
configure.cpython no-host 2,219,216 2,240,525 6,108,822 2,240,760 2.75 1.01
configure.ocaml no-host 410,327 390,982 636,446 413,728 1.55 1.01
configure.tcc no-host 6,568 5,458 23,114 6,994 3.52 1.06
configure.util-linux no-host 2,096,793 2,257,094 5,324,250 2,011,471 2.54 0.96
configure.yash no-host 256,602 245,342 384,480 257,533 1.50 1.00
hello-world no-host 153 84 3,658 346 23.91 2.26

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.2 3.5 21.8 9.0 5.19 2.16
bin-true no-host 3.0 1.4 17.3 7.9 5.74 2.61
configure.cpython no-host 27.4 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.7 20.6 20.6 20.6 0.99 0.99
configure.tcc no-host 19.4 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.3 30.0 29.9 0.99 0.99
configure.yash no-host 24.4 24.4 24.4 24.2 1.00 0.99
hello-world no-host 2.9 1.6 17.3 6.2 6.00 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 6.2 3,724 3,724 0 684 1,875 1,165 2 0 50,000 0
bin-true no-host 822 1 2 2.7 7.9 154,690 12,994 2,801 11,737 78,344 64,609 5,012 3 50,000 0
configure.cpython no-host 15,166 1 58 15.8 27.5 1,772,609 49,199 28,510 101,773 908,051 762,785 42,399 60 50,000 0
configure.util-linux no-host 14,275 3 58 22.2 29.9 2,703,273 44,290 65,814 126,124 1,320,495 1,256,654 49,081 41 131,628 1
configure.ocaml no-host 3,811 0 2 2.7 20.6 150,032 11,047 5,140 8,602 71,629 69,801 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,525 30,525 0 1,599 14,799 14,127 350 0 50,000 0
configure.yash no-host 1,816 1 2 2.6 24.2 139,691 7,966 6,602 7,556 70,301 61,834 2,990 3 50,000 0
abuild-print-help no-host 24 1 2 2.8 9.0 116,274 64,458 42,665 4,616 54,544 57,114 478 3 85,330 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 16 3 4.2 bash
15 no-host abuild-print-help 10 7 3 3.5 dash
23 no-host abuild-print-help 457 429 32 21.8 osh-cpython
31 no-host abuild-print-help 24 17 8 9.0 osh-native
1 no-host bin-true 674 488 217 3.0 bash
9 no-host bin-true 545 416 137 1.4 dash
17 no-host bin-true 2,207 1,415 1,047 17.3 osh-cpython
25 no-host bin-true 822 565 272 7.9 osh-native
2 no-host configure.cpython 14,868 8,953 6,310 27.4 bash
10 no-host configure.cpython 15,013 9,024 6,397 27.4 dash
18 no-host configure.cpython 28,340 17,213 12,937 27.4 osh-cpython
26 no-host configure.cpython 15,166 8,868 6,559 27.5 osh-native
4 no-host configure.ocaml 3,798 1,621 1,201 20.7 bash
12 no-host configure.ocaml 3,731 1,637 1,114 20.6 dash
20 no-host configure.ocaml 4,588 2,169 1,617 20.6 osh-cpython
28 no-host configure.ocaml 3,811 1,564 1,285 20.6 osh-native
5 no-host configure.tcc 47 23 25 19.4 bash
13 no-host configure.tcc 41 19 23 19.3 dash
21 no-host configure.tcc 191 125 69 19.3 osh-cpython
29 no-host configure.tcc 48 30 19 19.3 osh-native
3 no-host configure.util-linux 13,918 8,838 5,553 30.3 bash
11 no-host configure.util-linux 14,770 9,033 6,223 30.3 dash
19 no-host configure.util-linux 30,898 20,650 11,288 30.0 osh-cpython
27 no-host configure.util-linux 14,275 8,509 5,959 29.9 osh-native
6 no-host configure.yash 1,812 1,040 778 24.4 bash
14 no-host configure.yash 1,762 1,006 757 24.4 dash
22 no-host configure.yash 2,420 1,584 876 24.4 osh-cpython
30 no-host configure.yash 1,816 1,097 723 24.2 osh-native
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 47 38 8 17.3 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,542 0 0 0 16 0 41 4 bash
15 no-host abuild-print-help 1,095 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,384 0 0 0 8 0 47 14 osh-cpython
31 no-host abuild-print-help 3,223 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 104,355 0 0 0 8 0 1,995 103 bash
9 no-host bin-true 66,499 0 0 0 8 0 1,987 66 dash
17 no-host bin-true 749,579 0 0 0 8 0 2,001 159 osh-cpython
25 no-host bin-true 128,184 0 0 0 16 0 1,995 59 osh-native
2 no-host configure.cpython 2,219,216 0 0 0 32,928 0 14,457 1,049 bash
10 no-host configure.cpython 2,240,525 0 0 0 32,992 0 14,634 1,296 dash
18 no-host configure.cpython 6,108,822 1 0 0 27,512 0 13,214 1,139 osh-cpython
26 no-host configure.cpython 2,240,760 0 0 0 27,520 0 13,258 1,119 osh-native
4 no-host configure.ocaml 410,327 0 0 0 5,120 0 1,961 195 bash
12 no-host configure.ocaml 390,982 0 0 0 5,112 0 1,940 148 dash
20 no-host configure.ocaml 636,446 0 0 0 5,112 0 1,852 220 osh-cpython
28 no-host configure.ocaml 413,728 0 0 0 5,120 0 1,933 158 osh-native
5 no-host configure.tcc 6,568 0 0 0 104 0 49 11 bash
13 no-host configure.tcc 5,458 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,114 0 0 0 96 0 52 4 osh-cpython
29 no-host configure.tcc 6,994 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,096,793 0 0 0 42,400 0 18,586 1,300 bash
11 no-host configure.util-linux 2,257,094 1 0 0 42,584 0 17,438 1,196 dash
19 no-host configure.util-linux 5,324,250 16 0 0 39,112 0 17,080 1,124 osh-cpython
27 no-host configure.util-linux 2,011,471 0 0 0 39,128 0 17,062 1,075 osh-native
6 no-host configure.yash 256,602 0 0 0 4,120 0 871 80 bash
14 no-host configure.yash 245,342 0 0 0 3,720 0 868 86 dash
22 no-host configure.yash 384,480 0 0 0 3,728 0 857 124 osh-cpython
30 no-host configure.yash 257,533 0 0 0 3,736 0 855 92 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,658 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-745b7a08
dash dash-308ec8e6
osh-cpython osh-983c9079
osh-native osh-a2a0fddb
host label host id
no-host no-host-13226fd6