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 osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 19 10 456 22 21 23.64 1.16
bin-true no-host 672 544 2,293 813 813 3.41 1.21
configure.cpython no-host 15,018 15,060 28,886 15,213 15,406 1.92 1.01
configure.ocaml no-host 3,801 3,732 4,682 3,818 3,804 1.23 1.00
configure.tcc no-host 48 42 202 49 48 4.22 1.02
configure.util-linux no-host 14,000 14,860 31,387 14,353 14,311 2.24 1.03
configure.yash no-host 1,824 1,780 2,461 1,817 1,816 1.35 1.00
hello-world no-host 2 1 56 3 3 36.72 1.90

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,561 1,130 23,660 3,181 3,109 9.24 1.24
bin-true no-host 104,362 66,416 777,753 125,303 126,306 7.45 1.20
configure.cpython no-host 2,219,787 2,239,224 6,209,000 2,217,366 2,213,587 2.80 1.00
configure.ocaml no-host 410,443 391,703 647,270 412,983 412,845 1.58 1.01
configure.tcc no-host 6,555 5,471 24,063 6,985 6,893 3.67 1.07
configure.util-linux no-host 2,106,218 2,263,951 5,398,380 1,995,518 1,994,001 2.56 0.95
configure.yash no-host 256,594 244,483 388,257 257,893 256,458 1.51 1.01
hello-world no-host 152 83 3,950 344 335 25.99 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 osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.5 3.4 22.6 9.2 8.7 5.06 2.06
bin-true no-host 2.9 1.4 18.4 8.1 7.9 6.37 2.82
configure.cpython no-host 27.3 27.4 27.5 27.4 27.5 1.01 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.3 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.1 30.0 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.8 1.4 18.2 6.2 5.9 6.62 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.2 6.2 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 813 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,213 1 63 14.9 27.4 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,353 3 61 21.2 30.3 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,818 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,817 1 2 2.5 24.4 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 813 1 2 2.6 7.9 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,406 1 61 14.9 27.5 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,311 3 60 21.2 30.3 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,804 1 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,816 1 2 2.5 24.4 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,291 64,341 42,551 4,533 54,436 57,322 277 3 85,102 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 13 6 4.5 bash
15 no-host abuild-print-help 10 8 1 3.4 dash
23 no-host abuild-print-help 456 408 52 22.6 osh-cpython
31 no-host abuild-print-help 22 19 4 9.2 osh-native
39 no-host abuild-print-help 21 19 2 8.7 osh-native-souffle
1 no-host bin-true 672 506 195 2.9 bash
9 no-host bin-true 544 418 136 1.4 dash
17 no-host bin-true 2,293 1,457 1,098 18.4 osh-cpython
25 no-host bin-true 813 592 236 8.1 osh-native
33 no-host bin-true 813 566 261 7.9 osh-native-souffle
2 no-host configure.cpython 15,018 9,160 6,254 27.3 bash
10 no-host configure.cpython 15,060 9,102 6,375 27.4 dash
18 no-host configure.cpython 28,886 17,512 13,245 27.5 osh-cpython
26 no-host configure.cpython 15,213 8,991 6,485 27.4 osh-native
34 no-host configure.cpython 15,406 9,030 6,477 27.5 osh-native-souffle
4 no-host configure.ocaml 3,801 1,637 1,202 20.6 bash
12 no-host configure.ocaml 3,732 1,589 1,163 20.6 dash
20 no-host configure.ocaml 4,682 2,315 1,574 20.6 osh-cpython
28 no-host configure.ocaml 3,818 1,643 1,210 20.6 osh-native
36 no-host configure.ocaml 3,804 1,644 1,198 20.6 osh-native-souffle
5 no-host configure.tcc 48 33 16 19.4 bash
13 no-host configure.tcc 42 17 24 19.3 dash
21 no-host configure.tcc 202 172 33 19.3 osh-cpython
29 no-host configure.tcc 49 33 16 19.3 osh-native
37 no-host configure.tcc 48 30 19 19.3 osh-native-souffle
3 no-host configure.util-linux 14,000 8,689 5,786 30.1 bash
11 no-host configure.util-linux 14,860 9,102 6,238 30.0 dash
19 no-host configure.util-linux 31,387 20,952 11,516 30.3 osh-cpython
27 no-host configure.util-linux 14,353 8,716 5,830 30.3 osh-native
35 no-host configure.util-linux 14,311 8,660 5,843 30.3 osh-native-souffle
6 no-host configure.yash 1,824 1,048 785 24.2 bash
14 no-host configure.yash 1,780 1,098 684 24.4 dash
22 no-host configure.yash 2,461 1,459 1,043 24.4 osh-cpython
30 no-host configure.yash 1,817 1,050 771 24.4 osh-native
38 no-host configure.yash 1,816 1,137 683 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 24 31 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.2 osh-native
32 no-host hello-world 3 3 0 5.9 osh-native-souffle

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,561 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,130 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,660 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,181 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,109 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 104,362 0 0 0 8 0 1,991 118 bash
9 no-host bin-true 66,416 0 0 0 8 0 1,987 35 dash
17 no-host bin-true 777,753 0 0 0 8 0 1,992 124 osh-cpython
25 no-host bin-true 125,303 0 0 0 16 0 1,989 82 osh-native
33 no-host bin-true 126,306 0 0 0 16 0 1,992 109 osh-native-souffle
2 no-host configure.cpython 2,219,787 0 0 0 32,928 0 14,418 1,143 bash
10 no-host configure.cpython 2,239,224 1 0 0 32,992 0 14,647 1,055 dash
18 no-host configure.cpython 6,209,000 1 0 0 27,512 0 13,260 1,101 osh-cpython
26 no-host configure.cpython 2,217,366 0 0 0 27,520 0 13,344 1,039 osh-native
34 no-host configure.cpython 2,213,587 0 0 0 27,520 0 13,201 1,025 osh-native-souffle
4 no-host configure.ocaml 410,443 0 0 0 5,120 0 1,951 137 bash
12 no-host configure.ocaml 391,703 1 0 0 5,112 0 1,940 162 dash
20 no-host configure.ocaml 647,270 0 0 0 5,112 0 1,850 203 osh-cpython
28 no-host configure.ocaml 412,983 0 0 0 5,120 0 1,925 169 osh-native
36 no-host configure.ocaml 412,845 0 0 0 5,120 0 1,927 166 osh-native-souffle
5 no-host configure.tcc 6,555 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,471 0 0 0 96 0 47 11 dash
21 no-host configure.tcc 24,063 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,985 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,893 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,106,218 2 0 0 42,400 0 18,571 953 bash
11 no-host configure.util-linux 2,263,951 1 0 0 42,584 0 17,448 1,117 dash
19 no-host configure.util-linux 5,398,380 8 0 0 39,112 0 16,980 1,197 osh-cpython
27 no-host configure.util-linux 1,995,518 0 0 0 39,120 0 16,981 959 osh-native
35 no-host configure.util-linux 1,994,001 0 0 0 39,128 0 16,978 924 osh-native-souffle
6 no-host configure.yash 256,594 0 0 0 4,120 0 872 78 bash
14 no-host configure.yash 244,483 0 0 0 3,720 0 870 84 dash
22 no-host configure.yash 388,257 0 0 0 3,728 0 855 88 osh-cpython
30 no-host configure.yash 257,893 0 0 0 3,736 0 845 82 osh-native
38 no-host configure.yash 256,458 0 0 0 3,736 0 849 78 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,950 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 335 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-506852c8
dash dash-0ebcf347
osh-cpython osh-9108fc63
osh-native osh-122784d6
osh-native-souffle osh-dcb47f42
host label host id
no-host no-host-556df3ee