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 | 37 | 4 | 10 | 12.0 | 18.0 | 476,751 | 1,282 | 6 | 406,604 | 5 | 203,302 | osh-native |
parse.configure-cpython | 35 | 5 | 11 | 12.0 | 17.6 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 186 | 28 | 91 | 44.5 | 49.7 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 165 | 28 | 87 | 44.5 | 49.4 | 1,653,338 | 4,764 | 12 | 1,025,396 | 6 | 764,241 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,942 | 180 | 2 | 75,030 | 1 | 37,515 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 8.0 | 101,942 | 180 | 3 | 87,092 | 1 | 43,546 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 1 | 2.1 | 8.0 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,919 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.1 | 7.7 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,858 | osh-native-souffle |
ex.bashcomp-parse-help | 186 | 0 | 4 | 10.8 | 8.9 | 1,006,005 | 15,258 | 21 | 50,000 | 0 | 3,919 | osh-native |
ex.bashcomp-parse-help | 179 | 0 | 4 | 10.8 | 8.3 | 1,006,004 | 15,258 | 21 | 50,000 | 0 | 3,842 | osh-native-souffle |
ex.abuild-print-help | 24 | 1 | 2 | 2.8 | 9.0 | 116,318 | 277 | 3 | 85,248 | 1 | 42,624 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.4 | 116,318 | 277 | 3 | 85,124 | 1 | 42,562 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 3 | 3 | 1.6 | dash | - |
24 | 20 | 4 | 3.0 | bash | - |
106 | 63 | 49 | 3.4 | zsh | - |
16 | 3 | 13 | 29.0 | bumpleak/osh | mut |
20 | 16 | 4 | 29.7 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 28.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 19 | 11 | 25.3 | osh-native | mut+alloc |
33 | 20 | 12 | 25.8 | osh-native | mut+alloc+free |
37 | 29 | 7 | 18.0 | osh-native | mut+alloc+free+gc |
38 | 30 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 32 | 12 | 32.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
55 | 39 | 16 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 18 | 9 | 24.8 | osh-native-souffle | mut+alloc |
29 | 28 | 0 | 25.2 | osh-native-souffle | mut+alloc+free |
35 | 27 | 8 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
36 | 24 | 12 | 17.8 | 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 | 21 | 0 | 1.6 | dash | - |
77 | 77 | 0 | 3.0 | bash | - |
382 | 206 | 197 | 3.5 | zsh | - |
51 | 31 | 19 | 84.9 | bumpleak/osh | mut |
60 | 48 | 12 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
72 | 67 | 4 | 86.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 69 | 28 | 73.5 | osh-native | mut+alloc |
106 | 75 | 31 | 75.2 | osh-native | mut+alloc+free |
186 | 161 | 24 | 49.7 | osh-native | mut+alloc+free+gc |
175 | 151 | 24 | 50.2 | osh-native | mut+alloc+free+gc+exit |
142 | 99 | 43 | 98.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
254 | 230 | 24 | 66.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
89 | 56 | 32 | 73.1 | osh-native-souffle | mut+alloc |
97 | 60 | 36 | 75.0 | osh-native-souffle | mut+alloc+free |
165 | 153 | 12 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
162 | 138 | 24 | 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 | 2 | 0 | 1.4 | dash | - |
6 | 3 | 3 | 2.9 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
7 | 0 | 6 | 11.0 | bumpleak/osh | mut |
7 | 4 | 4 | 11.8 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc |
10 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 0 | 8 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 6 | 3 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 3 | 6 | 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 |
11 | 11 | 0 | 1.6 | dash | - |
29 | 24 | 4 | 3.0 | bash | - |
24 | 20 | 4 | 3.4 | zsh | - |
18 | 11 | 7 | 31.3 | bumpleak/osh | mut |
26 | 26 | 0 | 31.5 | _bin/cxx-opt+bumproot/osh | mut |
29 | 29 | 0 | 33.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
38 | 29 | 8 | 26.3 | osh-native | mut+alloc |
39 | 27 | 12 | 26.6 | osh-native | mut+alloc+free |
29 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 25 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 39 | 16 | 36.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 23 | 8 | 25.8 | osh-native-souffle | mut+alloc |
32 | 20 | 12 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 22 | 0 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
23 | 22 | 0 | 7.7 | 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 | 65 | 8 | 3.1 | bash | - |
170 | 111 | 59 | 55.2 | bumpleak/osh | mut |
183 | 131 | 52 | 57.1 | _bin/cxx-opt+bumproot/osh | mut |
197 | 107 | 91 | 57.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 141 | 72 | 48.2 | osh-native | mut+alloc |
222 | 121 | 101 | 49.9 | osh-native | mut+alloc+free |
186 | 135 | 51 | 8.9 | osh-native | mut+alloc+free+gc |
187 | 101 | 85 | 8.8 | osh-native | mut+alloc+free+gc+exit |
238 | 157 | 81 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
225 | 158 | 67 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
208 | 160 | 48 | 47.6 | osh-native-souffle | mut+alloc |
217 | 152 | 64 | 49.4 | osh-native-souffle | mut+alloc+free |
179 | 127 | 52 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
179 | 107 | 71 | 8.4 | 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 | 8 | 2 | 3.5 | dash | - |
20 | 7 | 14 | 4.5 | bash | - |
18 | 12 | 7 | 3.4 | zsh | - |
20 | 11 | 9 | 12.1 | bumpleak/osh | mut |
20 | 17 | 3 | 12.6 | _bin/cxx-opt+bumproot/osh | mut |
21 | 18 | 3 | 13.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 16 | 7 | 11.1 | osh-native | mut+alloc |
23 | 10 | 13 | 11.3 | osh-native | mut+alloc+free |
24 | 11 | 14 | 9.0 | osh-native | mut+alloc+free+gc |
24 | 15 | 9 | 9.2 | osh-native | mut+alloc+free+gc+exit |
25 | 14 | 11 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 15 | 12 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 16 | 5 | 10.6 | osh-native-souffle | mut+alloc |
22 | 11 | 11 | 10.6 | osh-native-souffle | mut+alloc+free |
22 | 20 | 3 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
23 | 16 | 7 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |