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 | 38 | 5 | 11 | 12.1 | 18.0 | 476,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 38 | 6 | 14 | 12.0 | 17.7 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 194 | 31 | 106 | 41.1 | 45.8 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 187 | 30 | 102 | 44.6 | 49.7 | 1,653,329 | 4,764 | 12 | 1,030,678 | 6 | 769,423 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,933 | 180 | 2 | 75,266 | 1 | 37,633 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.0 | 101,933 | 180 | 2 | 75,136 | 1 | 37,568 | osh-native-souffle |
ex.compute-fib | 30 | 0 | 2 | 2.4 | 7.9 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,910 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.4 | 7.6 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,848 | osh-native-souffle |
ex.bashcomp-parse-help | 184 | 0 | 4 | 10.3 | 8.8 | 995,279 | 15,258 | 21 | 50,000 | 0 | 3,893 | osh-native |
ex.bashcomp-parse-help | 177 | 0 | 4 | 10.3 | 8.1 | 995,278 | 15,258 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 116,348 | 277 | 3 | 85,502 | 1 | 42,751 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.7 | 116,348 | 277 | 3 | 85,378 | 1 | 42,689 | 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 | - |
108 | 51 | 63 | 3.3 | zsh | - |
16 | 8 | 8 | 28.5 | bumpleak/osh | mut |
19 | 12 | 8 | 29.3 | _bin/cxx-opt+bumproot/osh | mut |
23 | 23 | 0 | 30.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 26 | 4 | 25.0 | osh-native | mut+alloc |
32 | 20 | 12 | 25.6 | osh-native | mut+alloc+free |
38 | 34 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
42 | 23 | 19 | 18.1 | osh-native | mut+alloc+free+gc+exit |
45 | 24 | 20 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
59 | 47 | 12 | 22.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 8 | 19 | 24.5 | osh-native-souffle | mut+alloc |
30 | 25 | 4 | 25.3 | osh-native-souffle | mut+alloc+free |
38 | 30 | 8 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
39 | 30 | 9 | 17.6 | 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 | 0 | 1.6 | dash | - |
78 | 74 | 4 | 3.3 | bash | - |
383 | 224 | 180 | 3.5 | zsh | - |
49 | 38 | 11 | 84.3 | bumpleak/osh | mut |
62 | 41 | 21 | 86.2 | _bin/cxx-opt+bumproot/osh | mut |
70 | 62 | 8 | 86.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 65 | 32 | 73.6 | osh-native | mut+alloc |
105 | 47 | 58 | 75.3 | osh-native | mut+alloc+free |
194 | 174 | 20 | 45.8 | osh-native | mut+alloc+free+gc |
200 | 176 | 24 | 46.1 | osh-native | mut+alloc+free+gc+exit |
139 | 82 | 57 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
280 | 252 | 28 | 61.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
101 | 54 | 46 | 73.2 | osh-native-souffle | mut+alloc |
112 | 72 | 40 | 74.9 | osh-native-souffle | mut+alloc+free |
187 | 155 | 32 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
179 | 146 | 32 | 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 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
7 | 6 | 0 | 11.2 | bumpleak/osh | mut |
7 | 4 | 4 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
7 | 0 | 7 | 11.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 3 | 6 | 10.1 | osh-native | mut+alloc |
9 | 6 | 3 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
10 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 0 | 8 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 9 | 0 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 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 |
11 | 10 | 0 | 1.6 | dash | - |
29 | 29 | 0 | 2.9 | bash | - |
24 | 20 | 4 | 3.1 | zsh | - |
18 | 14 | 5 | 32.9 | bumpleak/osh | mut |
26 | 26 | 0 | 32.1 | _bin/cxx-opt+bumproot/osh | mut |
29 | 29 | 0 | 31.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
39 | 27 | 12 | 26.5 | osh-native | mut+alloc |
39 | 31 | 8 | 26.5 | osh-native | mut+alloc+free |
30 | 30 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
29 | 29 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 51 | 4 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 30 | 7 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 18 | 13 | 26.1 | osh-native-souffle | mut+alloc |
33 | 24 | 8 | 26.5 | osh-native-souffle | mut+alloc+free |
22 | 15 | 7 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 4 | 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 | 69 | 4 | 3.1 | bash | - |
169 | 105 | 64 | 54.3 | bumpleak/osh | mut |
183 | 110 | 73 | 55.5 | _bin/cxx-opt+bumproot/osh | mut |
200 | 108 | 92 | 55.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
215 | 131 | 83 | 47.1 | osh-native | mut+alloc |
220 | 128 | 92 | 48.8 | osh-native | mut+alloc+free |
184 | 140 | 44 | 8.8 | osh-native | mut+alloc+free+gc |
184 | 116 | 68 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 127 | 107 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
228 | 136 | 92 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 141 | 65 | 46.6 | osh-native-souffle | mut+alloc |
213 | 148 | 64 | 48.3 | osh-native-souffle | mut+alloc+free |
177 | 118 | 59 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
178 | 137 | 40 | 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 | 2 | 3.4 | dash | - |
20 | 12 | 8 | 4.5 | bash | - |
18 | 10 | 8 | 3.5 | zsh | - |
20 | 11 | 9 | 11.9 | bumpleak/osh | mut |
21 | 15 | 6 | 12.9 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 10 | 12 | 11.0 | osh-native | mut+alloc |
23 | 13 | 10 | 11.1 | osh-native | mut+alloc+free |
23 | 21 | 2 | 9.0 | osh-native | mut+alloc+free+gc |
24 | 16 | 9 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 11 | 15 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 13 | 14 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 18 | 3 | 10.7 | osh-native-souffle | mut+alloc |
22 | 14 | 9 | 10.7 | osh-native-souffle | mut+alloc+free |
22 | 17 | 5 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 13 | 10 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |