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 477 22 20 25.42 1.17
bin-true no-host 660 528 2,402 794 783 3.64 1.20
configure.cpython no-host 14,790 14,818 28,979 15,018 15,051 1.96 1.02
configure.ocaml no-host 3,789 3,708 4,660 3,779 3,785 1.23 1.00
configure.tcc no-host 46 42 206 47 47 4.45 1.01
configure.util-linux no-host 13,726 14,527 31,713 14,170 14,077 2.31 1.03
configure.yash no-host 1,792 1,766 2,457 1,792 1,808 1.37 1.00
hello-world no-host 1 1 56 3 3 42.95 2.15

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,527 1,079 24,075 3,170 3,089 9.53 1.25
bin-true no-host 105,411 66,391 808,681 126,127 127,063 7.67 1.20
configure.cpython no-host 2,000,661 2,023,355 6,098,513 2,007,695 1,995,319 3.05 1.00
configure.ocaml no-host 373,453 353,799 617,585 376,520 375,781 1.65 1.01
configure.tcc no-host 6,097 4,982 23,985 6,487 6,464 3.93 1.06
configure.util-linux no-host 1,913,532 2,080,110 5,275,725 1,818,536 1,810,023 2.76 0.95
configure.yash no-host 233,809 222,343 369,672 234,538 235,434 1.58 1.00
hello-world no-host 144 79 3,964 346 338 27.53 2.40

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 3.0 1.4 18.5 8.0 7.7 6.15 2.65
configure.cpython no-host 29.2 29.2 29.1 29.3 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.4 22.6 1.00 0.99
configure.tcc no-host 19.7 19.5 19.7 19.6 19.5 1.00 0.99
configure.util-linux no-host 30.3 30.2 30.3 30.2 30.5 1.00 1.00
configure.yash no-host 26.4 26.4 26.3 26.3 26.3 1.00 1.00
hello-world no-host 2.6 1.6 18.3 6.3 5.9 6.97 2.40

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 794 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 15,018 1 64 15.3 29.3 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,170 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,779 1 2 2.6 22.4 149,782 11,148 5,215 7,732 70,841 71,209 1,695 3 50,000 0
configure.tcc no-host 47 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,792 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.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.9 3,798 3,798 0 700 1,867 1,231 2 0 50,000 0
bin-true no-host 783 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,051 2 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 14,077 3 66 21.6 30.5 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,785 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,808 1 2 2.6 26.3 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.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 8 4.3 bash
15 no-host abuild-print-help 9 3 6 3.5 dash
23 no-host abuild-print-help 477 420 60 22.9 osh-cpython
31 no-host abuild-print-help 22 9 13 9.0 osh-native
39 no-host abuild-print-help 20 9 12 8.5 osh-native-souffle
1 no-host bin-true 660 305 388 3.0 bash
9 no-host bin-true 528 272 268 1.4 dash
17 no-host bin-true 2,402 801 1,871 18.5 osh-cpython
25 no-host bin-true 794 303 509 8.0 osh-native
33 no-host bin-true 783 287 515 7.7 osh-native-souffle
2 no-host configure.cpython 14,790 6,623 8,573 29.2 bash
10 no-host configure.cpython 14,818 6,716 8,536 29.2 dash
18 no-host configure.cpython 28,979 14,524 16,410 29.1 osh-cpython
26 no-host configure.cpython 15,018 6,545 8,752 29.3 osh-native
34 no-host configure.cpython 15,051 6,539 8,673 29.2 osh-native-souffle
4 no-host configure.ocaml 3,789 1,324 1,505 22.6 bash
12 no-host configure.ocaml 3,708 1,295 1,435 22.6 dash
20 no-host configure.ocaml 4,660 1,872 2,009 22.6 osh-cpython
28 no-host configure.ocaml 3,779 1,312 1,507 22.4 osh-native
36 no-host configure.ocaml 3,785 1,312 1,510 22.6 osh-native-souffle
5 no-host configure.tcc 46 25 21 19.7 bash
13 no-host configure.tcc 42 21 22 19.5 dash
21 no-host configure.tcc 206 134 76 19.7 osh-cpython
29 no-host configure.tcc 47 20 28 19.6 osh-native
37 no-host configure.tcc 47 22 26 19.5 osh-native-souffle
3 no-host configure.util-linux 13,726 5,872 8,347 30.3 bash
11 no-host configure.util-linux 14,527 5,898 9,143 30.2 dash
19 no-host configure.util-linux 31,713 18,085 14,747 30.3 osh-cpython
27 no-host configure.util-linux 14,170 5,666 8,727 30.2 osh-native
35 no-host configure.util-linux 14,077 5,555 8,739 30.5 osh-native-souffle
6 no-host configure.yash 1,792 938 863 26.4 bash
14 no-host configure.yash 1,766 919 852 26.4 dash
22 no-host configure.yash 2,457 1,371 1,132 26.3 osh-cpython
30 no-host configure.yash 1,792 895 902 26.3 osh-native
38 no-host configure.yash 1,808 920 893 26.3 osh-native-souffle
0 no-host hello-world 1 0 1 2.6 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 56 40 16 18.3 osh-cpython
24 no-host hello-world 3 2 1 6.3 osh-native
32 no-host hello-world 3 0 3 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,527 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,079 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,075 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,170 0 0 0 16 0 38 6 osh-native
39 no-host abuild-print-help 3,089 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 105,411 0 0 0 8 0 1,982 160 bash
9 no-host bin-true 66,391 0 0 0 8 0 1,990 86 dash
17 no-host bin-true 808,681 0 0 0 8 0 1,989 276 osh-cpython
25 no-host bin-true 126,127 0 0 0 16 0 1,980 230 osh-native
33 no-host bin-true 127,063 0 0 0 16 0 1,964 110 osh-native-souffle
2 no-host configure.cpython 2,000,661 1 0 0 32,952 0 14,332 1,161 bash
10 no-host configure.cpython 2,023,355 0 0 0 32,992 0 14,344 1,330 dash
18 no-host configure.cpython 6,098,513 0 0 0 27,512 0 13,043 1,269 osh-cpython
26 no-host configure.cpython 2,007,695 1 0 0 27,520 0 13,033 1,092 osh-native
34 no-host configure.cpython 1,995,319 0 0 0 27,520 0 13,092 1,125 osh-native-souffle
4 no-host configure.ocaml 373,453 0 0 0 5,120 0 1,948 185 bash
12 no-host configure.ocaml 353,799 0 0 0 5,112 0 1,933 208 dash
20 no-host configure.ocaml 617,585 0 0 0 5,112 0 1,856 189 osh-cpython
28 no-host configure.ocaml 376,520 0 0 0 5,120 0 1,926 274 osh-native
36 no-host configure.ocaml 375,781 0 0 0 5,120 0 1,930 200 osh-native-souffle
5 no-host configure.tcc 6,097 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 4,982 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,985 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,487 0 0 0 104 0 47 0 osh-native
37 no-host configure.tcc 6,464 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,913,532 0 0 0 42,400 0 18,412 1,329 bash
11 no-host configure.util-linux 2,080,110 1 0 0 42,584 0 17,373 1,601 dash
19 no-host configure.util-linux 5,275,725 10 0 0 39,112 0 17,017 1,461 osh-cpython
27 no-host configure.util-linux 1,818,536 0 0 0 39,120 0 17,054 1,242 osh-native
35 no-host configure.util-linux 1,810,023 0 0 0 39,128 0 17,005 1,280 osh-native-souffle
6 no-host configure.yash 233,809 0 0 0 4,120 0 869 93 bash
14 no-host configure.yash 222,343 0 0 0 3,720 0 870 105 dash
22 no-host configure.yash 369,672 0 0 0 3,728 0 852 103 osh-cpython
30 no-host configure.yash 234,538 0 0 0 3,736 0 846 101 osh-native
38 no-host configure.yash 235,434 0 0 0 3,736 0 847 85 osh-native-souffle
0 no-host hello-world 144 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,964 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 346 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-3f6093b4
dash dash-0ebcf347
osh-cpython osh-7ea3f139
osh-native osh-bbbe00ee
osh-native-souffle osh-8d11c2fe
host label host id
no-host no-host-e4839999