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 462 22 21 24.05 1.17
bin-true no-host 666 540 2,289 818 816 3.44 1.23
configure.cpython no-host 15,206 15,298 29,185 15,469 15,624 1.92 1.02
configure.ocaml no-host 3,855 3,786 4,715 3,883 3,868 1.22 1.01
configure.tcc no-host 47 42 199 49 48 4.21 1.04
configure.util-linux no-host 14,242 15,146 31,625 14,570 14,648 2.22 1.02
configure.yash no-host 1,844 1,807 2,505 1,865 1,844 1.36 1.01
hello-world no-host 2 1 50 3 3 33.13 1.86

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,512 1,106 23,390 3,126 3,059 9.31 1.24
bin-true no-host 102,353 66,392 773,015 125,855 126,859 7.55 1.23
configure.cpython no-host 2,218,066 2,246,905 6,231,545 2,227,105 2,206,330 2.81 1.00
configure.ocaml no-host 411,183 390,501 645,661 413,189 412,710 1.57 1.00
configure.tcc no-host 6,565 5,481 23,745 6,997 6,913 3.62 1.07
configure.util-linux no-host 2,104,404 2,264,719 5,368,163 2,003,667 1,992,767 2.55 0.95
configure.yash no-host 256,922 244,724 386,919 258,034 257,598 1.51 1.00
hello-world no-host 154 82 3,740 351 346 24.29 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 osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.4 22.2 8.9 8.7 5.12 2.06
bin-true no-host 3.0 1.4 17.7 7.9 7.9 5.87 2.61
configure.cpython no-host 27.4 27.4 27.5 27.3 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 20.6 1.00 0.99
configure.tcc no-host 19.3 19.4 19.4 19.4 19.1 1.01 1.01
configure.util-linux no-host 30.0 30.3 30.3 30.1 30.0 1.01 1.00
configure.yash no-host 24.2 24.2 24.2 24.2 24.2 1.00 1.00
hello-world no-host 2.8 1.4 17.7 6.3 5.9 6.43 2.29

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,780 3,780 0 695 1,857 1,228 2 0 50,000 0
bin-true no-host 818 1 2 2.6 7.9 154,745 13,282 2,884 9,745 78,326 66,674 3,008 3 50,000 0
configure.cpython no-host 15,469 1 62 15.0 27.3 1,772,727 49,861 28,594 86,398 908,078 778,251 22,694 60 50,000 0
configure.util-linux no-host 14,570 3 61 21.3 30.1 2,703,495 29,153 65,897 109,676 1,320,584 1,273,235 27,391 41 131,794 1
configure.ocaml no-host 3,883 1 2 2.6 20.4 150,101 11,058 5,228 7,532 71,611 70,958 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,586 30,586 0 1,521 14,781 14,284 226 0 50,000 0
configure.yash no-host 1,865 1 2 2.6 24.2 139,754 8,027 6,686 6,337 70,286 63,131 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,329 64,537 42,747 4,572 54,526 57,231 270 3 85,494 1
hello-world no-host 3 0 0 0.2 5.9 3,779 3,779 0 696 1,857 1,226 2 0 50,000 0
bin-true no-host 816 1 2 2.6 7.9 154,744 13,070 2,822 9,746 78,326 66,672 3,008 3 50,000 0
configure.cpython no-host 15,624 1 64 14.9 27.3 1,772,726 49,112 28,532 86,399 908,078 778,249 22,694 60 50,000 0
configure.util-linux no-host 14,648 3 63 21.3 30.0 2,703,495 42,748 65,815 109,678 1,320,584 1,273,233 27,391 41 131,630 1
configure.ocaml no-host 3,868 1 2 2.6 20.6 150,101 10,996 5,166 7,534 71,611 70,956 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.1 30,586 30,586 0 1,523 14,781 14,282 226 0 50,000 0
configure.yash no-host 1,844 1 2 2.6 24.2 139,754 7,965 6,624 6,339 70,286 63,129 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,328 64,475 42,685 4,573 54,526 57,229 270 3 85,370 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 10 4.3 bash
15 no-host abuild-print-help 9 6 3 3.4 dash
23 no-host abuild-print-help 462 398 67 22.2 osh-cpython
31 no-host abuild-print-help 22 18 5 8.9 osh-native
39 no-host abuild-print-help 21 11 11 8.7 osh-native-souffle
1 no-host bin-true 666 488 207 3.0 bash
9 no-host bin-true 540 410 138 1.4 dash
17 no-host bin-true 2,289 1,458 1,098 17.7 osh-cpython
25 no-host bin-true 818 574 257 7.9 osh-native
33 no-host bin-true 816 568 263 7.9 osh-native-souffle
2 no-host configure.cpython 15,206 9,195 6,407 27.4 bash
10 no-host configure.cpython 15,298 9,221 6,497 27.4 dash
18 no-host configure.cpython 29,185 17,605 13,475 27.5 osh-cpython
26 no-host configure.cpython 15,469 9,263 6,476 27.3 osh-native
34 no-host configure.cpython 15,624 9,085 6,667 27.3 osh-native-souffle
4 no-host configure.ocaml 3,855 1,631 1,255 20.6 bash
12 no-host configure.ocaml 3,786 1,611 1,190 20.6 dash
20 no-host configure.ocaml 4,715 2,283 1,645 20.6 osh-cpython
28 no-host configure.ocaml 3,883 1,612 1,307 20.4 osh-native
36 no-host configure.ocaml 3,868 1,694 1,209 20.6 osh-native-souffle
5 no-host configure.tcc 47 36 12 19.3 bash
13 no-host configure.tcc 42 24 18 19.4 dash
21 no-host configure.tcc 199 141 61 19.4 osh-cpython
29 no-host configure.tcc 49 27 23 19.4 osh-native
37 no-host configure.tcc 48 25 24 19.1 osh-native-souffle
3 no-host configure.util-linux 14,242 8,910 5,800 30.0 bash
11 no-host configure.util-linux 15,146 9,261 6,371 30.3 dash
19 no-host configure.util-linux 31,625 20,874 11,848 30.3 osh-cpython
27 no-host configure.util-linux 14,570 8,907 5,839 30.1 osh-native
35 no-host configure.util-linux 14,648 8,913 5,914 30.0 osh-native-souffle
6 no-host configure.yash 1,844 1,112 739 24.2 bash
14 no-host configure.yash 1,807 1,009 800 24.2 dash
22 no-host configure.yash 2,505 1,575 973 24.2 osh-cpython
30 no-host configure.yash 1,865 1,050 819 24.2 osh-native
38 no-host configure.yash 1,844 1,080 767 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 50 42 8 17.7 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 0 3 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,512 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,106 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,390 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,126 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,059 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 102,353 0 0 0 8 0 1,990 125 bash
9 no-host bin-true 66,392 0 0 0 8 0 1,989 37 dash
17 no-host bin-true 773,015 0 0 0 8 0 1,995 111 osh-cpython
25 no-host bin-true 125,855 0 0 0 16 0 1,993 142 osh-native
33 no-host bin-true 126,859 0 0 0 16 0 1,993 91 osh-native-souffle
2 no-host configure.cpython 2,218,066 1 0 0 32,928 0 14,492 1,020 bash
10 no-host configure.cpython 2,246,905 1 0 0 32,992 0 14,674 906 dash
18 no-host configure.cpython 6,231,545 2 0 0 27,512 0 13,270 1,261 osh-cpython
26 no-host configure.cpython 2,227,105 0 0 0 27,520 0 13,159 949 osh-native
34 no-host configure.cpython 2,206,330 0 0 0 27,520 0 13,262 934 osh-native-souffle
4 no-host configure.ocaml 411,183 0 0 0 5,120 0 1,964 156 bash
12 no-host configure.ocaml 390,501 0 0 0 5,112 0 1,896 140 dash
20 no-host configure.ocaml 645,661 0 0 0 5,112 0 1,853 184 osh-cpython
28 no-host configure.ocaml 413,189 0 0 0 5,120 0 1,931 161 osh-native
36 no-host configure.ocaml 412,710 0 0 0 5,120 0 1,925 217 osh-native-souffle
5 no-host configure.tcc 6,565 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,481 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,745 0 0 0 96 0 54 10 osh-cpython
29 no-host configure.tcc 6,997 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,913 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,104,404 0 0 0 42,400 0 18,727 1,075 bash
11 no-host configure.util-linux 2,264,719 1 0 0 42,584 0 17,434 1,075 dash
19 no-host configure.util-linux 5,368,163 3 0 0 39,120 0 17,123 1,158 osh-cpython
27 no-host configure.util-linux 2,003,667 1 0 0 39,128 0 16,973 1,048 osh-native
35 no-host configure.util-linux 1,992,767 1 0 0 39,136 0 17,004 927 osh-native-souffle
6 no-host configure.yash 256,922 0 0 0 4,120 0 873 179 bash
14 no-host configure.yash 244,724 0 0 0 3,720 0 869 91 dash
22 no-host configure.yash 386,919 0 0 0 3,728 0 852 93 osh-cpython
30 no-host configure.yash 258,034 0 0 0 3,736 0 851 85 osh-native
38 no-host configure.yash 257,598 0 0 0 3,736 0 848 70 osh-native-souffle
0 no-host hello-world 154 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,740 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 346 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-00ad29ab
dash dash-0ebcf347
osh-cpython osh-567bf116
osh-native osh-fb9f718c
osh-native-souffle osh-7446e681
host label host id
no-host no-host-556df3ee