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.1 | 17.8 | 476,737 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.6 | 476,737 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 158 | 22 | 73 | 41.1 | 45.8 | 1,653,325 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 136 | 23 | 59 | 44.6 | 49.5 | 1,653,324 | 4,764 | 12 | 1,030,664 | 6 | 769,416 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,928 | 180 | 2 | 75,252 | 1 | 37,626 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.3 | 101,928 | 180 | 2 | 75,122 | 1 | 37,561 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 8.0 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,903 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.4 | 7.6 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,841 | osh-native-souffle |
ex.bashcomp-parse-help | 186 | 0 | 3 | 10.3 | 8.9 | 995,274 | 12,911 | 21 | 50,000 | 0 | 3,891 | osh-native |
ex.bashcomp-parse-help | 173 | 0 | 3 | 10.3 | 8.3 | 995,273 | 12,911 | 21 | 50,000 | 0 | 3,831 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,343 | 270 | 3 | 85,488 | 1 | 42,744 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.8 | 116,343 | 270 | 3 | 85,364 | 1 | 42,682 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.4 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
104 | 74 | 37 | 3.3 | zsh | - |
16 | 12 | 4 | 29.3 | bumpleak/osh | mut |
19 | 15 | 4 | 29.5 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 30.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 25 | 4 | 25.2 | osh-native | mut+alloc |
32 | 20 | 12 | 25.6 | osh-native | mut+alloc+free |
37 | 32 | 4 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 28 | 8 | 18.2 | osh-native | mut+alloc+free+gc+exit |
44 | 27 | 16 | 33.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 45 | 4 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 22 | 4 | 24.9 | osh-native-souffle | mut+alloc |
28 | 20 | 8 | 25.2 | osh-native-souffle | mut+alloc+free |
32 | 32 | 0 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 20 | 12 | 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 | - |
79 | 78 | 0 | 3.1 | bash | - |
376 | 199 | 197 | 3.5 | zsh | - |
47 | 43 | 4 | 85.9 | bumpleak/osh | mut |
60 | 56 | 4 | 85.8 | _bin/cxx-opt+bumproot/osh | mut |
70 | 45 | 25 | 85.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 57 | 41 | 73.6 | osh-native | mut+alloc |
107 | 75 | 32 | 75.4 | osh-native | mut+alloc+free |
158 | 138 | 20 | 45.8 | osh-native | mut+alloc+free+gc |
161 | 141 | 20 | 46.1 | osh-native | mut+alloc+free+gc+exit |
139 | 83 | 55 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
259 | 239 | 20 | 60.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 67 | 21 | 73.0 | osh-native-souffle | mut+alloc |
96 | 60 | 36 | 74.9 | osh-native-souffle | mut+alloc+free |
136 | 115 | 20 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
142 | 121 | 20 | 50.3 | 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 | 6 | 0 | 2.9 | bash | - |
8 | 4 | 4 | 3.1 | zsh | - |
6 | 3 | 3 | 11.2 | bumpleak/osh | mut |
7 | 3 | 3 | 10.9 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 0 | 9 | 8.8 | osh-native | mut+alloc+free+gc+exit |
11 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 6 | 6 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
7 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 4 | 4 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
8 | 4 | 4 | 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 |
10 | 5 | 5 | 1.4 | dash | - |
29 | 25 | 4 | 2.9 | bash | - |
24 | 16 | 8 | 3.3 | zsh | - |
19 | 14 | 5 | 31.7 | bumpleak/osh | mut |
26 | 17 | 8 | 32.1 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.2 | osh-native | mut+alloc |
38 | 29 | 8 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 45 | 8 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
29 | 17 | 13 | 25.8 | osh-native-souffle | mut+alloc |
31 | 19 | 12 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 14 | 7 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 21 | 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 |
74 | 66 | 8 | 3.0 | bash | - |
168 | 112 | 56 | 54.3 | bumpleak/osh | mut |
180 | 124 | 56 | 55.8 | _bin/cxx-opt+bumproot/osh | mut |
195 | 142 | 53 | 56.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 151 | 60 | 47.0 | osh-native | mut+alloc |
217 | 121 | 97 | 48.7 | osh-native | mut+alloc+free |
186 | 134 | 51 | 8.9 | osh-native | mut+alloc+free+gc |
181 | 136 | 44 | 8.7 | osh-native | mut+alloc+free+gc+exit |
231 | 155 | 76 | 63.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 173 | 35 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 134 | 69 | 46.6 | osh-native-souffle | mut+alloc |
209 | 103 | 107 | 48.3 | osh-native-souffle | mut+alloc+free |
173 | 138 | 35 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
174 | 99 | 75 | 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 | 7 | 3 | 3.4 | dash | - |
20 | 12 | 8 | 4.5 | bash | - |
18 | 17 | 1 | 3.4 | zsh | - |
19 | 13 | 7 | 13.0 | bumpleak/osh | mut |
20 | 18 | 2 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
22 | 11 | 11 | 13.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 17 | 4 | 10.9 | osh-native | mut+alloc |
22 | 14 | 8 | 11.1 | osh-native | mut+alloc+free |
22 | 14 | 8 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 14 | 9 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 18 | 7 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 16 | 10 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 17 | 4 | 10.5 | osh-native-souffle | mut+alloc |
21 | 16 | 6 | 10.9 | osh-native-souffle | mut+alloc+free |
21 | 15 | 6 | 8.8 | osh-native-souffle | mut+alloc+free+gc |
21 | 10 | 11 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |