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 473 23 21 24.46 1.18
bin-true no-host 691 549 2,297 811 817 3.32 1.17
configure.cpython no-host 15,148 15,253 29,391 15,576 15,617 1.94 1.03
configure.ocaml no-host 3,845 3,824 4,730 3,895 3,858 1.23 1.01
configure.tcc no-host 48 42 206 50 49 4.31 1.04
configure.util-linux no-host 14,218 15,199 32,158 14,781 14,646 2.26 1.04
configure.yash no-host 1,827 1,794 2,501 1,887 1,841 1.37 1.03
hello-world no-host 2 1 58 3 3 36.81 1.83

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,548 1,116 23,742 3,216 3,112 9.32 1.26
bin-true no-host 104,374 66,403 769,299 125,244 126,198 7.37 1.20
configure.cpython no-host 2,217,524 2,235,351 6,201,863 2,217,203 2,205,459 2.80 1.00
configure.ocaml no-host 410,866 391,127 645,473 413,180 411,856 1.57 1.01
configure.tcc no-host 6,550 5,489 24,053 6,961 6,900 3.67 1.06
configure.util-linux no-host 2,101,177 2,258,294 5,373,905 1,995,945 1,994,993 2.56 0.95
configure.yash no-host 255,858 244,040 388,041 257,824 257,917 1.52 1.01
hello-world no-host 154 83 3,939 340 338 25.58 2.21

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.8 9.3 8.7 5.28 2.15
bin-true no-host 2.9 1.4 18.4 8.3 7.7 6.37 2.86
configure.cpython no-host 27.3 27.5 27.4 27.3 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 20.6 1.00 0.99
configure.tcc no-host 19.4 19.3 19.1 19.4 19.3 0.99 1.00
configure.util-linux no-host 30.3 30.1 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.2 24.2 24.2 24.4 24.2 1.00 1.01
hello-world no-host 2.9 1.4 18.2 6.3 5.9 6.32 2.18

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 811 1 2 2.6 8.3 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,576 2 64 14.9 27.3 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,781 3 64 21.2 30.1 2,702,513 53,766 65,691 108,691 1,290,640 1,303,182 32,239 41 131,382 1
configure.ocaml no-host 3,895 1 2 2.6 20.4 150,080 11,112 5,207 7,508 70,969 71,603 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,641 14,427 271 0 50,000 0
configure.yash no-host 1,887 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 23 1 2 2.8 9.3 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 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 817 1 2 2.6 7.7 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,617 2 63 14.9 27.4 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,646 3 62 21.2 30.1 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,858 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,841 1 2 2.5 24.2 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.7 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 14 6 4.3 bash
15 no-host abuild-print-help 9 6 3 3.4 dash
23 no-host abuild-print-help 473 421 54 22.8 osh-cpython
31 no-host abuild-print-help 23 17 6 9.3 osh-native
39 no-host abuild-print-help 21 13 8 8.7 osh-native-souffle
1 no-host bin-true 691 505 216 2.9 bash
9 no-host bin-true 549 441 118 1.4 dash
17 no-host bin-true 2,297 1,470 1,084 18.4 osh-cpython
25 no-host bin-true 811 560 265 8.3 osh-native
33 no-host bin-true 817 589 243 7.7 osh-native-souffle
2 no-host configure.cpython 15,148 9,157 6,388 27.3 bash
10 no-host configure.cpython 15,253 9,252 6,409 27.5 dash
18 no-host configure.cpython 29,391 17,912 13,359 27.4 osh-cpython
26 no-host configure.cpython 15,576 9,276 6,541 27.3 osh-native
34 no-host configure.cpython 15,617 9,232 6,513 27.4 osh-native-souffle
4 no-host configure.ocaml 3,845 1,634 1,249 20.6 bash
12 no-host configure.ocaml 3,824 1,690 1,154 20.6 dash
20 no-host configure.ocaml 4,730 2,220 1,722 20.6 osh-cpython
28 no-host configure.ocaml 3,895 1,664 1,269 20.4 osh-native
36 no-host configure.ocaml 3,858 1,623 1,271 20.6 osh-native-souffle
5 no-host configure.tcc 48 30 19 19.4 bash
13 no-host configure.tcc 42 24 19 19.3 dash
21 no-host configure.tcc 206 140 69 19.1 osh-cpython
29 no-host configure.tcc 50 30 20 19.4 osh-native
37 no-host configure.tcc 49 23 27 19.3 osh-native-souffle
3 no-host configure.util-linux 14,218 8,897 5,800 30.3 bash
11 no-host configure.util-linux 15,199 9,221 6,465 30.1 dash
19 no-host configure.util-linux 32,158 21,322 11,942 30.1 osh-cpython
27 no-host configure.util-linux 14,781 8,821 6,154 30.1 osh-native
35 no-host configure.util-linux 14,646 8,817 6,024 30.1 osh-native-souffle
6 no-host configure.yash 1,827 1,113 723 24.2 bash
14 no-host configure.yash 1,794 1,035 763 24.2 dash
22 no-host configure.yash 2,501 1,521 1,022 24.2 osh-cpython
30 no-host configure.yash 1,887 1,021 871 24.4 osh-native
38 no-host configure.yash 1,841 1,033 811 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 58 45 12 18.2 osh-cpython
24 no-host hello-world 3 0 3 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,548 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,116 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,742 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,216 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,112 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,374 0 0 0 8 0 1,988 151 bash
9 no-host bin-true 66,403 0 0 0 8 0 1,987 89 dash
17 no-host bin-true 769,299 0 0 0 8 0 1,999 106 osh-cpython
25 no-host bin-true 125,244 0 0 0 16 0 1,991 77 osh-native
33 no-host bin-true 126,198 0 0 0 16 0 1,992 88 osh-native-souffle
2 no-host configure.cpython 2,217,524 1 0 0 32,928 0 14,551 1,091 bash
10 no-host configure.cpython 2,235,351 1 0 0 32,992 0 14,575 1,011 dash
18 no-host configure.cpython 6,201,863 2 0 0 27,512 0 13,179 1,230 osh-cpython
26 no-host configure.cpython 2,217,203 0 0 0 27,520 0 13,200 1,039 osh-native
34 no-host configure.cpython 2,205,459 0 0 0 27,520 0 13,263 903 osh-native-souffle
4 no-host configure.ocaml 410,866 0 0 0 5,120 0 1,950 138 bash
12 no-host configure.ocaml 391,127 0 0 0 5,112 0 1,894 142 dash
20 no-host configure.ocaml 645,473 0 0 0 5,112 0 1,853 166 osh-cpython
28 no-host configure.ocaml 413,180 0 0 0 5,120 0 1,928 167 osh-native
36 no-host configure.ocaml 411,856 0 0 0 5,120 0 1,927 193 osh-native-souffle
5 no-host configure.tcc 6,550 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,489 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,053 0 0 0 96 0 54 13 osh-cpython
29 no-host configure.tcc 6,961 0 0 0 104 0 46 2 osh-native
37 no-host configure.tcc 6,900 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,101,177 3 0 0 42,400 0 18,565 1,033 bash
11 no-host configure.util-linux 2,258,294 1 0 0 42,584 0 17,473 1,010 dash
19 no-host configure.util-linux 5,373,905 9 0 0 39,112 0 17,007 1,216 osh-cpython
27 no-host configure.util-linux 1,995,945 1 0 0 39,120 0 16,995 925 osh-native
35 no-host configure.util-linux 1,994,993 0 0 0 39,136 0 16,992 960 osh-native-souffle
6 no-host configure.yash 255,858 0 0 0 4,120 0 872 73 bash
14 no-host configure.yash 244,040 0 0 0 3,720 0 869 79 dash
22 no-host configure.yash 388,041 0 0 0 3,728 0 850 98 osh-cpython
30 no-host configure.yash 257,824 0 0 0 3,736 0 851 66 osh-native
38 no-host configure.yash 257,917 0 0 0 3,736 0 848 86 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 2 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,939 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 340 0 0 0 16 0 1 0 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-7fc13a99
dash dash-0ebcf347
osh-cpython osh-f2ddc32f
osh-native osh-af3f4833
osh-native-souffle osh-fed5d8a1
host label host id
no-host no-host-556df3ee