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 9 456 22 23.55 1.15
bin-true no-host 685 546 2,228 823 3.25 1.20
configure.cpython no-host 14,989 15,131 28,524 15,294 1.90 1.02
configure.ocaml no-host 3,825 3,734 4,676 3,839 1.22 1.00
configure.tcc no-host 47 41 191 49 4.03 1.04
configure.util-linux no-host 14,065 14,890 31,234 14,451 2.22 1.03
configure.yash no-host 1,816 1,780 2,453 1,834 1.35 1.01
hello-world no-host 2 1 48 3 30.86 1.79

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,101 23,548 3,198 9.26 1.26
bin-true no-host 105,363 65,463 744,855 127,184 7.07 1.21
configure.cpython no-host 2,217,746 2,245,116 6,117,438 2,229,485 2.76 1.01
configure.ocaml no-host 410,144 391,212 638,782 413,547 1.56 1.01
configure.tcc no-host 6,568 5,481 23,211 6,950 3.53 1.06
configure.util-linux no-host 2,099,381 2,262,665 5,321,900 2,011,716 2.53 0.96
configure.yash no-host 256,776 244,504 384,503 258,070 1.50 1.01
hello-world no-host 152 82 3,664 347 24.11 2.28

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.4 21.6 9.0 4.85 2.03
bin-true no-host 3.0 1.3 17.6 8.1 5.83 2.70
configure.cpython no-host 27.4 27.4 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.3 19.4 19.3 1.01 1.00
configure.util-linux no-host 30.3 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.5 24.4 1.01 1.00
hello-world no-host 2.9 1.4 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,722 3,722 0 684 1,873 1,165 2 0 50,000 0
bin-true no-host 823 1 2 2.7 8.1 154,687 12,991 2,798 11,737 78,342 64,608 5,012 3 50,000 0
configure.cpython no-host 15,294 1 60 15.8 27.4 1,772,603 49,196 28,507 101,770 908,049 762,784 42,399 60 50,000 0
configure.util-linux no-host 14,451 2 59 22.2 30.1 2,703,267 44,765 65,811 126,121 1,320,493 1,256,653 49,081 41 131,622 1
configure.ocaml no-host 3,839 1 2 2.7 20.6 150,029 11,044 5,137 8,602 71,627 69,800 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,522 30,522 0 1,599 14,797 14,126 350 0 50,000 0
configure.yash no-host 1,834 1 2 2.6 24.4 139,686 7,963 6,599 7,554 70,299 61,833 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,265 64,454 42,662 4,610 54,542 57,113 478 3 85,324 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 10 9 4.5 bash
15 no-host abuild-print-help 9 9 0 3.4 dash
23 no-host abuild-print-help 456 417 42 21.6 osh-cpython
31 no-host abuild-print-help 22 16 7 9.0 osh-native
1 no-host bin-true 685 509 206 3.0 bash
9 no-host bin-true 546 411 143 1.3 dash
17 no-host bin-true 2,228 1,432 1,052 17.6 osh-cpython
25 no-host bin-true 823 600 237 8.1 osh-native
2 no-host configure.cpython 14,989 9,000 6,387 27.4 bash
10 no-host configure.cpython 15,131 9,110 6,415 27.4 dash
18 no-host configure.cpython 28,524 17,098 13,241 27.5 osh-cpython
26 no-host configure.cpython 15,294 9,061 6,496 27.4 osh-native
4 no-host configure.ocaml 3,825 1,641 1,221 20.4 bash
12 no-host configure.ocaml 3,734 1,618 1,127 20.6 dash
20 no-host configure.ocaml 4,676 2,163 1,685 20.6 osh-cpython
28 no-host configure.ocaml 3,839 1,633 1,246 20.6 osh-native
5 no-host configure.tcc 47 29 19 19.3 bash
13 no-host configure.tcc 41 25 17 19.3 dash
21 no-host configure.tcc 191 133 61 19.4 osh-cpython
29 no-host configure.tcc 49 35 14 19.3 osh-native
3 no-host configure.util-linux 14,065 8,942 5,586 30.3 bash
11 no-host configure.util-linux 14,890 9,063 6,306 30.1 dash
19 no-host configure.util-linux 31,234 20,933 11,362 30.1 osh-cpython
27 no-host configure.util-linux 14,451 8,832 5,799 30.1 osh-native
6 no-host configure.yash 1,816 1,045 778 24.4 bash
14 no-host configure.yash 1,780 1,040 743 24.4 dash
22 no-host configure.yash 2,453 1,548 942 24.5 osh-cpython
30 no-host configure.yash 1,834 1,023 815 24.4 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 40 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 2 bash
15 no-host abuild-print-help 1,101 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,548 0 0 0 8 0 47 7 osh-cpython
31 no-host abuild-print-help 3,198 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 105,363 0 0 0 8 0 1,997 94 bash
9 no-host bin-true 65,463 0 0 0 8 0 1,995 57 dash
17 no-host bin-true 744,855 0 0 0 8 0 2,000 459 osh-cpython
25 no-host bin-true 127,184 0 0 0 16 0 1,983 64 osh-native
2 no-host configure.cpython 2,217,746 0 0 0 32,928 0 14,521 1,076 bash
10 no-host configure.cpython 2,245,116 0 0 0 32,992 0 14,624 1,130 dash
18 no-host configure.cpython 6,117,438 0 0 0 27,512 0 13,304 1,264 osh-cpython
26 no-host configure.cpython 2,229,485 0 0 0 27,520 0 13,312 973 osh-native
4 no-host configure.ocaml 410,144 0 0 0 5,120 0 1,956 202 bash
12 no-host configure.ocaml 391,212 0 0 0 5,112 0 1,945 127 dash
20 no-host configure.ocaml 638,782 0 0 0 5,112 0 1,857 182 osh-cpython
28 no-host configure.ocaml 413,547 0 0 0 5,120 0 1,937 157 osh-native
5 no-host configure.tcc 6,568 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,481 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,211 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,950 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,099,381 0 0 0 42,408 0 18,571 1,148 bash
11 no-host configure.util-linux 2,262,665 0 0 0 42,592 0 17,436 1,056 dash
19 no-host configure.util-linux 5,321,900 9 0 0 39,120 0 17,072 1,127 osh-cpython
27 no-host configure.util-linux 2,011,716 0 0 0 39,128 0 17,120 999 osh-native
6 no-host configure.yash 256,776 0 0 0 4,120 0 870 89 bash
14 no-host configure.yash 244,504 0 0 0 3,720 0 865 73 dash
22 no-host configure.yash 384,503 0 0 0 3,728 0 856 159 osh-cpython
30 no-host configure.yash 258,070 0 0 0 3,736 0 852 75 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,664 0 0 0 8 0 7 4 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-f9beb202
dash dash-308ec8e6
osh-cpython osh-a39f7044
osh-native osh-eb9ac01b
host label host id
no-host no-host-1c33b689