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 | 35 | 3 | 9 | 12.0 | 18.2 | 476,762 | 1,282 | 6 | 406,610 | 5 | 203,305 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.6 | 476,762 | 1,282 | 6 | 406,326 | 5 | 203,163 | osh-native-souffle |
parse.configure-coreutils | 155 | 24 | 69 | 44.5 | 49.8 | 1,653,350 | 4,764 | 12 | 1,025,532 | 6 | 764,309 | osh-native |
parse.configure-coreutils | 143 | 25 | 66 | 44.5 | 49.5 | 1,653,349 | 4,764 | 12 | 1,025,522 | 6 | 764,304 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,953 | 180 | 2 | 75,036 | 1 | 37,518 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.1 | 101,953 | 180 | 2 | 75,026 | 1 | 37,513 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.2 | 8.0 | 579,717 | 22,608 | 12 | 50,000 | 0 | 2,922 | osh-native |
ex.compute-fib | 21 | 0 | 1 | 2.2 | 7.6 | 579,717 | 22,608 | 12 | 50,000 | 0 | 2,917 | osh-native-souffle |
ex.bashcomp-parse-help | 185 | 0 | 4 | 11.1 | 8.8 | 1,021,032 | 15,258 | 22 | 50,000 | 0 | 3,911 | osh-native |
ex.bashcomp-parse-help | 176 | 0 | 4 | 11.1 | 8.5 | 1,021,031 | 15,258 | 22 | 50,000 | 0 | 3,916 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.2 | 116,336 | 277 | 3 | 85,254 | 1 | 42,627 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 116,336 | 277 | 3 | 85,244 | 1 | 42,622 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 22 | 1 | 3.1 | bash | - |
100 | 52 | 55 | 3.4 | zsh | - |
16 | 12 | 4 | 28.0 | bumpleak/osh | mut |
19 | 17 | 2 | 29.7 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 28.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 18 | 12 | 25.2 | osh-native | mut+alloc |
31 | 25 | 6 | 25.7 | osh-native | mut+alloc+free |
35 | 25 | 10 | 18.2 | osh-native | mut+alloc+free+gc |
36 | 29 | 7 | 18.0 | osh-native | mut+alloc+free+gc+exit |
42 | 30 | 12 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
52 | 42 | 11 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 12 | 24.8 | osh-native-souffle | mut+alloc |
28 | 20 | 9 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 22 | 10 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 24 | 9 | 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 |
21 | 20 | 1 | 1.6 | dash | - |
78 | 76 | 2 | 3.3 | bash | - |
365 | 200 | 186 | 3.4 | zsh | - |
51 | 42 | 9 | 85.0 | bumpleak/osh | mut |
59 | 47 | 12 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
71 | 57 | 14 | 86.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 62 | 34 | 73.5 | osh-native | mut+alloc |
103 | 70 | 33 | 75.4 | osh-native | mut+alloc+free |
155 | 139 | 16 | 49.8 | osh-native | mut+alloc+free+gc |
164 | 139 | 25 | 50.3 | osh-native | mut+alloc+free+gc+exit |
141 | 89 | 52 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
229 | 206 | 23 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 49 | 38 | 73.1 | osh-native-souffle | mut+alloc |
96 | 64 | 32 | 75.1 | osh-native-souffle | mut+alloc+free |
143 | 124 | 19 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
144 | 122 | 22 | 50.1 | 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 | 1 | 1 | 1.4 | dash | - |
6 | 5 | 1 | 2.9 | bash | - |
7 | 5 | 2 | 3.3 | zsh | - |
6 | 4 | 2 | 11.6 | bumpleak/osh | mut |
7 | 4 | 3 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 3 | 10.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 2 | 6 | 10.0 | osh-native | mut+alloc |
9 | 5 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 7 | 2 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 7 | 2 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 7 | 5 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 3 | 5 | 9.7 | osh-native-souffle | mut+alloc |
8 | 5 | 3 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 6 | 3 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
9 | 8 | 1 | 8.1 | 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 | - |
28 | 26 | 2 | 3.0 | bash | - |
23 | 15 | 8 | 3.4 | zsh | - |
19 | 15 | 4 | 32.6 | bumpleak/osh | mut |
26 | 23 | 3 | 32.3 | _bin/cxx-opt+bumproot/osh | mut |
28 | 22 | 6 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 20 | 16 | 26.5 | osh-native | mut+alloc |
37 | 24 | 14 | 26.6 | osh-native | mut+alloc+free |
28 | 26 | 2 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 24 | 5 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 42 | 12 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 32 | 5 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 15 | 14 | 25.8 | osh-native-souffle | mut+alloc |
31 | 21 | 10 | 26.2 | osh-native-souffle | mut+alloc+free |
21 | 18 | 3 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 22 | 0 | 7.5 | 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 | 71 | 2 | 3.0 | bash | - |
165 | 113 | 52 | 56.0 | bumpleak/osh | mut |
180 | 127 | 53 | 57.1 | _bin/cxx-opt+bumproot/osh | mut |
198 | 136 | 62 | 57.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
242 | 169 | 73 | 49.0 | osh-native | mut+alloc |
222 | 147 | 75 | 50.8 | osh-native | mut+alloc+free |
185 | 135 | 50 | 8.8 | osh-native | mut+alloc+free+gc |
183 | 136 | 47 | 8.8 | osh-native | mut+alloc+free+gc+exit |
236 | 161 | 74 | 64.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
216 | 156 | 60 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 113 | 91 | 48.6 | osh-native-souffle | mut+alloc |
213 | 133 | 80 | 50.3 | osh-native-souffle | mut+alloc+free |
176 | 122 | 54 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
175 | 111 | 63 | 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 | 4 | 6 | 3.4 | dash | - |
19 | 10 | 10 | 4.3 | bash | - |
17 | 7 | 11 | 3.4 | zsh | - |
18 | 7 | 12 | 13.1 | bumpleak/osh | mut |
21 | 9 | 12 | 13.5 | _bin/cxx-opt+bumproot/osh | mut |
19 | 7 | 13 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 8 | 14 | 11.0 | osh-native | mut+alloc |
22 | 12 | 10 | 11.0 | osh-native | mut+alloc+free |
22 | 8 | 14 | 9.2 | osh-native | mut+alloc+free+gc |
22 | 8 | 14 | 9.3 | osh-native | mut+alloc+free+gc+exit |
24 | 14 | 11 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 15 | 10 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 7 | 14 | 10.6 | osh-native-souffle | mut+alloc |
21 | 9 | 13 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 11 | 11 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 10 | 12 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |