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 451 22 21 23.70 1.15
bin-true no-host 651 530 2,268 786 808 3.48 1.21
configure.cpython no-host 14,596 14,661 28,273 14,994 14,850 1.94 1.03
configure.ocaml no-host 3,744 3,655 4,616 3,773 3,776 1.23 1.01
configure.tcc no-host 46 42 194 48 47 4.21 1.05
configure.util-linux no-host 13,614 14,561 30,756 14,072 13,911 2.26 1.03
configure.yash no-host 1,804 1,736 2,447 1,804 1,804 1.36 1.00
hello-world no-host 1 1 48 3 3 37.71 2.20

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,531 1,097 23,077 3,233 3,083 9.12 1.28
bin-true no-host 108,334 65,436 756,305 125,053 127,145 6.98 1.15
configure.cpython no-host 1,997,084 2,025,038 5,963,706 2,010,896 1,997,775 2.99 1.01
configure.ocaml no-host 373,241 353,512 606,786 376,592 375,646 1.63 1.01
configure.tcc no-host 6,092 4,994 22,993 6,557 6,479 3.77 1.08
configure.util-linux no-host 1,904,833 2,069,569 5,124,460 1,817,207 1,812,979 2.69 0.95
configure.yash no-host 233,744 221,658 362,290 235,704 235,521 1.55 1.01
hello-world no-host 146 76 3,714 352 341 25.44 2.41

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.3 21.9 9.0 8.4 4.91 2.03
bin-true no-host 2.9 1.6 17.4 7.9 7.7 6.04 2.73
configure.cpython no-host 29.3 29.3 29.2 29.3 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.6 1.00 0.99
configure.util-linux no-host 30.3 30.2 30.2 30.3 30.3 0.99 1.00
configure.yash no-host 26.5 26.1 26.4 26.3 26.3 1.00 0.99
hello-world no-host 2.8 1.4 17.4 6.2 5.9 6.33 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,709 3,709 0 691 1,832 1,186 2 0 50,000 0
bin-true no-host 786 1 2 2.6 7.9 154,674 12,908 2,810 9,741 78,301 66,632 3,008 3 50,000 0
configure.cpython no-host 14,994 1 64 14.9 29.3 1,772,656 49,100 28,520 86,394 908,053 778,209 22,694 60 50,000 0
configure.util-linux no-host 14,072 3 64 21.3 30.3 2,703,392 42,737 65,824 109,656 1,320,551 1,273,185 27,391 41 131,648 1
configure.ocaml no-host 3,773 1 2 2.6 22.6 150,026 10,985 5,155 7,526 71,589 70,911 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.6 30,515 30,515 0 1,517 14,756 14,242 226 0 50,000 0
configure.yash no-host 1,804 1 2 2.6 26.3 139,683 7,953 6,612 6,333 70,261 63,089 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,258 64,463 42,673 4,568 54,501 57,189 270 3 85,346 1
hello-world no-host 3 0 0 0.2 5.9 3,708 3,708 0 692 1,832 1,184 2 0 50,000 0
bin-true no-host 808 1 2 2.6 7.7 154,673 12,773 2,748 9,742 78,301 66,630 3,008 3 50,000 0
configure.cpython no-host 14,850 1 65 15.0 29.2 1,772,655 44,552 28,458 86,395 908,053 778,207 22,694 60 50,000 0
configure.util-linux no-host 13,911 3 63 21.3 30.3 2,703,392 44,638 65,761 109,658 1,320,551 1,273,183 27,391 41 131,522 1
configure.ocaml no-host 3,776 1 2 2.6 22.6 150,026 10,922 5,092 7,528 71,589 70,909 1,448 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.6 30,515 30,515 0 1,519 14,756 14,240 226 0 50,000 0
configure.yash no-host 1,804 1 2 2.6 26.3 139,683 7,891 6,550 6,335 70,261 63,087 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.4 116,257 64,401 42,611 4,569 54,501 57,187 270 3 85,222 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 12 8 4.5 bash
15 no-host abuild-print-help 9 4 5 3.3 dash
23 no-host abuild-print-help 451 398 56 21.9 osh-cpython
31 no-host abuild-print-help 22 14 8 9.0 osh-native
39 no-host abuild-print-help 21 12 9 8.4 osh-native-souffle
1 no-host bin-true 651 311 376 2.9 bash
9 no-host bin-true 530 278 263 1.6 dash
17 no-host bin-true 2,268 762 1,762 17.4 osh-cpython
25 no-host bin-true 786 314 489 7.9 osh-native
33 no-host bin-true 808 297 527 7.7 osh-native-souffle
2 no-host configure.cpython 14,596 6,709 8,300 29.3 bash
10 no-host configure.cpython 14,661 6,654 8,443 29.3 dash
18 no-host configure.cpython 28,273 14,087 16,058 29.2 osh-cpython
26 no-host configure.cpython 14,994 6,497 8,779 29.3 osh-native
34 no-host configure.cpython 14,850 6,503 8,528 29.2 osh-native-souffle
4 no-host configure.ocaml 3,744 1,300 1,477 22.6 bash
12 no-host configure.ocaml 3,655 1,269 1,408 22.6 dash
20 no-host configure.ocaml 4,616 1,837 1,989 22.6 osh-cpython
28 no-host configure.ocaml 3,773 1,321 1,493 22.6 osh-native
36 no-host configure.ocaml 3,776 1,293 1,520 22.6 osh-native-souffle
5 no-host configure.tcc 46 19 28 19.7 bash
13 no-host configure.tcc 42 27 15 19.7 dash
21 no-host configure.tcc 194 131 66 19.7 osh-cpython
29 no-host configure.tcc 48 20 29 19.6 osh-native
37 no-host configure.tcc 47 20 28 19.6 osh-native-souffle
3 no-host configure.util-linux 13,614 5,714 8,387 30.3 bash
11 no-host configure.util-linux 14,561 5,923 9,159 30.2 dash
19 no-host configure.util-linux 30,756 17,449 14,426 30.2 osh-cpython
27 no-host configure.util-linux 14,072 5,600 8,685 30.3 osh-native
35 no-host configure.util-linux 13,911 5,521 8,597 30.3 osh-native-souffle
6 no-host configure.yash 1,804 897 912 26.5 bash
14 no-host configure.yash 1,736 884 856 26.1 dash
22 no-host configure.yash 2,447 1,339 1,151 26.4 osh-cpython
30 no-host configure.yash 1,804 916 893 26.3 osh-native
38 no-host configure.yash 1,804 887 923 26.3 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 30 18 17.4 osh-cpython
24 no-host hello-world 3 1 2 6.2 osh-native
32 no-host hello-world 3 1 2 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,531 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,097 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,077 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,233 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,083 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 108,334 0 0 0 8 0 1,988 69 bash
9 no-host bin-true 65,436 0 0 0 8 0 1,988 234 dash
17 no-host bin-true 756,305 0 0 0 8 0 1,988 537 osh-cpython
25 no-host bin-true 125,053 0 0 0 16 0 1,984 153 osh-native
33 no-host bin-true 127,145 0 0 0 16 0 1,985 214 osh-native-souffle
2 no-host configure.cpython 1,997,084 0 0 0 32,928 0 14,219 1,206 bash
10 no-host configure.cpython 2,025,038 0 0 0 32,992 0 14,314 1,235 dash
18 no-host configure.cpython 5,963,706 1 0 0 27,512 0 13,025 1,210 osh-cpython
26 no-host configure.cpython 2,010,896 2 0 0 27,520 0 13,075 1,208 osh-native
34 no-host configure.cpython 1,997,775 0 0 0 27,520 0 13,052 1,111 osh-native-souffle
4 no-host configure.ocaml 373,241 0 0 0 5,120 0 1,947 189 bash
12 no-host configure.ocaml 353,512 0 0 0 5,112 0 1,931 200 dash
20 no-host configure.ocaml 606,786 0 0 0 5,112 0 1,848 207 osh-cpython
28 no-host configure.ocaml 376,592 0 0 0 5,120 0 1,931 205 osh-native
36 no-host configure.ocaml 375,646 0 0 0 5,120 0 1,926 206 osh-native-souffle
5 no-host configure.tcc 6,092 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 4,994 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 22,993 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,557 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,479 0 0 0 104 0 47 13 osh-native-souffle
3 no-host configure.util-linux 1,904,833 0 0 0 42,400 0 18,520 1,391 bash
11 no-host configure.util-linux 2,069,569 0 0 0 42,592 0 17,335 1,447 dash
19 no-host configure.util-linux 5,124,460 6 0 0 39,112 0 17,013 1,544 osh-cpython
27 no-host configure.util-linux 1,817,207 0 0 0 39,128 0 17,018 1,130 osh-native
35 no-host configure.util-linux 1,812,979 0 0 0 39,136 0 16,945 1,207 osh-native-souffle
6 no-host configure.yash 233,744 0 0 0 4,120 0 881 78 bash
14 no-host configure.yash 221,658 0 0 0 3,720 0 869 89 dash
22 no-host configure.yash 362,290 0 0 0 3,728 0 853 79 osh-cpython
30 no-host configure.yash 235,704 0 0 0 3,736 0 850 76 osh-native
38 no-host configure.yash 235,521 0 0 0 3,736 0 852 93 osh-native-souffle
0 no-host hello-world 146 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,714 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 352 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 341 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-c7d3942c
dash dash-0ebcf347
osh-cpython osh-2571c506
osh-native osh-5d9766f6
osh-native-souffle osh-ab3511ca
host label host id
no-host no-host-e5b8d3ee