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.0 | 476,767 | 1,282 | 6 | 406,620 | 5 | 203,310 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.6 | 476,767 | 1,282 | 6 | 406,610 | 5 | 203,305 | osh-native-souffle |
parse.configure-coreutils | 150 | 24 | 62 | 44.5 | 50.0 | 1,653,355 | 4,764 | 12 | 1,025,542 | 6 | 764,314 | osh-native |
parse.configure-coreutils | 133 | 25 | 58 | 44.5 | 49.5 | 1,653,354 | 4,764 | 12 | 1,025,532 | 6 | 764,309 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.8 | 101,958 | 180 | 2 | 75,046 | 1 | 37,523 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.3 | 101,958 | 180 | 2 | 75,036 | 1 | 37,518 | osh-native-souffle |
ex.compute-fib | 30 | 0 | 1 | 2.2 | 8.1 | 579,722 | 22,608 | 12 | 50,000 | 0 | 2,927 | osh-native |
ex.compute-fib | 23 | 0 | 2 | 2.2 | 7.6 | 579,722 | 22,608 | 12 | 50,000 | 0 | 2,922 | osh-native-souffle |
ex.bashcomp-parse-help | 189 | 0 | 4 | 11.1 | 8.8 | 1,021,039 | 15,258 | 22 | 50,000 | 0 | 3,916 | osh-native |
ex.bashcomp-parse-help | 180 | 0 | 4 | 11.1 | 8.4 | 1,021,038 | 15,258 | 22 | 50,000 | 0 | 3,916 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.2 | 116,357 | 277 | 3 | 85,264 | 1 | 42,632 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 116,357 | 277 | 3 | 85,254 | 1 | 42,627 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 6 | 1 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
101 | 52 | 56 | 3.4 | zsh | - |
16 | 14 | 2 | 28.2 | bumpleak/osh | mut |
20 | 16 | 4 | 29.6 | _bin/cxx-opt+bumproot/osh | mut |
22 | 21 | 1 | 29.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 18 | 11 | 25.2 | osh-native | mut+alloc |
32 | 19 | 13 | 25.6 | osh-native | mut+alloc+free |
35 | 31 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
35 | 29 | 6 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 27 | 16 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 37 | 10 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 15 | 11 | 24.9 | osh-native-souffle | mut+alloc |
29 | 20 | 8 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 24 | 8 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 28 | 5 | 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 | 21 | 1 | 1.4 | dash | - |
81 | 80 | 1 | 3.1 | bash | - |
379 | 206 | 194 | 3.4 | zsh | - |
50 | 45 | 5 | 84.1 | bumpleak/osh | mut |
68 | 60 | 8 | 84.4 | _bin/cxx-opt+bumproot/osh | mut |
72 | 60 | 12 | 85.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 64 | 35 | 73.6 | osh-native | mut+alloc |
109 | 71 | 38 | 75.4 | osh-native | mut+alloc+free |
150 | 125 | 25 | 50.0 | osh-native | mut+alloc+free+gc |
158 | 133 | 25 | 50.5 | osh-native | mut+alloc+free+gc+exit |
143 | 100 | 43 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 181 | 31 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
91 | 58 | 33 | 73.3 | osh-native-souffle | mut+alloc |
96 | 65 | 31 | 75.0 | osh-native-souffle | mut+alloc+free |
133 | 104 | 29 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
140 | 112 | 28 | 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 | 2 | 0 | 1.4 | dash | - |
6 | 4 | 2 | 2.9 | bash | - |
7 | 5 | 2 | 3.1 | zsh | - |
6 | 4 | 2 | 12.1 | bumpleak/osh | mut |
7 | 4 | 2 | 11.0 | _bin/cxx-opt+bumproot/osh | mut |
7 | 5 | 2 | 11.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.0 | osh-native | mut+alloc |
8 | 6 | 2 | 10.2 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.8 | osh-native | mut+alloc+free+gc |
9 | 7 | 2 | 8.4 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 8 | 3 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.4 | osh-native-souffle | mut+alloc |
9 | 3 | 6 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 7 | 1 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
8 | 5 | 3 | 8.3 | 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 | 10 | 1 | 1.4 | dash | - |
30 | 28 | 2 | 3.0 | bash | - |
24 | 18 | 6 | 3.3 | zsh | - |
20 | 17 | 3 | 30.9 | bumpleak/osh | mut |
27 | 23 | 5 | 31.5 | _bin/cxx-opt+bumproot/osh | mut |
31 | 25 | 5 | 31.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
46 | 33 | 13 | 26.5 | osh-native | mut+alloc |
40 | 30 | 10 | 26.7 | osh-native | mut+alloc+free |
30 | 28 | 2 | 8.1 | osh-native | mut+alloc+free+gc |
30 | 27 | 3 | 7.9 | osh-native | mut+alloc+free+gc+exit |
57 | 37 | 21 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
39 | 35 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 21 | 10 | 26.1 | osh-native-souffle | mut+alloc |
32 | 24 | 8 | 26.2 | osh-native-souffle | mut+alloc+free |
23 | 20 | 3 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 21 | 1 | 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 |
72 | 67 | 5 | 3.1 | bash | - |
169 | 106 | 62 | 55.7 | bumpleak/osh | mut |
183 | 130 | 53 | 56.8 | _bin/cxx-opt+bumproot/osh | mut |
196 | 127 | 69 | 58.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
221 | 146 | 75 | 48.7 | osh-native | mut+alloc |
228 | 157 | 71 | 50.8 | osh-native | mut+alloc+free |
189 | 146 | 43 | 8.8 | osh-native | mut+alloc+free+gc |
191 | 133 | 58 | 8.5 | osh-native | mut+alloc+free+gc+exit |
236 | 154 | 82 | 64.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
213 | 167 | 46 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
213 | 142 | 71 | 48.6 | osh-native-souffle | mut+alloc |
223 | 139 | 83 | 50.4 | osh-native-souffle | mut+alloc+free |
180 | 125 | 55 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
180 | 140 | 40 | 8.5 | 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 | 3 | 7 | 3.4 | dash | - |
20 | 10 | 10 | 4.5 | bash | - |
18 | 8 | 10 | 3.5 | zsh | - |
18 | 8 | 11 | 13.0 | bumpleak/osh | mut |
22 | 10 | 12 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
20 | 10 | 11 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 14 | 8 | 11.1 | osh-native | mut+alloc |
23 | 8 | 15 | 11.4 | osh-native | mut+alloc+free |
23 | 12 | 12 | 9.2 | osh-native | mut+alloc+free+gc |
23 | 13 | 11 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 13 | 12 | 12.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 15 | 11 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 9 | 13 | 10.7 | osh-native-souffle | mut+alloc |
21 | 7 | 15 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 10 | 12 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 12 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |