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 | 4 | 10 | 12.0 | 17.7 | 476,751 | 1,282 | 6 | 406,604 | 5 | 203,302 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.6 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 152 | 24 | 66 | 44.5 | 49.8 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 147 | 24 | 69 | 44.5 | 49.5 | 1,653,338 | 4,764 | 12 | 1,025,396 | 6 | 764,241 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.7 | 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 | 7.9 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,919 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.1 | 7.6 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,858 | osh-native-souffle |
ex.bashcomp-parse-help | 185 | 0 | 4 | 10.8 | 8.8 | 1,006,008 | 15,258 | 21 | 50,000 | 0 | 3,919 | osh-native |
ex.bashcomp-parse-help | 176 | 0 | 4 | 10.8 | 8.5 | 1,006,007 | 15,258 | 21 | 50,000 | 0 | 3,842 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,318 | 277 | 3 | 85,248 | 1 | 42,624 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 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 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
105 | 56 | 55 | 3.3 | zsh | - |
16 | 12 | 4 | 29.8 | bumpleak/osh | mut |
20 | 16 | 4 | 28.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 13 | 17 | 25.2 | osh-native | mut+alloc |
32 | 28 | 4 | 25.8 | osh-native | mut+alloc+free |
36 | 36 | 0 | 17.7 | osh-native | mut+alloc+free+gc |
38 | 33 | 4 | 18.2 | osh-native | mut+alloc+free+gc+exit |
44 | 36 | 8 | 32.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 36 | 12 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 11 | 15 | 24.9 | osh-native-souffle | mut+alloc |
29 | 16 | 12 | 25.2 | osh-native-souffle | mut+alloc+free |
32 | 24 | 8 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 33 | 0 | 17.7 | 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 | 18 | 4 | 1.6 | dash | - |
78 | 78 | 0 | 3.3 | bash | - |
381 | 199 | 203 | 3.5 | zsh | - |
49 | 44 | 4 | 85.2 | bumpleak/osh | mut |
61 | 60 | 0 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
70 | 62 | 8 | 86.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
115 | 83 | 32 | 73.7 | osh-native | mut+alloc |
108 | 76 | 32 | 75.4 | osh-native | mut+alloc+free |
152 | 120 | 32 | 49.8 | osh-native | mut+alloc+free+gc |
153 | 137 | 16 | 50.3 | osh-native | mut+alloc+free+gc+exit |
140 | 96 | 44 | 97.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
234 | 174 | 59 | 68.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
89 | 60 | 28 | 73.1 | osh-native-souffle | mut+alloc |
96 | 60 | 36 | 75.1 | osh-native-souffle | mut+alloc+free |
147 | 107 | 40 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
146 | 118 | 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 | 2 | 0 | 1.3 | dash | - |
6 | 6 | 0 | 3.0 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
5 | 5 | 0 | 11.7 | bumpleak/osh | mut |
6 | 6 | 0 | 10.8 | _bin/cxx-opt+bumproot/osh | mut |
7 | 0 | 7 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native | mut+alloc |
9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 3 | 6 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 4 | 4 | 7.9 | 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.6 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
19 | 19 | 0 | 31.2 | bumpleak/osh | mut |
27 | 19 | 8 | 33.0 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 24 | 12 | 26.3 | osh-native | mut+alloc |
40 | 32 | 8 | 26.5 | osh-native | mut+alloc+free |
29 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
29 | 29 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 31 | 23 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 34 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 19 | 11 | 25.8 | osh-native-souffle | mut+alloc |
32 | 20 | 12 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 22 | 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 | 68 | 4 | 3.0 | bash | - |
170 | 109 | 61 | 56.8 | bumpleak/osh | mut |
183 | 134 | 49 | 55.6 | _bin/cxx-opt+bumproot/osh | mut |
198 | 135 | 63 | 57.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 125 | 89 | 48.3 | osh-native | mut+alloc |
225 | 145 | 80 | 50.0 | osh-native | mut+alloc+free |
185 | 140 | 44 | 8.8 | osh-native | mut+alloc+free+gc |
185 | 124 | 60 | 8.9 | osh-native | mut+alloc+free+gc+exit |
237 | 161 | 76 | 65.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
214 | 173 | 40 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
208 | 128 | 80 | 47.7 | osh-native-souffle | mut+alloc |
213 | 148 | 64 | 49.6 | osh-native-souffle | mut+alloc+free |
176 | 108 | 68 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
178 | 121 | 56 | 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 | 8 | 2 | 3.5 | dash | - |
20 | 14 | 6 | 4.5 | bash | - |
18 | 13 | 6 | 3.4 | zsh | - |
19 | 18 | 2 | 12.2 | bumpleak/osh | mut |
20 | 15 | 6 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
20 | 6 | 15 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 15 | 7 | 10.9 | osh-native | mut+alloc |
23 | 11 | 12 | 11.3 | osh-native | mut+alloc+free |
22 | 12 | 10 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 18 | 5 | 9.0 | osh-native | mut+alloc+free+gc+exit |
26 | 13 | 13 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 18 | 8 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 20 | 1 | 10.6 | osh-native-souffle | mut+alloc |
22 | 17 | 5 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 19 | 3 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 11 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |