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 461 22 23.75 1.14
bin-true no-host 682 547 2,921 1,038 4.28 1.52
configure.cpython no-host 15,630 15,951 28,988 15,344 1.85 0.98
configure.ocaml no-host 3,943 3,769 4,674 3,879 1.19 0.98
configure.tcc no-host 49 43 194 49 3.96 1.00
configure.util-linux no-host 14,653 15,494 31,634 14,804 2.16 1.01
configure.yash no-host 1,891 1,788 2,494 1,863 1.32 0.99
hello-world no-host 2 1 49 3 32.54 2.10

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,138 22,923 3,166 9.05 1.25
bin-true no-host 106,352 66,480 885,586 212,485 8.33 2.00
configure.cpython no-host 2,219,268 2,250,878 6,162,966 2,223,260 2.78 1.00
configure.ocaml no-host 410,631 390,772 639,406 413,762 1.56 1.01
configure.tcc no-host 6,556 5,464 23,218 7,024 3.54 1.07
configure.util-linux no-host 2,097,766 2,260,805 5,324,664 1,999,980 2.54 0.95
configure.yash no-host 256,160 244,684 387,414 262,387 1.51 1.02
hello-world no-host 149 80 3,694 347 24.79 2.33

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.9 9.0 5.06 2.09
bin-true no-host 3.0 1.6 19.1 8.1 6.35 2.70
configure.cpython no-host 27.4 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.3 19.3 19.3 0.99 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.4 24.2 24.5 0.99 1.01
hello-world no-host 2.6 1.3 17.4 6.2 6.65 2.35

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,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 1,038 1 2 2.6 8.1 206,738 17,814 2,818 9,734 110,375 86,629 3,008 4 50,000 0
configure.cpython no-host 15,344 1 60 15.0 27.5 1,772,716 49,108 28,528 86,381 908,129 778,206 22,694 60 50,000 0
configure.util-linux no-host 14,804 2 61 21.3 30.1 2,703,551 44,172 65,812 109,643 1,320,686 1,273,222 27,391 41 131,624 1
configure.ocaml no-host 3,879 1 2 2.6 20.6 150,084 10,993 5,163 7,513 71,663 70,908 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,573 30,573 0 1,504 14,830 14,239 226 0 50,000 0
configure.yash no-host 1,863 1 2 2.6 24.5 143,034 10,578 6,510 6,320 72,288 64,426 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,471 42,681 4,555 54,561 57,176 270 3 85,362 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 15 5 4.3 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 461 409 55 21.9 osh-cpython
31 no-host abuild-print-help 22 20 3 9.0 osh-native
1 no-host bin-true 682 516 200 3.0 bash
9 no-host bin-true 547 413 139 1.6 dash
17 no-host bin-true 2,921 2,094 1,093 19.1 osh-cpython
25 no-host bin-true 1,038 726 329 8.1 osh-native
2 no-host configure.cpython 15,630 9,188 6,848 27.4 bash
10 no-host configure.cpython 15,951 9,411 6,955 27.4 dash
18 no-host configure.cpython 28,988 17,404 13,482 27.4 osh-cpython
26 no-host configure.cpython 15,344 9,022 6,594 27.5 osh-native
4 no-host configure.ocaml 3,943 1,671 1,304 20.6 bash
12 no-host configure.ocaml 3,769 1,631 1,154 20.6 dash
20 no-host configure.ocaml 4,674 2,312 1,568 20.6 osh-cpython
28 no-host configure.ocaml 3,879 1,666 1,251 20.6 osh-native
5 no-host configure.tcc 49 23 26 19.4 bash
13 no-host configure.tcc 43 28 15 19.3 dash
21 no-host configure.tcc 194 153 44 19.3 osh-cpython
29 no-host configure.tcc 49 33 16 19.3 osh-native
3 no-host configure.util-linux 14,653 9,070 6,060 30.3 bash
11 no-host configure.util-linux 15,494 9,385 6,613 30.1 dash
19 no-host configure.util-linux 31,634 21,151 11,600 30.3 osh-cpython
27 no-host configure.util-linux 14,804 8,820 6,176 30.1 osh-native
6 no-host configure.yash 1,891 1,134 766 24.4 bash
14 no-host configure.yash 1,788 1,051 741 24.4 dash
22 no-host configure.yash 2,494 1,539 998 24.2 osh-cpython
30 no-host configure.yash 1,863 1,051 816 24.5 osh-native
0 no-host hello-world 2 0 2 2.6 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 49 25 24 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 0 bash
15 no-host abuild-print-help 1,138 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 22,923 0 0 0 8 0 45 4 osh-cpython
31 no-host abuild-print-help 3,166 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 106,352 0 0 0 8 0 1,995 100 bash
9 no-host bin-true 66,480 0 0 0 8 0 1,989 59 dash
17 no-host bin-true 885,586 0 0 0 8 0 2,000 232 osh-cpython
25 no-host bin-true 212,485 0 0 0 16 0 1,989 99 osh-native
2 no-host configure.cpython 2,219,268 0 0 0 32,928 0 14,511 1,094 bash
10 no-host configure.cpython 2,250,878 0 0 0 32,992 0 14,547 1,181 dash
18 no-host configure.cpython 6,162,966 0 0 0 27,512 0 13,228 1,315 osh-cpython
26 no-host configure.cpython 2,223,260 0 0 0 27,520 0 13,305 1,205 osh-native
4 no-host configure.ocaml 410,631 0 0 0 5,120 0 1,958 181 bash
12 no-host configure.ocaml 390,772 0 0 0 5,112 0 1,883 150 dash
20 no-host configure.ocaml 639,406 0 0 0 5,112 0 1,850 180 osh-cpython
28 no-host configure.ocaml 413,762 0 0 0 5,120 0 1,929 135 osh-native
5 no-host configure.tcc 6,556 0 0 0 104 0 49 12 bash
13 no-host configure.tcc 5,464 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,218 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 7,024 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,097,766 0 0 0 42,400 0 18,609 1,094 bash
11 no-host configure.util-linux 2,260,805 1 0 0 42,592 0 17,495 1,174 dash
19 no-host configure.util-linux 5,324,664 6 0 0 39,112 0 17,086 1,344 osh-cpython
27 no-host configure.util-linux 1,999,980 0 0 0 39,120 0 16,989 1,006 osh-native
6 no-host configure.yash 256,160 0 0 0 4,120 0 867 84 bash
14 no-host configure.yash 244,684 0 0 0 3,720 0 868 82 dash
22 no-host configure.yash 387,414 0 0 0 3,728 0 857 101 osh-cpython
30 no-host configure.yash 262,387 0 0 0 3,736 0 850 85 osh-native
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,694 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-f38f3a97
dash dash-308ec8e6
osh-cpython osh-1b33ab38
osh-native osh-8bebfd15
host label host id
no-host no-host-556df3ee