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 458 22 21 23.86 1.15
bin-true no-host 664 540 2,254 801 809 3.39 1.21
configure.cpython no-host 14,875 14,900 28,458 14,979 15,152 1.91 1.01
configure.ocaml no-host 3,763 3,703 4,614 3,777 3,788 1.23 1.00
configure.tcc no-host 49 41 208 48 49 4.27 1.00
configure.util-linux no-host 13,880 14,696 30,982 14,196 14,164 2.23 1.02
configure.yash no-host 1,797 1,744 2,438 1,804 1,805 1.36 1.00
hello-world no-host 1 1 56 3 3 39.05 1.96

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,574 1,108 23,742 3,174 3,060 9.22 1.23
bin-true no-host 107,393 66,468 774,064 125,300 126,334 7.21 1.17
configure.cpython no-host 2,219,400 2,246,068 6,239,883 2,216,420 2,199,400 2.81 1.00
configure.ocaml no-host 410,417 390,874 647,251 413,007 413,025 1.58 1.01
configure.tcc no-host 6,554 5,465 24,021 6,952 6,914 3.67 1.06
configure.util-linux no-host 2,104,614 2,260,995 5,379,037 1,998,416 1,997,031 2.56 0.95
configure.yash no-host 256,093 244,029 387,573 257,310 257,513 1.51 1.00
hello-world no-host 150 80 3,943 347 336 26.29 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.5 3.4 22.6 9.0 8.5 5.06 2.03
bin-true no-host 2.9 1.4 18.4 8.0 7.6 6.37 2.77
configure.cpython no-host 27.3 27.5 27.5 27.4 27.3 1.01 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.4 19.3 19.3 1.01 1.00
configure.util-linux no-host 30.1 30.0 30.1 30.3 30.0 1.00 1.00
configure.yash no-host 24.4 24.5 25.2 24.4 24.4 1.04 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 801 1 2 2.6 8.0 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 14,979 1 59 14.9 27.4 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,196 3 59 21.2 30.3 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,777 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,804 1 2 2.5 24.4 139,412 8,024 6,686 5,989 67,942 65,481 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,436 57,324 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 809 1 2 2.6 7.6 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,152 1 58 14.9 27.3 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,164 3 58 21.2 30.0 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,788 1 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,805 1 2 2.5 24.4 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,291 64,341 42,551 4,533 54,436 57,322 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 19 13 6 4.5 bash
15 no-host abuild-print-help 9 7 3 3.4 dash
23 no-host abuild-print-help 458 411 51 22.6 osh-cpython
31 no-host abuild-print-help 22 20 3 9.0 osh-native
39 no-host abuild-print-help 21 16 5 8.5 osh-native-souffle
1 no-host bin-true 664 497 199 2.9 bash
9 no-host bin-true 540 420 129 1.4 dash
17 no-host bin-true 2,254 1,525 981 18.4 osh-cpython
25 no-host bin-true 801 560 255 8.0 osh-native
33 no-host bin-true 809 583 242 7.6 osh-native-souffle
2 no-host configure.cpython 14,875 9,029 6,243 27.3 bash
10 no-host configure.cpython 14,900 9,018 6,300 27.5 dash
18 no-host configure.cpython 28,458 17,152 13,137 27.5 osh-cpython
26 no-host configure.cpython 14,979 8,934 6,307 27.4 osh-native
34 no-host configure.cpython 15,152 8,865 6,372 27.3 osh-native-souffle
4 no-host configure.ocaml 3,763 1,577 1,226 20.6 bash
12 no-host configure.ocaml 3,703 1,552 1,170 20.6 dash
20 no-host configure.ocaml 4,614 2,301 1,526 20.6 osh-cpython
28 no-host configure.ocaml 3,777 1,625 1,190 20.6 osh-native
36 no-host configure.ocaml 3,788 1,580 1,243 20.6 osh-native-souffle
5 no-host configure.tcc 49 26 22 19.3 bash
13 no-host configure.tcc 41 29 13 19.4 dash
21 no-host configure.tcc 208 142 69 19.4 osh-cpython
29 no-host configure.tcc 48 25 24 19.3 osh-native
37 no-host configure.tcc 49 24 25 19.3 osh-native-souffle
3 no-host configure.util-linux 13,880 8,738 5,622 30.1 bash
11 no-host configure.util-linux 14,696 8,938 6,238 30.0 dash
19 no-host configure.util-linux 30,982 20,869 11,172 30.1 osh-cpython
27 no-host configure.util-linux 14,196 8,597 5,798 30.3 osh-native
35 no-host configure.util-linux 14,164 8,691 5,674 30.0 osh-native-souffle
6 no-host configure.yash 1,797 1,111 695 24.4 bash
14 no-host configure.yash 1,744 989 758 24.5 dash
22 no-host configure.yash 2,438 1,527 952 25.2 osh-cpython
30 no-host configure.yash 1,804 1,047 761 24.4 osh-native
38 no-host configure.yash 1,805 977 832 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 24 31 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 3 0 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,574 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,108 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,742 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,174 0 0 0 16 0 38 1 osh-native
39 no-host abuild-print-help 3,060 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 107,393 0 0 0 8 0 1,992 93 bash
9 no-host bin-true 66,468 0 0 0 8 0 1,987 101 dash
17 no-host bin-true 774,064 0 0 0 8 0 1,993 107 osh-cpython
25 no-host bin-true 125,300 0 0 0 16 0 1,989 65 osh-native
33 no-host bin-true 126,334 0 0 0 16 0 1,990 80 osh-native-souffle
2 no-host configure.cpython 2,219,400 0 0 0 32,928 0 14,498 1,154 bash
10 no-host configure.cpython 2,246,068 0 0 0 32,992 0 14,606 1,195 dash
18 no-host configure.cpython 6,239,883 0 0 0 27,512 0 13,200 1,088 osh-cpython
26 no-host configure.cpython 2,216,420 0 0 0 27,520 0 13,122 907 osh-native
34 no-host configure.cpython 2,199,400 0 0 0 27,520 0 13,212 989 osh-native-souffle
4 no-host configure.ocaml 410,417 0 0 0 5,120 0 1,944 152 bash
12 no-host configure.ocaml 390,874 0 0 0 5,112 0 1,875 155 dash
20 no-host configure.ocaml 647,251 0 0 0 5,112 0 1,862 209 osh-cpython
28 no-host configure.ocaml 413,007 0 0 0 5,120 0 1,927 193 osh-native
36 no-host configure.ocaml 413,025 0 0 0 5,120 0 1,927 163 osh-native-souffle
5 no-host configure.tcc 6,554 0 0 0 104 0 51 4 bash
13 no-host configure.tcc 5,465 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 24,021 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,952 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,914 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,104,614 0 0 0 42,400 0 18,537 1,272 bash
11 no-host configure.util-linux 2,260,995 0 0 0 42,584 0 17,422 1,009 dash
19 no-host configure.util-linux 5,379,037 9 0 0 39,112 0 16,977 1,221 osh-cpython
27 no-host configure.util-linux 1,998,416 0 0 0 39,120 0 16,985 988 osh-native
35 no-host configure.util-linux 1,997,031 0 0 0 39,128 0 16,952 1,020 osh-native-souffle
6 no-host configure.yash 256,093 0 0 0 4,120 0 870 74 bash
14 no-host configure.yash 244,029 0 0 0 3,720 0 867 79 dash
22 no-host configure.yash 387,573 0 0 0 3,728 0 855 157 osh-cpython
30 no-host configure.yash 257,310 0 0 0 3,736 0 850 87 osh-native
38 no-host configure.yash 257,513 0 0 0 3,736 0 851 63 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,943 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 347 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-cbbafabb
dash dash-0ebcf347
osh-cpython osh-f156e207
osh-native osh-87d37bc6
osh-native-souffle osh-1fb58544
host label host id
no-host no-host-556df3ee