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 | 40 | 7 | 14 | 12.1 | 17.8 | 476,737 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 35 | 5 | 11 | 12.0 | 17.6 | 476,737 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 191 | 30 | 102 | 41.1 | 45.8 | 1,653,325 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 163 | 28 | 83 | 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 | 9 | 1 | 1 | 2.6 | 8.1 | 101,928 | 180 | 2 | 75,122 | 1 | 37,561 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 2 | 2.4 | 8.1 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,903 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.4 | 7.6 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,841 | osh-native-souffle |
ex.bashcomp-parse-help | 183 | 0 | 4 | 10.3 | 8.7 | 995,274 | 12,911 | 21 | 50,000 | 0 | 3,891 | osh-native |
ex.bashcomp-parse-help | 176 | 0 | 4 | 10.3 | 8.3 | 995,273 | 12,911 | 21 | 50,000 | 0 | 3,831 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 116,343 | 270 | 3 | 85,488 | 1 | 42,744 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.7 | 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 |
7 | 6 | 0 | 1.4 | dash | - |
24 | 20 | 4 | 3.1 | bash | - |
107 | 51 | 62 | 3.3 | zsh | - |
16 | 16 | 0 | 29.5 | bumpleak/osh | mut |
20 | 16 | 4 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 28.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 19 | 11 | 25.0 | osh-native | mut+alloc |
32 | 12 | 20 | 25.7 | osh-native | mut+alloc+free |
40 | 32 | 8 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 37 | 0 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 24 | 20 | 32.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
53 | 44 | 8 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
28 | 18 | 9 | 24.9 | osh-native-souffle | mut+alloc |
29 | 18 | 11 | 25.3 | osh-native-souffle | mut+alloc+free |
35 | 27 | 8 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
37 | 29 | 7 | 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.4 | dash | - |
77 | 73 | 4 | 3.3 | bash | - |
379 | 236 | 164 | 3.5 | zsh | - |
50 | 42 | 8 | 85.0 | bumpleak/osh | mut |
60 | 44 | 16 | 84.6 | _bin/cxx-opt+bumproot/osh | mut |
71 | 59 | 12 | 86.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
100 | 71 | 28 | 73.4 | osh-native | mut+alloc |
107 | 83 | 24 | 75.4 | osh-native | mut+alloc+free |
191 | 163 | 28 | 45.8 | osh-native | mut+alloc+free+gc |
198 | 162 | 36 | 46.0 | osh-native | mut+alloc+free+gc+exit |
139 | 91 | 48 | 99.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
257 | 233 | 24 | 61.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
89 | 49 | 40 | 73.2 | osh-native-souffle | mut+alloc |
97 | 60 | 36 | 75.0 | osh-native-souffle | mut+alloc+free |
163 | 127 | 36 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
173 | 156 | 16 | 50.2 | 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.4 | zsh | - |
7 | 0 | 6 | 11.5 | bumpleak/osh | mut |
7 | 7 | 0 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 11.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 3 | 6 | 10.2 | osh-native | mut+alloc |
9 | 0 | 9 | 10.1 | osh-native | mut+alloc+free |
9 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 0 | 9 | 8.7 | 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 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 4 | 4 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
9 | 9 | 0 | 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 |
10 | 10 | 0 | 1.3 | dash | - |
29 | 28 | 0 | 2.9 | bash | - |
24 | 16 | 8 | 3.3 | zsh | - |
19 | 18 | 0 | 31.9 | bumpleak/osh | mut |
25 | 17 | 8 | 31.5 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 32.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.5 | osh-native | mut+alloc |
39 | 30 | 8 | 26.7 | osh-native | mut+alloc+free |
29 | 28 | 0 | 8.1 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 33 | 21 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 38 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 22 | 7 | 25.8 | osh-native-souffle | mut+alloc |
32 | 27 | 5 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 22 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 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.1 | bash | - |
170 | 95 | 75 | 54.9 | bumpleak/osh | mut |
184 | 140 | 44 | 55.0 | _bin/cxx-opt+bumproot/osh | mut |
197 | 144 | 52 | 56.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
215 | 127 | 87 | 47.1 | osh-native | mut+alloc |
221 | 157 | 64 | 48.8 | osh-native | mut+alloc+free |
183 | 127 | 56 | 8.7 | osh-native | mut+alloc+free+gc |
184 | 131 | 52 | 8.8 | osh-native | mut+alloc+free+gc+exit |
234 | 153 | 81 | 62.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
213 | 149 | 64 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 166 | 40 | 46.6 | osh-native-souffle | mut+alloc |
215 | 138 | 77 | 48.3 | osh-native-souffle | mut+alloc+free |
176 | 98 | 78 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
178 | 109 | 69 | 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 | 9 | 1 | 3.4 | dash | - |
20 | 14 | 7 | 4.5 | bash | - |
18 | 6 | 13 | 3.4 | zsh | - |
18 | 17 | 2 | 11.3 | bumpleak/osh | mut |
19 | 11 | 8 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
22 | 11 | 12 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 15 | 7 | 11.0 | osh-native | mut+alloc |
23 | 14 | 10 | 11.1 | osh-native | mut+alloc+free |
23 | 10 | 13 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 18 | 5 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 5 | 20 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 21 | 5 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 14 | 7 | 10.6 | osh-native-souffle | mut+alloc |
22 | 16 | 7 | 10.7 | osh-native-souffle | mut+alloc+free |
22 | 13 | 9 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
23 | 11 | 12 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |