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 458 22 21 23.92 1.14
bin-true no-host 689 540 2,263 810 800 3.28 1.17
configure.cpython no-host 15,186 15,028 28,383 15,086 15,147 1.87 0.99
configure.ocaml no-host 3,775 3,713 4,586 3,790 3,774 1.21 1.00
configure.tcc no-host 47 41 194 49 48 4.14 1.04
configure.util-linux no-host 13,904 14,713 31,000 14,211 14,244 2.23 1.02
configure.yash no-host 1,810 1,756 2,423 1,805 1,806 1.34 1.00
hello-world no-host 2 1 49 3 3 31.90 1.83

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,550 1,100 23,649 3,154 3,111 9.27 1.24
bin-true no-host 109,380 66,402 779,416 127,833 124,861 7.13 1.17
configure.cpython no-host 2,222,952 2,241,494 6,261,146 2,232,084 2,211,548 2.82 1.00
configure.ocaml no-host 410,949 390,821 646,072 413,791 412,800 1.57 1.01
configure.tcc no-host 6,541 5,483 23,772 6,959 6,928 3.63 1.06
configure.util-linux no-host 2,101,955 2,261,700 5,382,257 2,003,684 1,997,289 2.56 0.95
configure.yash no-host 256,787 245,116 387,160 258,495 257,942 1.51 1.01
hello-world no-host 153 82 3,752 350 343 24.52 2.29

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.2 9.0 8.7 4.97 2.03
bin-true no-host 3.0 1.6 17.7 8.1 7.5 5.87 2.70
configure.cpython no-host 27.4 27.4 27.4 27.5 27.4 1.00 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.3 19.3 19.1 19.3 19.4 0.99 1.00
configure.util-linux no-host 30.0 30.0 30.0 30.0 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.2 24.2 0.99 0.99
hello-world no-host 2.9 1.4 17.6 6.2 5.9 6.09 2.14

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 810 1 2 2.6 8.1 154,747 13,284 2,886 9,745 78,326 66,676 3,008 3 50,000 0
configure.cpython no-host 15,086 1 62 15.0 27.5 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,211 3 59 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,790 1 2 2.6 20.6 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.3 30,588 30,588 0 1,521 14,781 14,286 271 0 50,000 0
configure.yash no-host 1,805 1 2 2.6 24.2 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 9.0 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.9 3,781 3,781 0 696 1,857 1,228 2 0 50,000 0
bin-true no-host 800 1 2 2.6 7.5 154,746 13,072 2,824 9,746 78,326 66,674 3,008 3 50,000 0
configure.cpython no-host 15,147 1 63 15.0 27.4 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,244 3 62 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,774 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 48 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,806 1 2 2.6 24.2 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 11 9 4.5 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 458 404 57 22.2 osh-cpython
31 no-host abuild-print-help 22 10 12 9.0 osh-native
39 no-host abuild-print-help 21 14 8 8.7 osh-native-souffle
1 no-host bin-true 689 505 215 3.0 bash
9 no-host bin-true 540 416 135 1.6 dash
17 no-host bin-true 2,263 1,501 1,009 17.7 osh-cpython
25 no-host bin-true 810 587 239 8.1 osh-native
33 no-host bin-true 800 564 252 7.5 osh-native-souffle
2 no-host configure.cpython 15,186 9,030 6,550 27.4 bash
10 no-host configure.cpython 15,028 9,271 6,189 27.4 dash
18 no-host configure.cpython 28,383 17,076 13,119 27.4 osh-cpython
26 no-host configure.cpython 15,086 8,808 6,549 27.5 osh-native
34 no-host configure.cpython 15,147 8,950 6,380 27.4 osh-native-souffle
4 no-host configure.ocaml 3,775 1,665 1,148 20.6 bash
12 no-host configure.ocaml 3,713 1,644 1,089 20.6 dash
20 no-host configure.ocaml 4,586 2,140 1,653 20.6 osh-cpython
28 no-host configure.ocaml 3,790 1,544 1,289 20.6 osh-native
36 no-host configure.ocaml 3,774 1,564 1,249 20.6 osh-native-souffle
5 no-host configure.tcc 47 27 21 19.3 bash
13 no-host configure.tcc 41 34 7 19.3 dash
21 no-host configure.tcc 194 148 50 19.1 osh-cpython
29 no-host configure.tcc 49 30 19 19.3 osh-native
37 no-host configure.tcc 48 32 17 19.4 osh-native-souffle
3 no-host configure.util-linux 13,904 8,853 5,535 30.0 bash
11 no-host configure.util-linux 14,713 9,040 6,173 30.0 dash
19 no-host configure.util-linux 31,000 20,721 11,326 30.0 osh-cpython
27 no-host configure.util-linux 14,211 8,632 5,777 30.0 osh-native
35 no-host configure.util-linux 14,244 8,508 5,936 30.1 osh-native-souffle
6 no-host configure.yash 1,810 1,091 728 24.4 bash
14 no-host configure.yash 1,756 1,040 719 24.4 dash
22 no-host configure.yash 2,423 1,488 977 24.2 osh-cpython
30 no-host configure.yash 1,805 1,030 780 24.2 osh-native
38 no-host configure.yash 1,806 1,063 747 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 41 8 17.6 osh-cpython
24 no-host hello-world 3 3 0 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,550 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,100 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,649 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,154 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,111 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 109,380 0 0 0 8 0 1,995 82 bash
9 no-host bin-true 66,402 0 0 0 8 0 1,988 39 dash
17 no-host bin-true 779,416 0 0 0 8 0 1,995 141 osh-cpython
25 no-host bin-true 127,833 0 0 0 16 0 1,985 69 osh-native
33 no-host bin-true 124,861 0 0 0 16 0 1,982 67 osh-native-souffle
2 no-host configure.cpython 2,222,952 1 0 0 32,928 0 14,469 1,171 bash
10 no-host configure.cpython 2,241,494 0 0 0 32,992 0 14,651 976 dash
18 no-host configure.cpython 6,261,146 1 0 0 27,512 0 13,304 1,082 osh-cpython
26 no-host configure.cpython 2,232,084 0 0 0 27,520 0 13,301 922 osh-native
34 no-host configure.cpython 2,211,548 0 0 0 27,520 0 13,251 1,126 osh-native-souffle
4 no-host configure.ocaml 410,949 0 0 0 5,120 0 1,956 161 bash
12 no-host configure.ocaml 390,821 0 0 0 5,112 0 1,920 155 dash
20 no-host configure.ocaml 646,072 0 0 0 5,112 0 1,869 188 osh-cpython
28 no-host configure.ocaml 413,791 0 0 0 5,120 0 1,929 171 osh-native
36 no-host configure.ocaml 412,800 0 0 0 5,120 0 1,925 142 osh-native-souffle
5 no-host configure.tcc 6,541 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,483 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 23,772 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,959 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,928 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,101,955 0 0 0 42,400 0 18,610 1,020 bash
11 no-host configure.util-linux 2,261,700 1 0 0 42,584 0 17,398 999 dash
19 no-host configure.util-linux 5,382,257 9 0 0 39,120 0 16,910 1,270 osh-cpython
27 no-host configure.util-linux 2,003,684 3 0 0 39,120 0 16,943 1,019 osh-native
35 no-host configure.util-linux 1,997,289 0 0 0 39,128 0 17,072 979 osh-native-souffle
6 no-host configure.yash 256,787 0 0 0 4,120 0 869 83 bash
14 no-host configure.yash 245,116 0 0 0 3,720 0 870 179 dash
22 no-host configure.yash 387,160 0 0 0 3,728 0 852 112 osh-cpython
30 no-host configure.yash 258,495 0 0 0 3,736 0 848 69 osh-native
38 no-host configure.yash 257,942 0 0 0 3,736 0 842 75 osh-native-souffle
0 no-host hello-world 153 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,752 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 343 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-edc8637d
dash dash-0ebcf347
osh-cpython osh-d2ee4694
osh-native osh-0e69846c
osh-native-souffle osh-c96efcaa
host label host id
no-host no-host-556df3ee