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 | 36 | 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 | 178 | 25 | 92 | 41.1 | 45.9 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 163 | 29 | 81 | 44.6 | 49.6 | 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 | 8 | 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.0 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,910 | osh-native |
ex.compute-fib | 23 | 0 | 2 | 2.4 | 7.6 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,848 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 4 | 10.3 | 8.9 | 995,279 | 12,911 | 21 | 50,000 | 0 | 3,898 | osh-native |
ex.bashcomp-parse-help | 177 | 0 | 4 | 10.3 | 8.4 | 995,278 | 12,911 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 23 | 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.3 | 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 |
7 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
105 | 54 | 57 | 3.4 | zsh | - |
16 | 12 | 4 | 29.7 | bumpleak/osh | mut |
20 | 8 | 12 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 29.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 21 | 8 | 25.0 | osh-native | mut+alloc |
31 | 18 | 13 | 25.6 | osh-native | mut+alloc+free |
36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 29 | 7 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 30 | 13 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 43 | 4 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 19 | 8 | 24.9 | osh-native-souffle | mut+alloc |
28 | 28 | 0 | 25.2 | osh-native-souffle | mut+alloc+free |
34 | 18 | 15 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
37 | 33 | 4 | 17.8 | 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 | 22 | 0 | 1.6 | dash | - |
78 | 70 | 8 | 3.1 | bash | - |
381 | 192 | 209 | 3.5 | zsh | - |
49 | 34 | 15 | 85.7 | bumpleak/osh | mut |
61 | 49 | 12 | 84.9 | _bin/cxx-opt+bumproot/osh | mut |
71 | 33 | 37 | 85.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 64 | 32 | 73.4 | osh-native | mut+alloc |
104 | 72 | 32 | 75.3 | osh-native | mut+alloc+free |
178 | 166 | 12 | 45.9 | osh-native | mut+alloc+free+gc |
178 | 150 | 28 | 46.1 | osh-native | mut+alloc+free+gc+exit |
139 | 79 | 59 | 99.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
238 | 209 | 28 | 62.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 51 | 35 | 73.0 | osh-native-souffle | mut+alloc |
96 | 76 | 20 | 75.1 | osh-native-souffle | mut+alloc+free |
163 | 136 | 24 | 49.6 | osh-native-souffle | mut+alloc+free+gc |
150 | 134 | 16 | 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.3 | zsh | - |
6 | 3 | 3 | 12.3 | bumpleak/osh | mut |
7 | 3 | 3 | 11.2 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc |
10 | 10 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 7 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 8 | 0 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
9 | 3 | 6 | 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 | 10 | 0 | 1.4 | dash | - |
29 | 29 | 0 | 3.0 | bash | - |
24 | 20 | 4 | 3.1 | zsh | - |
19 | 19 | 0 | 31.7 | bumpleak/osh | mut |
26 | 17 | 9 | 32.9 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 18 | 18 | 26.3 | osh-native | mut+alloc |
39 | 31 | 8 | 26.7 | osh-native | mut+alloc+free |
29 | 29 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 39 | 16 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
39 | 39 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 19 | 12 | 25.8 | osh-native-souffle | mut+alloc |
32 | 24 | 8 | 26.3 | osh-native-souffle | mut+alloc+free |
23 | 15 | 8 | 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 |
74 | 74 | 0 | 3.1 | bash | - |
167 | 131 | 36 | 55.3 | bumpleak/osh | mut |
180 | 120 | 60 | 55.1 | _bin/cxx-opt+bumproot/osh | mut |
194 | 133 | 60 | 57.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
209 | 113 | 97 | 47.1 | osh-native | mut+alloc |
218 | 141 | 76 | 48.7 | osh-native | mut+alloc+free |
182 | 123 | 59 | 8.9 | osh-native | mut+alloc+free+gc |
182 | 117 | 65 | 8.8 | osh-native | mut+alloc+free+gc+exit |
244 | 152 | 92 | 63.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 149 | 60 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 132 | 72 | 46.6 | osh-native-souffle | mut+alloc |
209 | 142 | 67 | 48.4 | osh-native-souffle | mut+alloc+free |
177 | 104 | 72 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 131 | 44 | 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 | 8 | 2 | 3.4 | dash | - |
19 | 17 | 3 | 4.3 | bash | - |
18 | 10 | 8 | 3.5 | zsh | - |
20 | 9 | 12 | 12.9 | bumpleak/osh | mut |
19 | 17 | 3 | 12.2 | _bin/cxx-opt+bumproot/osh | mut |
23 | 16 | 7 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 17 | 5 | 11.0 | osh-native | mut+alloc |
22 | 16 | 6 | 11.1 | osh-native | mut+alloc+free |
23 | 16 | 7 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 16 | 8 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 23 | 2 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 19 | 6 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 16 | 4 | 10.5 | osh-native-souffle | mut+alloc |
22 | 14 | 9 | 10.6 | osh-native-souffle | mut+alloc+free |
22 | 20 | 3 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
22 | 15 | 7 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |