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 472 22 21 25.35 1.16
bin-true no-host 654 525 2,331 801 794 3.56 1.22
configure.cpython no-host 14,652 14,712 28,365 14,835 14,861 1.94 1.01
configure.ocaml no-host 3,768 3,667 4,617 3,761 3,752 1.23 1.00
configure.tcc no-host 46 41 206 48 48 4.43 1.03
configure.util-linux no-host 13,619 14,455 31,190 13,929 13,853 2.29 1.02
configure.yash no-host 1,794 1,743 2,441 1,791 1,794 1.36 1.00
hello-world no-host 1 1 56 3 3 43.20 2.16

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,544 1,124 23,880 3,189 3,109 9.39 1.25
bin-true no-host 105,310 66,457 777,260 128,163 126,124 7.38 1.22
configure.cpython no-host 1,995,499 2,020,595 6,036,008 2,014,779 1,997,197 3.02 1.01
configure.ocaml no-host 373,190 354,163 611,766 377,119 375,800 1.64 1.01
configure.tcc no-host 6,081 4,990 23,665 6,508 6,458 3.89 1.07
configure.util-linux no-host 1,900,070 2,067,066 5,220,390 1,811,898 1,806,079 2.75 0.95
configure.yash no-host 234,037 222,238 367,367 234,808 235,747 1.57 1.00
hello-world no-host 148 79 3,958 343 336 26.74 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.5 22.6 9.2 8.8 5.22 2.12
bin-true no-host 3.0 1.4 18.2 8.0 7.9 6.04 2.65
configure.cpython no-host 29.2 29.2 29.2 29.2 29.2 1.00 1.00
configure.ocaml no-host 22.5 22.6 22.6 22.6 22.6 1.00 1.01
configure.tcc no-host 19.7 19.6 19.7 19.6 19.7 1.00 1.00
configure.util-linux no-host 30.3 30.2 30.2 30.1 30.3 1.00 0.99
configure.yash no-host 26.4 26.4 26.3 26.3 26.4 1.00 1.00
hello-world no-host 2.8 1.6 18.3 6.3 5.9 6.64 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.3 6.3 3,799 3,799 0 699 1,867 1,233 2 0 50,000 0
bin-true no-host 801 1 2 2.6 8.0 153,766 12,331 2,895 8,751 76,334 68,681 3,008 3 50,000 0
configure.cpython no-host 14,835 1 66 15.3 29.2 1,773,757 49,822 28,520 91,504 881,462 800,791 25,736 60 50,000 0
configure.util-linux no-host 13,929 3 64 21.6 30.1 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,761 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 48 0 0 1.3 19.6 30,567 30,567 0 1,541 14,632 14,394 271 0 50,000 0
configure.yash no-host 1,791 1 2 2.6 26.3 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 794 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 14,861 1 64 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 13,853 3 64 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,752 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.7 30,567 30,567 0 1,543 14,632 14,392 271 0 50,000 0
configure.yash no-host 1,794 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.8 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 10 9 4.3 bash
15 no-host abuild-print-help 9 4 6 3.5 dash
23 no-host abuild-print-help 472 412 64 22.6 osh-cpython
31 no-host abuild-print-help 22 10 12 9.2 osh-native
39 no-host abuild-print-help 21 12 10 8.8 osh-native-souffle
1 no-host bin-true 654 295 393 3.0 bash
9 no-host bin-true 525 283 254 1.4 dash
17 no-host bin-true 2,331 805 1,795 18.2 osh-cpython
25 no-host bin-true 801 301 516 8.0 osh-native
33 no-host bin-true 794 284 527 7.9 osh-native-souffle
2 no-host configure.cpython 14,652 6,604 8,468 29.2 bash
10 no-host configure.cpython 14,712 6,635 8,525 29.2 dash
18 no-host configure.cpython 28,365 14,227 16,074 29.2 osh-cpython
26 no-host configure.cpython 14,835 6,632 8,497 29.2 osh-native
34 no-host configure.cpython 14,861 6,524 8,508 29.2 osh-native-souffle
4 no-host configure.ocaml 3,768 1,300 1,506 22.5 bash
12 no-host configure.ocaml 3,667 1,250 1,437 22.6 dash
20 no-host configure.ocaml 4,617 1,844 1,989 22.6 osh-cpython
28 no-host configure.ocaml 3,761 1,313 1,491 22.6 osh-native
36 no-host configure.ocaml 3,752 1,303 1,489 22.6 osh-native-souffle
5 no-host configure.tcc 46 20 27 19.7 bash
13 no-host configure.tcc 41 22 19 19.6 dash
21 no-host configure.tcc 206 149 60 19.7 osh-cpython
29 no-host configure.tcc 48 23 25 19.6 osh-native
37 no-host configure.tcc 48 25 23 19.7 osh-native-souffle
3 no-host configure.util-linux 13,619 5,801 8,322 30.3 bash
11 no-host configure.util-linux 14,455 5,813 9,167 30.2 dash
19 no-host configure.util-linux 31,190 17,753 14,560 30.2 osh-cpython
27 no-host configure.util-linux 13,929 5,600 8,557 30.1 osh-native
35 no-host configure.util-linux 13,853 5,480 8,595 30.3 osh-native-souffle
6 no-host configure.yash 1,794 908 896 26.4 bash
14 no-host configure.yash 1,743 907 840 26.4 dash
22 no-host configure.yash 2,441 1,360 1,126 26.3 osh-cpython
30 no-host configure.yash 1,791 942 854 26.3 osh-native
38 no-host configure.yash 1,794 921 878 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 56 37 19 18.3 osh-cpython
24 no-host hello-world 3 1 1 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,544 0 0 0 16 0 40 1 bash
15 no-host abuild-print-help 1,124 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,880 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,189 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,109 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 105,310 0 0 0 8 0 1,977 112 bash
9 no-host bin-true 66,457 0 0 0 8 0 1,981 70 dash
17 no-host bin-true 777,260 0 0 0 8 0 1,965 269 osh-cpython
25 no-host bin-true 128,163 0 0 0 16 0 1,978 124 osh-native
33 no-host bin-true 126,124 0 0 0 16 0 1,978 140 osh-native-souffle
2 no-host configure.cpython 1,995,499 0 0 0 32,928 0 14,098 1,252 bash
10 no-host configure.cpython 2,020,595 0 0 0 32,992 0 14,409 1,236 dash
18 no-host configure.cpython 6,036,008 0 0 0 27,512 0 13,053 1,237 osh-cpython
26 no-host configure.cpython 2,014,779 0 0 0 27,520 0 13,198 1,159 osh-native
34 no-host configure.cpython 1,997,197 0 0 0 27,520 0 13,084 1,094 osh-native-souffle
4 no-host configure.ocaml 373,190 0 0 0 5,120 0 1,951 200 bash
12 no-host configure.ocaml 354,163 0 0 0 5,112 0 1,939 194 dash
20 no-host configure.ocaml 611,766 0 0 0 5,112 0 1,855 184 osh-cpython
28 no-host configure.ocaml 377,119 0 0 0 5,120 0 1,925 215 osh-native
36 no-host configure.ocaml 375,800 0 0 0 5,120 0 1,923 213 osh-native-souffle
5 no-host configure.tcc 6,081 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 4,990 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,665 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,508 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,458 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,900,070 2 0 0 42,400 0 18,480 1,284 bash
11 no-host configure.util-linux 2,067,066 1 0 0 42,584 0 17,325 1,421 dash
19 no-host configure.util-linux 5,220,390 3 0 0 39,112 0 17,013 1,405 osh-cpython
27 no-host configure.util-linux 1,811,898 0 0 0 39,120 0 16,975 1,218 osh-native
35 no-host configure.util-linux 1,806,079 1 0 0 39,128 0 17,021 1,148 osh-native-souffle
6 no-host configure.yash 234,037 0 0 0 4,120 0 874 92 bash
14 no-host configure.yash 222,238 0 0 0 3,720 0 866 86 dash
22 no-host configure.yash 367,367 0 0 0 3,728 0 854 112 osh-cpython
30 no-host configure.yash 234,808 0 0 0 3,736 0 848 88 osh-native
38 no-host configure.yash 235,747 0 0 0 3,736 0 849 96 osh-native-souffle
0 no-host hello-world 148 0 0 0 8 0 0 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,958 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 343 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-3676d367
dash dash-0ebcf347
osh-cpython osh-74be6d9e
osh-native osh-9bbfcdf8
osh-native-souffle osh-f78a7875
host label host id
no-host no-host-e4839999