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 468 21 20 24.60 1.13
bin-true no-host 651 529 2,315 790 787 3.55 1.21
configure.cpython no-host 14,605 14,639 28,335 14,917 14,999 1.94 1.02
configure.ocaml no-host 3,740 3,671 4,613 3,733 3,773 1.23 1.00
configure.tcc no-host 46 40 205 47 47 4.45 1.02
configure.util-linux no-host 13,557 14,453 31,206 14,054 13,907 2.30 1.04
configure.yash no-host 1,807 1,734 2,470 1,796 1,790 1.37 0.99
hello-world no-host 1 1 56 3 3 39.58 1.92

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,566 1,085 23,918 3,156 3,075 9.32 1.23
bin-true no-host 106,274 66,418 779,317 127,156 126,175 7.33 1.20
configure.cpython no-host 1,999,612 2,025,123 6,048,336 2,008,888 1,998,193 3.02 1.00
configure.ocaml no-host 373,944 353,721 612,194 376,420 375,814 1.64 1.01
configure.tcc no-host 6,065 5,011 23,682 6,531 6,469 3.90 1.08
configure.util-linux no-host 1,908,396 2,079,383 5,235,201 1,805,938 1,814,391 2.74 0.95
configure.yash no-host 234,069 221,231 367,186 235,717 235,025 1.57 1.01
hello-world no-host 146 74 4,001 341 339 27.40 2.34

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.5 22.6 9.0 8.7 5.07 2.03
bin-true no-host 3.0 1.4 18.4 8.0 7.6 6.10 2.65
configure.cpython no-host 29.2 29.1 28.9 29.2 29.2 0.99 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.5 19.6 19.7 19.6 19.7 1.01 1.00
configure.util-linux no-host 30.3 30.2 30.4 30.5 30.2 1.00 1.00
configure.yash no-host 26.4 26.2 26.3 26.2 26.5 1.00 0.99
hello-world no-host 2.6 1.4 18.4 6.3 5.9 7.02 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 790 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,917 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 14,054 3 66 21.6 30.5 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,733 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 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,796 1 2 2.6 26.2 139,678 8,035 6,694 6,393 68,250 65,035 2,095 3 50,000 0
abuild-print-help no-host 21 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 787 1 2 2.6 7.6 153,765 12,326 2,890 8,752 76,334 68,679 3,008 3 50,000 0
configure.cpython no-host 14,999 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,907 3 64 21.6 30.2 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,773 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.7 30,567 30,567 0 1,543 14,632 14,392 271 0 50,000 0
configure.yash no-host 1,790 1 2 2.6 26.5 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 11 4.5 bash
15 no-host abuild-print-help 9 5 4 3.5 dash
23 no-host abuild-print-help 468 409 62 22.6 osh-cpython
31 no-host abuild-print-help 21 14 8 9.0 osh-native
39 no-host abuild-print-help 20 8 13 8.7 osh-native-souffle
1 no-host bin-true 651 293 392 3.0 bash
9 no-host bin-true 529 283 259 1.4 dash
17 no-host bin-true 2,315 772 1,807 18.4 osh-cpython
25 no-host bin-true 790 308 498 8.0 osh-native
33 no-host bin-true 787 288 515 7.6 osh-native-souffle
2 no-host configure.cpython 14,605 6,665 8,361 29.2 bash
10 no-host configure.cpython 14,639 6,648 8,428 29.1 dash
18 no-host configure.cpython 28,335 14,091 16,166 28.9 osh-cpython
26 no-host configure.cpython 14,917 6,594 8,612 29.2 osh-native
34 no-host configure.cpython 14,999 6,575 8,577 29.2 osh-native-souffle
4 no-host configure.ocaml 3,740 1,341 1,442 22.6 bash
12 no-host configure.ocaml 3,671 1,244 1,449 22.6 dash
20 no-host configure.ocaml 4,613 1,909 1,922 22.6 osh-cpython
28 no-host configure.ocaml 3,733 1,288 1,487 22.6 osh-native
36 no-host configure.ocaml 3,773 1,278 1,533 22.6 osh-native-souffle
5 no-host configure.tcc 46 22 24 19.5 bash
13 no-host configure.tcc 40 18 22 19.6 dash
21 no-host configure.tcc 205 141 68 19.7 osh-cpython
29 no-host configure.tcc 47 23 25 19.6 osh-native
37 no-host configure.tcc 47 23 24 19.7 osh-native-souffle
3 no-host configure.util-linux 13,557 5,750 8,305 30.3 bash
11 no-host configure.util-linux 14,453 5,887 9,092 30.2 dash
19 no-host configure.util-linux 31,206 17,789 14,544 30.4 osh-cpython
27 no-host configure.util-linux 14,054 5,770 8,513 30.5 osh-native
35 no-host configure.util-linux 13,907 5,585 8,547 30.2 osh-native-souffle
6 no-host configure.yash 1,807 900 909 26.4 bash
14 no-host configure.yash 1,734 877 861 26.2 dash
22 no-host configure.yash 2,470 1,354 1,161 26.3 osh-cpython
30 no-host configure.yash 1,796 887 914 26.2 osh-native
38 no-host configure.yash 1,790 916 879 26.5 osh-native-souffle
0 no-host hello-world 1 0 1 2.6 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 56 40 16 18.4 osh-cpython
24 no-host hello-world 3 1 2 6.3 osh-native
32 no-host hello-world 3 2 1 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,566 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,085 0 0 0 8 0 39 5 dash
23 no-host abuild-print-help 23,918 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,156 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,075 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 106,274 0 0 0 8 0 1,991 100 bash
9 no-host bin-true 66,418 0 0 0 8 0 1,980 179 dash
17 no-host bin-true 779,317 0 0 0 8 0 1,974 203 osh-cpython
25 no-host bin-true 127,156 0 0 0 16 0 1,970 137 osh-native
33 no-host bin-true 126,175 0 0 0 16 0 1,981 89 osh-native-souffle
2 no-host configure.cpython 1,999,612 0 0 0 32,928 0 14,235 1,112 bash
10 no-host configure.cpython 2,025,123 0 0 0 32,992 0 14,329 1,277 dash
18 no-host configure.cpython 6,048,336 1 0 0 27,512 0 13,051 1,156 osh-cpython
26 no-host configure.cpython 2,008,888 0 0 0 27,520 0 13,174 1,203 osh-native
34 no-host configure.cpython 1,998,193 0 0 0 27,520 0 13,059 1,079 osh-native-souffle
4 no-host configure.ocaml 373,944 0 0 0 5,120 0 1,940 213 bash
12 no-host configure.ocaml 353,721 0 0 0 5,112 0 1,941 165 dash
20 no-host configure.ocaml 612,194 1 0 0 5,112 0 1,853 216 osh-cpython
28 no-host configure.ocaml 376,420 0 0 0 5,120 0 1,925 213 osh-native
36 no-host configure.ocaml 375,814 0 0 0 5,120 0 1,922 205 osh-native-souffle
5 no-host configure.tcc 6,065 0 0 0 104 0 48 3 bash
13 no-host configure.tcc 5,011 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,682 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,531 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,469 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,908,396 1 0 0 42,400 0 18,463 1,276 bash
11 no-host configure.util-linux 2,079,383 0 0 0 42,592 0 17,309 1,407 dash
19 no-host configure.util-linux 5,235,201 13 0 0 39,112 0 16,981 1,287 osh-cpython
27 no-host configure.util-linux 1,805,938 0 0 0 39,120 0 17,003 1,118 osh-native
35 no-host configure.util-linux 1,814,391 1 0 0 39,128 0 16,991 1,137 osh-native-souffle
6 no-host configure.yash 234,069 0 0 0 4,120 0 882 91 bash
14 no-host configure.yash 221,231 0 0 0 3,720 0 872 84 dash
22 no-host configure.yash 367,186 0 0 0 3,728 0 852 77 osh-cpython
30 no-host configure.yash 235,717 0 0 0 3,736 0 849 95 osh-native
38 no-host configure.yash 235,025 0 0 0 3,736 0 846 91 osh-native-souffle
0 no-host hello-world 146 0 0 0 8 0 1 1 bash
8 no-host hello-world 74 0 0 0 8 0 1 0 dash
16 no-host hello-world 4,001 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-8799199a
dash dash-0ebcf347
osh-cpython osh-5fa00753
osh-native osh-bc14442d
osh-native-souffle osh-4063ed99
host label host id
no-host no-host-e4839999