Source code: oil/benchmarks/gc.sh
task | elapsed ms | max gc millis | total gc millis | allocated MB | max rss MB | num allocated | num gc points | num gc done | gc threshold | num growths | max survived | shell label |
parse.configure-cpython | 36 | 3 | 9 | 12.0 | 18.0 | 476,755 | 1,282 | 6 | 406,612 | 5 | 203,306 | osh-native |
parse.configure-cpython | 33 | 3 | 10 | 12.0 | 17.4 | 476,755 | 1,282 | 6 | 406,208 | 5 | 203,104 | osh-native-souffle |
parse.configure-coreutils | 158 | 25 | 72 | 44.5 | 49.7 | 1,653,343 | 4,764 | 12 | 1,025,534 | 6 | 764,310 | osh-native |
parse.configure-coreutils | 141 | 24 | 65 | 44.5 | 49.4 | 1,653,342 | 4,764 | 12 | 1,025,404 | 6 | 764,245 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,946 | 180 | 2 | 75,038 | 1 | 37,519 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 7.9 | 101,946 | 180 | 3 | 87,100 | 1 | 43,550 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.1 | 8.0 | 579,610 | 22,608 | 12 | 50,000 | 0 | 2,923 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.1 | 7.6 | 579,610 | 22,608 | 12 | 50,000 | 0 | 2,862 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 3 | 10.3 | 8.7 | 995,292 | 15,258 | 21 | 50,000 | 0 | 3,905 | osh-native |
ex.bashcomp-parse-help | 178 | 0 | 4 | 10.3 | 8.1 | 995,291 | 15,258 | 21 | 50,000 | 0 | 3,848 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,322 | 277 | 3 | 85,256 | 1 | 42,628 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.4 | 116,322 | 277 | 3 | 85,132 | 1 | 42,566 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
24 | 23 | 0 | 3.0 | bash | - |
106 | 77 | 35 | 3.4 | zsh | - |
17 | 17 | 0 | 29.9 | bumpleak/osh | mut |
20 | 12 | 8 | 28.9 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 30.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 17 | 12 | 25.3 | osh-native | mut+alloc |
31 | 19 | 12 | 25.7 | osh-native | mut+alloc+free |
36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 35 | 0 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 27 | 15 | 32.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 31 | 16 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 11 | 15 | 24.8 | osh-native-souffle | mut+alloc |
28 | 24 | 4 | 25.4 | osh-native-souffle | mut+alloc+free |
33 | 33 | 0 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
34 | 29 | 4 | 17.6 | osh-native-souffle | mut+alloc+free+gc+exit |
Parsing the autoconf-generated configure
script from GNU coreutils.
Note that unlike other shells, osh -n
retains all nodes on purpose. (See the
parser benchmark).
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
22 | 22 | 0 | 1.6 | dash | - |
78 | 78 | 0 | 3.3 | bash | - |
380 | 238 | 163 | 3.5 | zsh | - |
48 | 36 | 12 | 85.7 | bumpleak/osh | mut |
59 | 35 | 24 | 85.8 | _bin/cxx-opt+bumproot/osh | mut |
70 | 54 | 16 | 85.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 64 | 32 | 73.6 | osh-native | mut+alloc |
106 | 74 | 31 | 75.4 | osh-native | mut+alloc+free |
158 | 137 | 20 | 49.7 | osh-native | mut+alloc+free+gc |
167 | 155 | 12 | 50.5 | osh-native | mut+alloc+free+gc+exit |
136 | 92 | 44 | 99.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
214 | 186 | 28 | 66.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 55 | 31 | 73.3 | osh-native-souffle | mut+alloc |
95 | 62 | 33 | 75.0 | osh-native-souffle | mut+alloc+free |
141 | 112 | 28 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
149 | 121 | 28 | 49.9 | osh-native-souffle | mut+alloc+free+gc+exit |
Parsing abuild
from Alpine Linux.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
2 | 0 | 2 | 1.4 | dash | - |
6 | 6 | 0 | 2.9 | bash | - |
8 | 0 | 8 | 3.3 | zsh | - |
6 | 0 | 6 | 11.5 | bumpleak/osh | mut |
7 | 3 | 3 | 11.5 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 10.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 3 | 6 | 10.1 | osh-native | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 0 | 9 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
11 | 8 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 11 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.6 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 5 | 5 | 7.9 | osh-native-souffle | mut+alloc+free+gc |
9 | 9 | 0 | 8.0 | osh-native-souffle | mut+alloc+free+gc+exit |
A synthetic benchmark for POSIX shell arithmetic.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
10 | 10 | 0 | 1.4 | dash | - |
29 | 28 | 0 | 2.9 | bash | - |
23 | 15 | 8 | 3.3 | zsh | - |
18 | 13 | 4 | 31.2 | bumpleak/osh | mut |
27 | 26 | 0 | 32.7 | _bin/cxx-opt+bumproot/osh | mut |
28 | 27 | 0 | 31.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.3 | osh-native | mut+alloc |
37 | 22 | 15 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 23 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 42 | 12 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 13 | 17 | 26.1 | osh-native-souffle | mut+alloc |
31 | 23 | 8 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 21 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 22 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc+exit |
A realistic bash-completion
workload.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
73 | 69 | 4 | 3.3 | bash | - |
168 | 100 | 68 | 54.9 | bumpleak/osh | mut |
183 | 131 | 52 | 56.6 | _bin/cxx-opt+bumproot/osh | mut |
196 | 135 | 60 | 57.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 123 | 87 | 47.4 | osh-native | mut+alloc |
218 | 138 | 79 | 49.1 | osh-native | mut+alloc+free |
182 | 122 | 61 | 8.7 | osh-native | mut+alloc+free+gc |
183 | 130 | 53 | 8.9 | osh-native | mut+alloc+free+gc+exit |
234 | 158 | 75 | 64.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 167 | 44 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 146 | 59 | 47.0 | osh-native-souffle | mut+alloc |
210 | 154 | 55 | 48.4 | osh-native-souffle | mut+alloc+free |
178 | 102 | 75 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
176 | 144 | 32 | 8.3 | osh-native-souffle | mut+alloc+free+gc+exit |
Running abuild -h
from Alpine Linux.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
10 | 4 | 5 | 3.4 | dash | - |
20 | 18 | 3 | 4.5 | bash | - |
18 | 13 | 5 | 3.5 | zsh | - |
20 | 10 | 10 | 12.8 | bumpleak/osh | mut |
21 | 15 | 6 | 13.2 | _bin/cxx-opt+bumproot/osh | mut |
22 | 20 | 3 | 13.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 15 | 7 | 11.0 | osh-native | mut+alloc |
23 | 12 | 11 | 11.0 | osh-native | mut+alloc+free |
22 | 13 | 10 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 22 | 1 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 15 | 10 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 14 | 11 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 13 | 7 | 10.5 | osh-native-souffle | mut+alloc |
21 | 15 | 6 | 10.9 | osh-native-souffle | mut+alloc+free |
21 | 16 | 6 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
22 | 17 | 6 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |