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 476 22 21 24.51 1.12
bin-true no-host 678 538 2,409 796 796 3.55 1.17
configure.cpython no-host 15,030 15,058 29,419 15,251 15,332 1.96 1.01
configure.ocaml no-host 3,858 3,758 4,686 3,811 3,802 1.21 0.99
configure.tcc no-host 47 42 207 49 48 4.36 1.03
configure.util-linux no-host 13,890 14,755 32,161 14,284 14,257 2.32 1.03
configure.yash no-host 1,857 1,795 2,483 1,820 1,821 1.34 0.98
hello-world no-host 1 1 57 3 3 43.01 2.13

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,552 1,087 24,159 3,151 3,090 9.47 1.23
bin-true no-host 107,337 66,389 806,053 126,161 127,161 7.51 1.18
configure.cpython no-host 1,992,310 2,016,536 6,108,061 2,011,034 2,002,764 3.07 1.01
configure.ocaml no-host 373,749 353,653 617,271 375,936 376,302 1.65 1.01
configure.tcc no-host 6,092 4,989 23,924 6,499 6,449 3.93 1.07
configure.util-linux no-host 1,912,541 2,076,878 5,257,370 1,812,436 1,807,097 2.75 0.95
configure.yash no-host 233,199 221,717 368,791 235,040 235,586 1.58 1.01
hello-world no-host 149 77 3,960 344 338 26.58 2.31

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.5 22.9 9.0 8.5 5.29 2.09
bin-true no-host 2.9 1.4 18.3 8.3 7.7 6.34 2.86
configure.cpython no-host 29.2 28.9 29.2 29.1 29.2 1.00 1.00
configure.ocaml no-host 22.5 22.6 22.6 22.6 22.6 1.01 1.01
configure.tcc no-host 19.6 19.8 19.6 19.4 19.5 1.00 0.99
configure.util-linux no-host 30.3 30.2 30.2 30.4 30.3 1.00 1.00
configure.yash no-host 26.3 26.3 26.4 26.4 26.4 1.00 1.00
hello-world no-host 2.9 1.4 18.4 6.2 5.8 6.38 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.3 6.2 3,799 3,799 0 699 1,867 1,233 2 0 50,000 0
bin-true no-host 796 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,251 2 68 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,284 3 67 21.6 30.4 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,811 1 2 2.6 22.6 149,782 11,148 5,215 7,732 70,841 71,209 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,567 30,567 0 1,541 14,632 14,394 271 0 50,000 0
configure.yash no-host 1,820 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.0 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.8 3,798 3,798 0 700 1,867 1,231 2 0 50,000 0
bin-true no-host 796 1 2 2.6 7.7 153,765 12,326 2,890 8,752 76,334 68,679 3,008 3 50,000 0
configure.cpython no-host 15,332 2 65 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,257 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,802 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 48 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,821 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 21 1 2 2.8 8.5 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 11 9 4.3 bash
15 no-host abuild-print-help 9 5 4 3.5 dash
23 no-host abuild-print-help 476 414 66 22.9 osh-cpython
31 no-host abuild-print-help 22 16 6 9.0 osh-native
39 no-host abuild-print-help 21 11 11 8.5 osh-native-souffle
1 no-host bin-true 678 295 404 2.9 bash
9 no-host bin-true 538 279 269 1.4 dash
17 no-host bin-true 2,409 781 1,895 18.3 osh-cpython
25 no-host bin-true 796 300 509 8.3 osh-native
33 no-host bin-true 796 285 526 7.7 osh-native-souffle
2 no-host configure.cpython 15,030 6,653 8,735 29.2 bash
10 no-host configure.cpython 15,058 6,707 8,776 28.9 dash
18 no-host configure.cpython 29,419 14,516 16,826 29.2 osh-cpython
26 no-host configure.cpython 15,251 6,737 8,771 29.1 osh-native
34 no-host configure.cpython 15,332 6,588 8,875 29.2 osh-native-souffle
4 no-host configure.ocaml 3,858 1,321 1,552 22.5 bash
12 no-host configure.ocaml 3,758 1,319 1,457 22.6 dash
20 no-host configure.ocaml 4,686 1,880 2,024 22.6 osh-cpython
28 no-host configure.ocaml 3,811 1,325 1,525 22.6 osh-native
36 no-host configure.ocaml 3,802 1,347 1,491 22.6 osh-native-souffle
5 no-host configure.tcc 47 27 21 19.6 bash
13 no-host configure.tcc 42 21 21 19.8 dash
21 no-host configure.tcc 207 148 61 19.6 osh-cpython
29 no-host configure.tcc 49 18 31 19.4 osh-native
37 no-host configure.tcc 48 21 27 19.5 osh-native-souffle
3 no-host configure.util-linux 13,890 5,773 8,588 30.3 bash
11 no-host configure.util-linux 14,755 5,972 9,276 30.2 dash
19 no-host configure.util-linux 32,161 18,238 14,983 30.2 osh-cpython
27 no-host configure.util-linux 14,284 5,664 8,801 30.4 osh-native
35 no-host configure.util-linux 14,257 5,715 8,736 30.3 osh-native-souffle
6 no-host configure.yash 1,857 917 945 26.3 bash
14 no-host configure.yash 1,795 944 856 26.3 dash
22 no-host configure.yash 2,483 1,362 1,167 26.4 osh-cpython
30 no-host configure.yash 1,820 875 950 26.4 osh-native
38 no-host configure.yash 1,821 892 933 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 35 22 18.4 osh-cpython
24 no-host hello-world 3 2 1 6.2 osh-native
32 no-host hello-world 3 1 1 5.8 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,552 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,087 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,159 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,151 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,090 0 0 0 16 0 40 4 osh-native-souffle
1 no-host bin-true 107,337 0 0 0 8 0 1,981 115 bash
9 no-host bin-true 66,389 0 0 0 8 0 1,979 154 dash
17 no-host bin-true 806,053 0 0 0 8 0 1,989 368 osh-cpython
25 no-host bin-true 126,161 0 0 0 16 0 1,983 114 osh-native
33 no-host bin-true 127,161 0 0 0 16 0 1,972 128 osh-native-souffle
2 no-host configure.cpython 1,992,310 0 0 0 32,928 0 14,227 1,200 bash
10 no-host configure.cpython 2,016,536 0 0 0 32,992 0 14,340 1,277 dash
18 no-host configure.cpython 6,108,061 0 0 0 27,512 0 13,067 1,123 osh-cpython
26 no-host configure.cpython 2,011,034 0 0 0 27,520 0 13,141 1,166 osh-native
34 no-host configure.cpython 2,002,764 0 0 0 27,520 0 13,052 1,051 osh-native-souffle
4 no-host configure.ocaml 373,749 0 0 0 5,120 0 1,961 260 bash
12 no-host configure.ocaml 353,653 0 0 0 5,112 0 1,938 178 dash
20 no-host configure.ocaml 617,271 0 0 0 5,112 0 1,850 219 osh-cpython
28 no-host configure.ocaml 375,936 0 0 0 5,120 0 1,919 184 osh-native
36 no-host configure.ocaml 376,302 0 0 0 5,120 0 1,918 207 osh-native-souffle
5 no-host configure.tcc 6,092 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 4,989 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 23,924 0 0 0 96 0 52 4 osh-cpython
29 no-host configure.tcc 6,499 0 0 0 104 0 47 5 osh-native
37 no-host configure.tcc 6,449 0 0 0 104 0 46 1 osh-native-souffle
3 no-host configure.util-linux 1,912,541 0 0 0 42,400 0 18,383 1,258 bash
11 no-host configure.util-linux 2,076,878 1 0 0 42,584 0 17,340 1,470 dash
19 no-host configure.util-linux 5,257,370 9 0 0 39,136 0 17,039 1,298 osh-cpython
27 no-host configure.util-linux 1,812,436 1 0 0 39,128 0 16,923 1,256 osh-native
35 no-host configure.util-linux 1,807,097 1 0 0 39,136 0 17,106 1,176 osh-native-souffle
6 no-host configure.yash 233,199 0 0 0 4,120 0 874 101 bash
14 no-host configure.yash 221,717 0 0 0 3,720 0 867 84 dash
22 no-host configure.yash 368,791 0 0 0 3,728 0 855 100 osh-cpython
30 no-host configure.yash 235,040 0 0 0 3,736 0 848 104 osh-native
38 no-host configure.yash 235,586 0 0 0 3,736 0 849 84 osh-native-souffle
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 77 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,960 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-5726158b
dash dash-0ebcf347
osh-cpython osh-a8ba0cc2
osh-native osh-162fd106
osh-native-souffle osh-b808a63d
host label host id
no-host no-host-e4839999