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 20 10 460 22 21 23.45 1.12
bin-true no-host 673 548 2,325 826 812 3.45 1.23
configure.cpython no-host 15,327 15,366 29,375 15,628 15,645 1.92 1.02
configure.ocaml no-host 3,859 3,788 4,739 3,887 3,886 1.23 1.01
configure.tcc no-host 48 41 211 50 48 4.42 1.06
configure.util-linux no-host 14,421 15,107 32,314 14,704 14,717 2.24 1.02
configure.yash no-host 1,853 1,801 2,493 1,896 1,872 1.35 1.02
hello-world no-host 2 1 57 3 3 37.81 1.85

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,508 1,098 23,828 3,179 3,085 9.50 1.27
bin-true no-host 102,322 66,423 766,523 126,288 127,254 7.49 1.23
configure.cpython no-host 2,220,938 2,241,647 6,227,863 2,227,047 2,210,025 2.80 1.00
configure.ocaml no-host 409,853 390,912 647,152 413,011 412,909 1.58 1.01
configure.tcc no-host 6,547 5,482 24,072 6,986 6,917 3.68 1.07
configure.util-linux no-host 2,105,097 2,263,737 5,366,409 1,996,958 1,990,863 2.55 0.95
configure.yash no-host 256,691 245,087 388,343 257,805 257,177 1.51 1.00
hello-world no-host 152 81 3,934 346 337 25.88 2.28

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.3 9.0 8.3 5.15 2.09
bin-true no-host 3.0 1.4 18.4 7.9 7.7 6.09 2.61
configure.cpython no-host 27.3 27.3 27.5 27.4 27.4 1.01 1.00
configure.ocaml no-host 20.6 20.4 20.4 21.0 20.6 0.99 1.02
configure.tcc no-host 19.3 19.4 19.4 19.4 19.3 1.01 1.01
configure.util-linux no-host 30.1 30.0 30.3 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.4 24.4 0.99 1.00
hello-world no-host 2.8 1.4 18.2 6.3 6.0 6.62 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.2 6.3 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 826 1 2 2.6 7.9 153,746 12,267 2,887 8,743 78,327 66,676 3,008 3 50,000 0
configure.cpython no-host 15,628 1 64 14.9 27.4 1,771,747 49,125 28,512 85,415 908,079 778,253 25,733 60 50,000 0
configure.util-linux no-host 14,704 3 62 21.2 30.1 2,702,513 53,766 65,691 108,691 1,320,585 1,273,237 32,239 41 131,382 1
configure.ocaml no-host 3,887 1 2 2.6 21.0 150,080 11,112 5,207 7,508 71,612 70,960 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,586 30,586 0 1,518 14,782 14,286 271 0 50,000 0
configure.yash no-host 1,896 1 2 2.5 24.4 139,412 8,024 6,686 5,989 70,287 63,136 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,403 42,613 4,532 54,527 57,233 277 3 85,226 1
hello-world no-host 3 0 0 0.2 6.0 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 812 1 2 2.6 7.7 153,745 12,111 2,825 8,744 78,327 66,674 3,008 3 50,000 0
configure.cpython no-host 15,645 2 63 14.9 27.4 1,771,746 44,577 28,450 85,416 908,079 778,251 25,733 60 50,000 0
configure.util-linux no-host 14,717 3 62 21.2 30.3 2,702,513 53,693 65,629 108,693 1,320,585 1,273,235 32,239 41 131,258 1
configure.ocaml no-host 3,886 1 2 2.6 20.6 150,080 11,050 5,145 7,510 71,612 70,958 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,586 30,586 0 1,520 14,782 14,284 271 0 50,000 0
configure.yash no-host 1,872 1 2 2.5 24.4 139,412 7,962 6,624 5,991 70,287 63,134 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.3 116,291 64,341 42,551 4,533 54,527 57,231 277 3 85,102 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 20 12 8 4.3 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 460 422 41 22.3 osh-cpython
31 no-host abuild-print-help 22 21 2 9.0 osh-native
39 no-host abuild-print-help 21 15 6 8.3 osh-native-souffle
1 no-host bin-true 673 507 198 3.0 bash
9 no-host bin-true 548 409 145 1.4 dash
17 no-host bin-true 2,325 1,526 1,065 18.4 osh-cpython
25 no-host bin-true 826 588 252 7.9 osh-native
33 no-host bin-true 812 571 255 7.7 osh-native-souffle
2 no-host configure.cpython 15,327 9,255 6,478 27.3 bash
10 no-host configure.cpython 15,366 9,301 6,487 27.3 dash
18 no-host configure.cpython 29,375 18,018 13,252 27.5 osh-cpython
26 no-host configure.cpython 15,628 9,242 6,654 27.4 osh-native
34 no-host configure.cpython 15,645 9,179 6,598 27.4 osh-native-souffle
4 no-host configure.ocaml 3,859 1,650 1,234 20.6 bash
12 no-host configure.ocaml 3,788 1,614 1,192 20.4 dash
20 no-host configure.ocaml 4,739 2,361 1,591 20.4 osh-cpython
28 no-host configure.ocaml 3,887 1,722 1,206 21.0 osh-native
36 no-host configure.ocaml 3,886 1,603 1,316 20.6 osh-native-souffle
5 no-host configure.tcc 48 32 16 19.3 bash
13 no-host configure.tcc 41 27 15 19.4 dash
21 no-host configure.tcc 211 143 71 19.4 osh-cpython
29 no-host configure.tcc 50 29 22 19.4 osh-native
37 no-host configure.tcc 48 30 19 19.3 osh-native-souffle
3 no-host configure.util-linux 14,421 9,081 5,736 30.1 bash
11 no-host configure.util-linux 15,107 9,200 6,398 30.0 dash
19 no-host configure.util-linux 32,314 21,673 11,728 30.3 osh-cpython
27 no-host configure.util-linux 14,704 8,615 6,264 30.1 osh-native
35 no-host configure.util-linux 14,717 8,754 6,134 30.3 osh-native-souffle
6 no-host configure.yash 1,853 1,057 805 24.4 bash
14 no-host configure.yash 1,801 1,033 771 24.4 dash
22 no-host configure.yash 2,493 1,552 983 24.2 osh-cpython
30 no-host configure.yash 1,896 1,117 782 24.4 osh-native
38 no-host configure.yash 1,872 1,063 812 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 29 28 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 0 3 6.0 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,508 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,098 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,828 0 0 0 8 0 45 16 osh-cpython
31 no-host abuild-print-help 3,179 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,085 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 102,322 0 0 0 8 0 1,999 88 bash
9 no-host bin-true 66,423 0 0 0 8 0 1,982 45 dash
17 no-host bin-true 766,523 0 0 0 8 0 1,994 143 osh-cpython
25 no-host bin-true 126,288 0 0 0 16 0 1,993 116 osh-native
33 no-host bin-true 127,254 0 0 0 16 0 1,984 59 osh-native-souffle
2 no-host configure.cpython 2,220,938 0 0 0 32,928 0 14,480 971 bash
10 no-host configure.cpython 2,241,647 0 0 0 32,992 0 14,543 1,158 dash
18 no-host configure.cpython 6,227,863 0 0 0 27,512 0 13,264 1,187 osh-cpython
26 no-host configure.cpython 2,227,047 0 0 0 27,520 0 13,300 1,026 osh-native
34 no-host configure.cpython 2,210,025 0 0 0 27,520 0 13,300 956 osh-native-souffle
4 no-host configure.ocaml 409,853 0 0 0 5,120 0 1,949 163 bash
12 no-host configure.ocaml 390,912 0 0 0 5,112 0 1,870 147 dash
20 no-host configure.ocaml 647,152 0 0 0 5,112 0 1,863 177 osh-cpython
28 no-host configure.ocaml 413,011 0 0 0 5,120 0 1,919 148 osh-native
36 no-host configure.ocaml 412,909 0 0 0 5,120 0 1,930 175 osh-native-souffle
5 no-host configure.tcc 6,547 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,482 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,072 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,986 0 0 0 104 0 47 0 osh-native
37 no-host configure.tcc 6,917 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,105,097 0 0 0 42,408 0 18,556 985 bash
11 no-host configure.util-linux 2,263,737 0 0 0 42,592 0 17,466 1,032 dash
19 no-host configure.util-linux 5,366,409 10 0 0 39,112 0 16,955 1,160 osh-cpython
27 no-host configure.util-linux 1,996,958 0 0 0 39,120 0 16,982 903 osh-native
35 no-host configure.util-linux 1,990,863 1 0 0 39,136 0 16,964 882 osh-native-souffle
6 no-host configure.yash 256,691 0 0 0 4,120 0 873 74 bash
14 no-host configure.yash 245,087 0 0 0 3,720 0 866 77 dash
22 no-host configure.yash 388,343 0 0 0 3,728 0 849 91 osh-cpython
30 no-host configure.yash 257,805 0 0 0 3,736 0 850 71 osh-native
38 no-host configure.yash 257,177 0 0 0 3,736 0 850 63 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,934 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-6e8b6ea0
dash dash-0ebcf347
osh-cpython osh-c1bf90c8
osh-native osh-362f42c6
osh-native-souffle osh-22d94a54
host label host id
no-host no-host-556df3ee