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 9 454 20 20 23.37 1.02
bin-true no-host 634 521 2,254 773 770 3.56 1.22
configure.cpython no-host 13,836 13,974 26,934 14,271 14,006 1.95 1.03
configure.ocaml no-host 3,604 3,544 4,422 3,665 3,701 1.23 1.02
configure.tcc no-host 45 38 191 47 47 4.24 1.04
configure.util-linux no-host 12,864 13,776 29,554 13,548 13,327 2.30 1.05
configure.yash no-host 1,715 1,657 2,320 1,721 1,752 1.35 1.00
hello-world no-host 1 1 55 3 2 42.54 2.15

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,508 1,095 23,951 3,164 3,122 9.55 1.26
bin-true no-host 105,338 66,528 779,058 125,188 125,215 7.40 1.19
configure.cpython no-host 2,001,192 2,020,519 6,057,005 2,003,730 1,993,817 3.03 1.00
configure.ocaml no-host 372,753 353,699 610,379 375,667 375,088 1.64 1.01
configure.tcc no-host 6,089 4,998 23,737 6,496 6,432 3.90 1.07
configure.util-linux no-host 1,901,421 2,065,057 5,255,354 1,808,279 1,799,794 2.76 0.95
configure.yash no-host 233,378 222,006 367,159 235,224 234,461 1.57 1.01
hello-world no-host 149 76 3,991 343 337 26.79 2.30

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.3 3.5 22.6 9.0 8.8 5.23 2.09
bin-true no-host 3.0 1.4 18.5 8.1 7.7 6.15 2.70
configure.cpython no-host 29.1 29.2 29.2 29.0 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.7 19.7 19.7 19.6 19.7 1.00 0.99
configure.util-linux no-host 30.3 30.3 30.3 30.3 30.2 1.00 1.00
configure.yash no-host 26.5 26.2 26.3 26.4 26.4 0.99 1.00
hello-world no-host 2.9 1.6 18.3 6.3 6.0 6.34 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.2 6.3 3,789 3,789 0 695 1,861 1,233 2 0 50,000 0
bin-true no-host 773 1 2 2.6 8.1 153,753 12,329 2,894 8,744 76,325 68,684 3,008 3 50,000 0
configure.cpython no-host 14,271 1 61 14.9 29.0 1,767,675 49,060 28,519 85,428 875,384 806,863 25,736 60 50,000 0
configure.util-linux no-host 13,548 3 60 21.2 30.3 2,698,991 29,940 65,718 108,700 1,288,281 1,302,010 32,241 41 131,436 1
configure.ocaml no-host 3,665 0 2 2.6 22.6 149,553 11,119 5,214 7,509 70,616 71,428 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.6 30,539 30,539 0 1,519 14,608 14,412 271 0 50,000 0
configure.yash no-host 1,721 1 2 2.5 26.4 139,269 8,031 6,693 5,990 67,845 65,434 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 9.0 116,299 64,410 42,620 4,533 54,439 57,327 277 3 85,240 1
hello-world no-host 2 0 0 0.2 6.0 3,788 3,788 0 696 1,861 1,231 2 0 50,000 0
bin-true no-host 770 1 2 2.6 7.7 153,752 12,118 2,832 8,745 76,325 68,682 3,008 3 50,000 0
configure.cpython no-host 14,006 1 62 14.9 29.2 1,767,674 37,983 24,932 85,429 875,384 806,861 25,736 60 50,000 0
configure.util-linux no-host 13,327 3 59 21.2 30.2 2,698,991 29,878 65,656 108,702 1,288,281 1,302,008 32,241 41 131,312 1
configure.ocaml no-host 3,701 1 2 2.6 22.6 149,553 11,057 5,152 7,511 70,616 71,426 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,539 30,539 0 1,521 14,608 14,410 271 0 50,000 0
configure.yash no-host 1,752 1 2 2.5 26.4 139,269 7,969 6,631 5,992 67,845 65,432 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.8 116,298 64,348 42,558 4,534 54,439 57,325 277 3 85,116 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 9 11 4.3 bash
15 no-host abuild-print-help 9 4 6 3.5 dash
23 no-host abuild-print-help 454 398 59 22.6 osh-cpython
31 no-host abuild-print-help 20 10 11 9.0 osh-native
39 no-host abuild-print-help 20 13 8 8.8 osh-native-souffle
1 no-host bin-true 634 287 378 3.0 bash
9 no-host bin-true 521 275 257 1.4 dash
17 no-host bin-true 2,254 778 1,737 18.5 osh-cpython
25 no-host bin-true 773 283 506 8.1 osh-native
33 no-host bin-true 770 307 479 7.7 osh-native-souffle
2 no-host configure.cpython 13,836 6,353 7,877 29.1 bash
10 no-host configure.cpython 13,974 6,291 8,103 29.2 dash
18 no-host configure.cpython 26,934 13,501 15,226 29.2 osh-cpython
26 no-host configure.cpython 14,271 6,255 8,296 29.0 osh-native
34 no-host configure.cpython 14,006 6,161 8,111 29.2 osh-native-souffle
4 no-host configure.ocaml 3,604 1,254 1,389 22.6 bash
12 no-host configure.ocaml 3,544 1,220 1,345 22.6 dash
20 no-host configure.ocaml 4,422 1,763 1,867 22.6 osh-cpython
28 no-host configure.ocaml 3,665 1,258 1,446 22.6 osh-native
36 no-host configure.ocaml 3,701 1,266 1,473 22.6 osh-native-souffle
5 no-host configure.tcc 45 25 20 19.7 bash
13 no-host configure.tcc 38 18 20 19.7 dash
21 no-host configure.tcc 191 132 63 19.7 osh-cpython
29 no-host configure.tcc 47 21 27 19.6 osh-native
37 no-host configure.tcc 47 21 27 19.7 osh-native-souffle
3 no-host configure.util-linux 12,864 5,596 7,741 30.3 bash
11 no-host configure.util-linux 13,776 5,615 8,660 30.3 dash
19 no-host configure.util-linux 29,554 16,797 13,811 30.3 osh-cpython
27 no-host configure.util-linux 13,548 5,417 8,352 30.3 osh-native
35 no-host configure.util-linux 13,327 5,300 8,255 30.2 osh-native-souffle
6 no-host configure.yash 1,715 881 844 26.5 bash
14 no-host configure.yash 1,657 863 799 26.2 dash
22 no-host configure.yash 2,320 1,303 1,055 26.3 osh-cpython
30 no-host configure.yash 1,721 886 841 26.4 osh-native
38 no-host configure.yash 1,752 875 882 26.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 55 36 20 18.3 osh-cpython
24 no-host hello-world 3 2 1 6.3 osh-native
32 no-host hello-world 2 1 2 6.0 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,508 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,095 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,951 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,164 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,122 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 105,338 0 0 0 8 0 1,973 151 bash
9 no-host bin-true 66,528 0 0 0 8 0 1,980 85 dash
17 no-host bin-true 779,058 0 0 0 8 0 1,981 332 osh-cpython
25 no-host bin-true 125,188 0 0 0 16 0 1,970 164 osh-native
33 no-host bin-true 125,215 0 0 0 16 0 1,986 129 osh-native-souffle
2 no-host configure.cpython 2,001,192 0 0 0 32,928 0 14,250 1,301 bash
10 no-host configure.cpython 2,020,519 0 0 0 32,992 0 14,309 1,130 dash
18 no-host configure.cpython 6,057,005 0 0 0 27,512 0 13,058 1,166 osh-cpython
26 no-host configure.cpython 2,003,730 0 0 0 27,520 0 13,078 1,117 osh-native
34 no-host configure.cpython 1,993,817 0 0 0 27,520 0 13,094 1,130 osh-native-souffle
4 no-host configure.ocaml 372,753 0 0 0 5,120 0 1,938 179 bash
12 no-host configure.ocaml 353,699 0 0 0 5,112 0 1,929 158 dash
20 no-host configure.ocaml 610,379 0 0 0 5,112 0 1,852 342 osh-cpython
28 no-host configure.ocaml 375,667 0 0 0 5,120 0 1,932 198 osh-native
36 no-host configure.ocaml 375,088 0 0 0 5,120 0 1,923 299 osh-native-souffle
5 no-host configure.tcc 6,089 0 0 0 104 0 49 9 bash
13 no-host configure.tcc 4,998 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,737 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,496 0 0 0 104 0 46 6 osh-native
37 no-host configure.tcc 6,432 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,901,421 0 0 0 42,400 0 18,358 1,182 bash
11 no-host configure.util-linux 2,065,057 2 0 0 42,584 0 17,322 1,468 dash
19 no-host configure.util-linux 5,255,354 11 0 0 39,144 0 17,028 1,283 osh-cpython
27 no-host configure.util-linux 1,808,279 0 0 0 39,120 0 16,969 1,159 osh-native
35 no-host configure.util-linux 1,799,794 1 0 0 39,128 0 17,002 1,267 osh-native-souffle
6 no-host configure.yash 233,378 0 0 0 4,120 0 870 90 bash
14 no-host configure.yash 222,006 0 0 0 3,720 0 871 88 dash
22 no-host configure.yash 367,159 0 0 0 3,728 0 853 109 osh-cpython
30 no-host configure.yash 235,224 0 0 0 3,736 0 850 85 osh-native
38 no-host configure.yash 234,461 0 0 0 3,736 0 851 92 osh-native-souffle
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 76 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,991 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-88d5df49
dash dash-0ebcf347
osh-cpython osh-ac935110
osh-native osh-2fb3b182
osh-native-souffle osh-03118605
host label host id
no-host no-host-e4839999