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 474 22 20 24.82 1.13
bin-true no-host 658 535 2,389 798 790 3.63 1.21
configure.cpython no-host 14,966 15,057 29,157 15,091 15,198 1.95 1.01
configure.ocaml no-host 3,847 3,749 4,677 3,831 3,792 1.22 1.00
configure.tcc no-host 48 41 204 48 47 4.27 1.00
configure.util-linux no-host 13,838 14,782 31,722 14,240 14,113 2.29 1.03
configure.yash no-host 1,841 1,782 2,491 1,826 1,812 1.35 0.99
hello-world no-host 1 1 60 3 3 47.16 2.22

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,511 1,088 24,001 3,143 3,101 9.56 1.25
bin-true no-host 106,331 65,384 801,226 127,139 126,216 7.54 1.20
configure.cpython no-host 2,002,389 2,031,061 6,084,575 2,002,187 2,004,483 3.04 1.00
configure.ocaml no-host 373,863 354,084 615,838 376,670 375,853 1.65 1.01
configure.tcc no-host 6,064 5,033 23,912 6,512 6,424 3.94 1.07
configure.util-linux no-host 1,911,890 2,077,857 5,273,036 1,813,727 1,807,549 2.76 0.95
configure.yash no-host 233,228 221,892 368,579 234,667 235,540 1.58 1.01
hello-world no-host 147 75 3,964 341 336 26.97 2.32

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.7 9.2 8.7 5.26 2.12
bin-true no-host 2.9 1.4 18.5 8.3 7.9 6.43 2.86
configure.cpython no-host 29.3 29.2 29.2 29.1 29.2 1.00 0.99
configure.ocaml no-host 22.6 22.6 22.6 22.5 22.6 1.00 0.99
configure.tcc no-host 19.7 19.7 19.7 19.7 19.5 1.00 1.00
configure.util-linux no-host 30.2 30.2 30.2 30.2 30.3 1.00 1.00
configure.yash no-host 26.3 26.4 26.5 26.4 26.4 1.01 1.00
hello-world no-host 2.9 1.6 18.3 6.3 5.9 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.3 6.3 3,799 3,799 0 699 1,867 1,233 2 0 50,000 0
bin-true no-host 798 1 2 2.6 8.3 153,766 12,331 2,895 8,751 76,334 68,681 3,008 3 50,000 0
configure.cpython no-host 15,091 1 66 15.3 29.1 1,773,757 49,822 28,520 91,504 881,462 800,791 25,736 60 50,000 0
configure.util-linux no-host 14,240 3 65 21.6 30.2 2,704,668 53,751 65,719 114,371 1,293,954 1,296,343 32,241 41 131,438 1
configure.ocaml no-host 3,831 1 2 2.6 22.5 149,782 11,148 5,215 7,732 70,841 71,209 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.7 30,567 30,567 0 1,541 14,632 14,394 271 0 50,000 0
configure.yash no-host 1,826 1 2 2.6 26.4 139,678 8,035 6,694 6,393 68,250 65,035 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,315 64,413 42,621 4,543 54,451 57,321 277 3 85,242 1
hello-world no-host 3 0 0 0.3 5.9 3,798 3,798 0 700 1,867 1,231 2 0 50,000 0
bin-true no-host 790 1 2 2.6 7.9 153,765 12,326 2,890 8,752 76,334 68,679 3,008 3 50,000 0
configure.cpython no-host 15,198 1 66 15.3 29.2 1,773,756 49,817 28,515 91,505 881,462 800,789 25,736 60 50,000 0
configure.util-linux no-host 14,113 3 65 21.6 30.3 2,704,668 53,734 65,714 114,373 1,293,954 1,296,341 32,241 41 131,428 1
configure.ocaml no-host 3,792 1 2 2.6 22.6 149,782 11,143 5,210 7,734 70,841 71,207 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.5 30,567 30,567 0 1,543 14,632 14,392 271 0 50,000 0
configure.yash no-host 1,812 1 2 2.6 26.4 139,678 8,030 6,689 6,395 68,250 65,033 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 116,314 64,408 42,616 4,544 54,451 57,319 277 3 85,232 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 8 12 4.3 bash
15 no-host abuild-print-help 9 5 5 3.4 dash
23 no-host abuild-print-help 474 420 58 22.7 osh-cpython
31 no-host abuild-print-help 22 10 13 9.2 osh-native
39 no-host abuild-print-help 20 11 10 8.7 osh-native-souffle
1 no-host bin-true 658 320 374 2.9 bash
9 no-host bin-true 535 275 272 1.4 dash
17 no-host bin-true 2,389 801 1,860 18.5 osh-cpython
25 no-host bin-true 798 282 532 8.3 osh-native
33 no-host bin-true 790 302 506 7.9 osh-native-souffle
2 no-host configure.cpython 14,966 6,714 8,688 29.3 bash
10 no-host configure.cpython 15,057 6,742 8,764 29.2 dash
18 no-host configure.cpython 29,157 14,520 16,608 29.2 osh-cpython
26 no-host configure.cpython 15,091 6,597 8,781 29.1 osh-native
34 no-host configure.cpython 15,198 6,678 8,689 29.2 osh-native-souffle
4 no-host configure.ocaml 3,847 1,346 1,531 22.6 bash
12 no-host configure.ocaml 3,749 1,321 1,451 22.6 dash
20 no-host configure.ocaml 4,677 1,920 1,980 22.6 osh-cpython
28 no-host configure.ocaml 3,831 1,288 1,586 22.5 osh-native
36 no-host configure.ocaml 3,792 1,304 1,527 22.6 osh-native-souffle
5 no-host configure.tcc 48 17 31 19.7 bash
13 no-host configure.tcc 41 18 23 19.7 dash
21 no-host configure.tcc 204 146 63 19.7 osh-cpython
29 no-host configure.tcc 48 22 26 19.7 osh-native
37 no-host configure.tcc 47 18 30 19.5 osh-native-souffle
3 no-host configure.util-linux 13,838 5,927 8,430 30.2 bash
11 no-host configure.util-linux 14,782 6,021 9,297 30.2 dash
19 no-host configure.util-linux 31,722 18,055 14,791 30.2 osh-cpython
27 no-host configure.util-linux 14,240 5,726 8,742 30.2 osh-native
35 no-host configure.util-linux 14,113 5,550 8,801 30.3 osh-native-souffle
6 no-host configure.yash 1,841 924 926 26.3 bash
14 no-host configure.yash 1,782 926 861 26.4 dash
22 no-host configure.yash 2,491 1,385 1,150 26.5 osh-cpython
30 no-host configure.yash 1,826 919 913 26.4 osh-native
38 no-host configure.yash 1,812 891 927 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 60 37 23 18.3 osh-cpython
24 no-host hello-world 3 1 2 6.3 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,511 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,088 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,001 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,143 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,101 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 106,331 0 0 0 8 0 1,985 136 bash
9 no-host bin-true 65,384 0 0 0 8 0 1,986 270 dash
17 no-host bin-true 801,226 0 0 0 8 0 1,984 157 osh-cpython
25 no-host bin-true 127,139 0 0 0 16 0 1,986 405 osh-native
33 no-host bin-true 126,216 0 0 0 16 0 1,987 78 osh-native-souffle
2 no-host configure.cpython 2,002,389 0 0 0 32,928 0 14,214 1,060 bash
10 no-host configure.cpython 2,031,061 0 0 0 32,992 0 14,374 1,250 dash
18 no-host configure.cpython 6,084,575 1 0 0 27,512 0 13,036 1,289 osh-cpython
26 no-host configure.cpython 2,002,187 0 0 0 27,520 0 13,154 1,292 osh-native
34 no-host configure.cpython 2,004,483 0 0 0 27,520 0 13,132 1,210 osh-native-souffle
4 no-host configure.ocaml 373,863 0 0 0 5,120 0 1,949 167 bash
12 no-host configure.ocaml 354,084 0 0 0 5,112 0 1,935 182 dash
20 no-host configure.ocaml 615,838 0 0 0 5,112 0 1,848 187 osh-cpython
28 no-host configure.ocaml 376,670 0 0 0 5,120 0 1,926 188 osh-native
36 no-host configure.ocaml 375,853 0 0 0 5,120 0 1,921 187 osh-native-souffle
5 no-host configure.tcc 6,064 0 0 0 104 0 50 12 bash
13 no-host configure.tcc 5,033 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,912 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,512 0 0 0 104 0 46 3 osh-native
37 no-host configure.tcc 6,424 0 0 0 104 0 46 4 osh-native-souffle
3 no-host configure.util-linux 1,911,890 1 0 0 42,400 0 18,503 1,340 bash
11 no-host configure.util-linux 2,077,857 0 0 0 42,584 0 17,377 1,312 dash
19 no-host configure.util-linux 5,273,036 7 0 0 39,112 0 17,076 1,310 osh-cpython
27 no-host configure.util-linux 1,813,727 0 0 0 39,120 0 17,067 1,182 osh-native
35 no-host configure.util-linux 1,807,549 3 0 0 39,128 0 17,125 1,237 osh-native-souffle
6 no-host configure.yash 233,228 0 0 0 4,120 0 871 120 bash
14 no-host configure.yash 221,892 0 0 0 3,720 0 869 82 dash
22 no-host configure.yash 368,579 0 0 0 3,728 0 853 110 osh-cpython
30 no-host configure.yash 234,667 0 0 0 3,736 0 850 80 osh-native
38 no-host configure.yash 235,540 0 0 0 3,736 0 849 105 osh-native-souffle
0 no-host hello-world 147 0 0 0 8 0 1 0 bash
8 no-host hello-world 75 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,964 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-2a848bb2
dash dash-0ebcf347
osh-cpython osh-7a1bd5d6
osh-native osh-5506933a
osh-native-souffle osh-1a1d898a
host label host id
no-host no-host-e4839999