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 | 18.0 | 476,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 34 | 4 | 10 | 12.0 | 17.7 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 175 | 24 | 82 | 41.1 | 45.8 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 144 | 24 | 66 | 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.7 | 101,933 | 180 | 2 | 75,266 | 1 | 37,633 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.1 | 101,933 | 180 | 2 | 75,136 | 1 | 37,568 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 2 | 2.4 | 8.1 | 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 | 190 | 0 | 5 | 10.3 | 8.8 | 995,279 | 12,911 | 21 | 50,000 | 0 | 3,898 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 3 | 10.3 | 8.3 | 995,278 | 12,911 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,348 | 270 | 3 | 85,502 | 1 | 42,751 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.7 | 116,348 | 270 | 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.4 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
105 | 61 | 51 | 3.4 | zsh | - |
16 | 16 | 0 | 28.0 | bumpleak/osh | mut |
19 | 15 | 4 | 29.9 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 29.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 21 | 8 | 25.3 | osh-native | mut+alloc |
31 | 27 | 4 | 25.6 | osh-native | mut+alloc+free |
37 | 29 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 22 | 14 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 31 | 12 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 38 | 13 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 23 | 4 | 24.8 | osh-native-souffle | mut+alloc |
29 | 16 | 12 | 25.2 | osh-native-souffle | mut+alloc+free |
34 | 30 | 4 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
34 | 25 | 8 | 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 | 0 | 1.6 | dash | - |
78 | 78 | 0 | 3.3 | bash | - |
379 | 220 | 180 | 3.5 | zsh | - |
49 | 40 | 8 | 85.3 | bumpleak/osh | mut |
60 | 40 | 20 | 86.5 | _bin/cxx-opt+bumproot/osh | mut |
70 | 58 | 12 | 85.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 75 | 24 | 73.4 | osh-native | mut+alloc |
106 | 79 | 27 | 75.4 | osh-native | mut+alloc+free |
175 | 162 | 12 | 45.8 | osh-native | mut+alloc+free+gc |
177 | 153 | 24 | 46.0 | osh-native | mut+alloc+free+gc+exit |
142 | 90 | 51 | 99.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
234 | 209 | 24 | 61.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 48 | 40 | 73.2 | osh-native-souffle | mut+alloc |
97 | 36 | 60 | 75.0 | osh-native-souffle | mut+alloc+free |
144 | 124 | 20 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
150 | 126 | 24 | 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 | 6 | 0 | 2.9 | bash | - |
8 | 8 | 0 | 3.1 | zsh | - |
6 | 0 | 6 | 10.4 | bumpleak/osh | mut |
6 | 6 | 0 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 0 | 8 | 10.0 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 0 | 8 | 9.8 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 5 | 5 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 9 | 0 | 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 | 7 | 3 | 1.4 | dash | - |
29 | 21 | 7 | 3.0 | bash | - |
24 | 20 | 4 | 3.4 | zsh | - |
18 | 18 | 0 | 31.1 | bumpleak/osh | mut |
25 | 25 | 0 | 31.5 | _bin/cxx-opt+bumproot/osh | mut |
29 | 24 | 4 | 31.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
38 | 27 | 11 | 26.2 | osh-native | mut+alloc |
38 | 30 | 9 | 26.7 | osh-native | mut+alloc+free |
29 | 21 | 7 | 8.1 | osh-native | mut+alloc+free+gc |
29 | 29 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 38 | 17 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 19 | 11 | 26.0 | osh-native-souffle | mut+alloc |
33 | 25 | 8 | 26.1 | osh-native-souffle | mut+alloc+free |
22 | 15 | 7 | 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 |
75 | 71 | 4 | 3.0 | bash | - |
169 | 144 | 24 | 54.1 | bumpleak/osh | mut |
182 | 115 | 67 | 54.5 | _bin/cxx-opt+bumproot/osh | mut |
198 | 129 | 69 | 55.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
225 | 130 | 95 | 47.1 | osh-native | mut+alloc |
219 | 131 | 88 | 48.8 | osh-native | mut+alloc+free |
190 | 134 | 55 | 8.8 | osh-native | mut+alloc+free+gc |
185 | 149 | 36 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 147 | 88 | 64.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
214 | 161 | 52 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 153 | 52 | 46.6 | osh-native-souffle | mut+alloc |
212 | 141 | 71 | 48.2 | osh-native-souffle | mut+alloc+free |
175 | 115 | 60 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
174 | 113 | 60 | 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 | 4 | 6 | 3.5 | dash | - |
20 | 16 | 4 | 4.3 | bash | - |
18 | 11 | 8 | 3.5 | zsh | - |
18 | 15 | 3 | 11.4 | bumpleak/osh | mut |
20 | 16 | 4 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
21 | 12 | 9 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 13 | 10 | 10.9 | osh-native | mut+alloc |
23 | 24 | 0 | 11.0 | osh-native | mut+alloc+free |
22 | 13 | 10 | 9.0 | osh-native | mut+alloc+free+gc |
24 | 12 | 12 | 8.9 | osh-native | mut+alloc+free+gc+exit |
24 | 19 | 6 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
30 | 19 | 11 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 18 | 3 | 10.5 | osh-native-souffle | mut+alloc |
22 | 14 | 8 | 10.6 | osh-native-souffle | mut+alloc+free |
22 | 14 | 8 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
23 | 16 | 7 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |