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 466 22 21 24.33 1.14
bin-true no-host 673 537 2,297 819 812 3.41 1.22
configure.cpython no-host 15,021 15,103 29,210 15,441 15,460 1.94 1.03
configure.ocaml no-host 3,832 3,793 4,757 3,907 3,934 1.24 1.02
configure.tcc no-host 48 43 201 49 49 4.22 1.03
configure.util-linux no-host 14,011 14,925 31,567 14,606 14,556 2.25 1.04
configure.yash no-host 1,818 1,835 2,508 1,857 1,876 1.38 1.02
hello-world no-host 2 1 51 3 3 33.22 1.81

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,535 1,128 23,612 3,148 3,110 9.31 1.24
bin-true no-host 104,372 67,435 779,430 123,890 123,894 7.47 1.19
configure.cpython no-host 2,218,840 2,244,922 6,266,155 2,234,838 2,210,410 2.82 1.01
configure.ocaml no-host 410,830 391,218 646,137 413,356 411,963 1.57 1.01
configure.tcc no-host 6,568 5,483 23,798 6,938 6,938 3.62 1.06
configure.util-linux no-host 2,105,917 2,268,563 5,382,547 2,003,222 1,995,914 2.56 0.95
configure.yash no-host 256,025 244,611 387,434 258,029 257,140 1.51 1.01
hello-world no-host 152 81 3,745 350 344 24.64 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.5 3.5 22.0 8.9 8.7 4.94 2.00
bin-true no-host 3.0 1.4 17.7 8.0 7.9 5.87 2.65
configure.cpython no-host 27.1 27.4 27.5 27.3 27.5 1.01 1.01
configure.ocaml no-host 20.6 20.6 20.4 20.4 20.6 0.99 0.99
configure.tcc no-host 19.4 19.4 19.3 19.4 19.4 0.99 1.00
configure.util-linux no-host 30.1 30.1 29.9 30.0 30.1 0.99 1.00
configure.yash no-host 24.2 24.4 24.2 24.4 24.5 1.00 1.01
hello-world no-host 2.8 1.6 17.7 6.2 5.6 6.43 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 695 1,857 1,230 2 0 50,000 0
bin-true no-host 819 1 2 2.6 8.0 154,747 13,284 2,886 9,745 78,326 66,676 3,008 3 50,000 0
configure.cpython no-host 15,441 1 64 15.0 27.3 1,772,729 49,954 28,595 86,398 908,078 778,253 25,733 60 50,000 0
configure.util-linux no-host 14,606 3 63 21.3 30.0 2,703,497 29,659 65,899 109,676 1,320,584 1,273,237 32,239 41 131,798 1
configure.ocaml no-host 3,907 1 2 2.6 20.4 150,103 11,131 5,225 7,532 71,611 70,960 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,588 30,588 0 1,521 14,781 14,286 271 0 50,000 0
configure.yash no-host 1,857 1 2 2.6 24.4 139,756 8,029 6,688 6,337 70,286 63,133 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,331 64,539 42,749 4,572 54,526 57,233 277 3 85,498 1
hello-world no-host 3 0 0 0.2 5.6 3,781 3,781 0 696 1,857 1,228 2 0 50,000 0
bin-true no-host 812 1 2 2.6 7.9 154,746 13,072 2,824 9,746 78,326 66,674 3,008 3 50,000 0
configure.cpython no-host 15,460 1 66 15.0 27.5 1,772,728 49,114 28,533 86,399 908,078 778,251 25,733 60 50,000 0
configure.util-linux no-host 14,556 3 64 21.3 30.1 2,703,497 42,750 65,837 109,678 1,320,584 1,273,235 32,239 41 131,674 1
configure.ocaml no-host 3,934 1 2 2.6 20.6 150,103 11,069 5,163 7,534 71,611 70,958 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,588 30,588 0 1,523 14,781 14,284 271 0 50,000 0
configure.yash no-host 1,876 1 2 2.6 24.5 139,756 7,967 6,626 6,339 70,286 63,131 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,330 64,477 42,687 4,573 54,526 57,231 277 3 85,374 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 17 3 4.5 bash
15 no-host abuild-print-help 10 6 4 3.5 dash
23 no-host abuild-print-help 466 406 62 22.0 osh-cpython
31 no-host abuild-print-help 22 21 2 8.9 osh-native
39 no-host abuild-print-help 21 18 3 8.7 osh-native-souffle
1 no-host bin-true 673 496 207 3.0 bash
9 no-host bin-true 537 406 142 1.4 dash
17 no-host bin-true 2,297 1,500 1,055 17.7 osh-cpython
25 no-host bin-true 819 575 260 8.0 osh-native
33 no-host bin-true 812 581 248 7.9 osh-native-souffle
2 no-host configure.cpython 15,021 8,907 6,504 27.1 bash
10 no-host configure.cpython 15,103 9,205 6,305 27.4 dash
18 no-host configure.cpython 29,210 17,582 13,486 27.5 osh-cpython
26 no-host configure.cpython 15,441 9,159 6,548 27.3 osh-native
34 no-host configure.cpython 15,460 9,097 6,535 27.5 osh-native-souffle
4 no-host configure.ocaml 3,832 1,683 1,183 20.6 bash
12 no-host configure.ocaml 3,793 1,633 1,179 20.6 dash
20 no-host configure.ocaml 4,757 2,316 1,649 20.4 osh-cpython
28 no-host configure.ocaml 3,907 1,660 1,287 20.4 osh-native
36 no-host configure.ocaml 3,934 1,752 1,216 20.6 osh-native-souffle
5 no-host configure.tcc 48 38 10 19.4 bash
13 no-host configure.tcc 43 28 15 19.4 dash
21 no-host configure.tcc 201 163 41 19.3 osh-cpython
29 no-host configure.tcc 49 26 23 19.4 osh-native
37 no-host configure.tcc 49 33 17 19.4 osh-native-souffle
3 no-host configure.util-linux 14,011 8,834 5,649 30.1 bash
11 no-host configure.util-linux 14,925 9,321 6,085 30.1 dash
19 no-host configure.util-linux 31,567 20,796 11,839 29.9 osh-cpython
27 no-host configure.util-linux 14,606 8,797 5,986 30.0 osh-native
35 no-host configure.util-linux 14,556 8,706 6,032 30.1 osh-native-souffle
6 no-host configure.yash 1,818 1,124 700 24.2 bash
14 no-host configure.yash 1,835 1,027 809 24.4 dash
22 no-host configure.yash 2,508 1,527 1,022 24.2 osh-cpython
30 no-host configure.yash 1,857 1,060 801 24.4 osh-native
38 no-host configure.yash 1,876 1,025 854 24.5 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 51 40 12 17.7 osh-cpython
24 no-host hello-world 3 3 0 6.2 osh-native
32 no-host hello-world 3 0 3 5.6 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,535 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,128 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,612 0 0 0 8 0 45 13 osh-cpython
31 no-host abuild-print-help 3,148 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,110 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,372 0 0 0 8 0 1,993 170 bash
9 no-host bin-true 67,435 0 0 0 8 0 1,988 34 dash
17 no-host bin-true 779,430 0 0 0 8 0 1,995 250 osh-cpython
25 no-host bin-true 123,890 0 0 0 16 0 1,987 141 osh-native
33 no-host bin-true 123,894 0 0 0 16 0 1,997 109 osh-native-souffle
2 no-host configure.cpython 2,218,840 0 0 0 32,928 0 14,485 1,004 bash
10 no-host configure.cpython 2,244,922 0 0 0 32,992 0 14,628 866 dash
18 no-host configure.cpython 6,266,155 0 0 0 27,512 0 13,286 1,274 osh-cpython
26 no-host configure.cpython 2,234,838 0 0 0 27,520 0 13,209 1,064 osh-native
34 no-host configure.cpython 2,210,410 0 0 0 27,520 0 13,261 937 osh-native-souffle
4 no-host configure.ocaml 410,830 0 0 0 5,120 0 1,962 235 bash
12 no-host configure.ocaml 391,218 0 0 0 5,112 0 1,913 145 dash
20 no-host configure.ocaml 646,137 0 0 0 5,112 0 1,860 185 osh-cpython
28 no-host configure.ocaml 413,356 0 0 0 5,120 0 1,934 158 osh-native
36 no-host configure.ocaml 411,963 0 0 0 5,120 0 1,935 211 osh-native-souffle
5 no-host configure.tcc 6,568 0 0 0 104 0 48 2 bash
13 no-host configure.tcc 5,483 0 0 0 96 0 47 12 dash
21 no-host configure.tcc 23,798 0 0 0 96 0 54 9 osh-cpython
29 no-host configure.tcc 6,938 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,938 0 0 0 104 0 46 5 osh-native-souffle
3 no-host configure.util-linux 2,105,917 0 0 0 42,400 0 18,539 988 bash
11 no-host configure.util-linux 2,268,563 0 0 0 42,584 0 17,501 1,048 dash
19 no-host configure.util-linux 5,382,547 9 0 0 39,112 0 16,981 1,165 osh-cpython
27 no-host configure.util-linux 2,003,222 1 0 0 39,120 0 16,954 985 osh-native
35 no-host configure.util-linux 1,995,914 1 0 0 39,136 0 16,993 913 osh-native-souffle
6 no-host configure.yash 256,025 0 0 0 4,120 0 871 77 bash
14 no-host configure.yash 244,611 0 0 0 3,720 0 869 93 dash
22 no-host configure.yash 387,434 0 0 0 3,728 0 855 102 osh-cpython
30 no-host configure.yash 258,029 0 0 0 3,736 0 850 85 osh-native
38 no-host configure.yash 257,140 0 0 0 3,736 0 854 87 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,745 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 344 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-0a0d95b0
dash dash-0ebcf347
osh-cpython osh-d40d5f84
osh-native osh-a22356ae
osh-native-souffle osh-3af8a7fb
host label host id
no-host no-host-556df3ee