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.0 | 18.0 | 476,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.6 | 476,711 | 1,282 | 6 | 408,662 | 5 | 204,331 | osh-native-souffle |
parse.configure-coreutils | 146 | 22 | 60 | 44.6 | 50.0 | 1,653,299 | 4,764 | 12 | 1,030,676 | 6 | 769,422 | osh-native |
parse.configure-coreutils | 139 | 23 | 61 | 46.1 | 51.2 | 1,653,298 | 4,764 | 12 | 1,069,028 | 6 | 798,595 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,902 | 180 | 2 | 75,134 | 1 | 37,567 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.1 | 101,902 | 180 | 2 | 75,004 | 1 | 37,502 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 8.0 | 584,167 | 22,608 | 12 | 50,000 | 0 | 2,844 | osh-native |
ex.compute-fib | 23 | 0 | 1 | 2.4 | 7.6 | 584,167 | 22,608 | 12 | 50,000 | 0 | 2,782 | osh-native-souffle |
ex.bashcomp-parse-help | 177 | 0 | 3 | 10.3 | 8.8 | 995,244 | 12,911 | 21 | 50,000 | 0 | 3,834 | osh-native |
ex.bashcomp-parse-help | 169 | 0 | 3 | 10.3 | 8.3 | 995,243 | 12,911 | 21 | 50,000 | 0 | 3,774 | osh-native-souffle |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.9 | 116,311 | 270 | 3 | 85,370 | 1 | 42,685 | osh-native |
ex.abuild-print-help | 20 | 1 | 2 | 2.8 | 8.3 | 116,311 | 270 | 3 | 85,246 | 1 | 42,623 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.4 | dash | - |
23 | 22 | 1 | 3.1 | bash | - |
100 | 51 | 55 | 3.5 | zsh | - |
16 | 12 | 4 | 28.6 | bumpleak/osh | mut |
19 | 15 | 4 | 29.7 | _bin/cxx-opt+bumproot/osh | mut |
22 | 19 | 3 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 19 | 11 | 25.0 | osh-native | mut+alloc |
31 | 18 | 13 | 25.7 | osh-native | mut+alloc+free |
37 | 31 | 6 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 30 | 6 | 18.1 | osh-native | mut+alloc+free+gc+exit |
42 | 26 | 16 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
46 | 37 | 9 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 14 | 13 | 24.8 | osh-native-souffle | mut+alloc |
28 | 16 | 12 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 24 | 8 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
34 | 26 | 8 | 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 |
21 | 20 | 1 | 1.6 | dash | - |
78 | 77 | 1 | 3.1 | bash | - |
366 | 189 | 197 | 3.5 | zsh | - |
49 | 39 | 10 | 85.8 | bumpleak/osh | mut |
59 | 54 | 5 | 84.3 | _bin/cxx-opt+bumproot/osh | mut |
70 | 59 | 11 | 85.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 59 | 38 | 73.4 | osh-native | mut+alloc |
105 | 73 | 32 | 75.3 | osh-native | mut+alloc+free |
146 | 125 | 21 | 50.0 | osh-native | mut+alloc+free+gc |
158 | 134 | 24 | 50.6 | osh-native | mut+alloc+free+gc+exit |
135 | 89 | 46 | 98.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
203 | 168 | 35 | 66.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 60 | 28 | 73.2 | osh-native-souffle | mut+alloc |
93 | 56 | 37 | 74.9 | osh-native-souffle | mut+alloc+free |
139 | 114 | 25 | 51.2 | osh-native-souffle | mut+alloc+free+gc |
142 | 118 | 24 | 51.9 | 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 | 1 | 1 | 1.4 | dash | - |
5 | 4 | 1 | 3.0 | bash | - |
7 | 4 | 3 | 3.3 | zsh | - |
6 | 3 | 3 | 11.7 | bumpleak/osh | mut |
7 | 4 | 3 | 12.6 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 6 | 2 | 10.1 | osh-native | mut+alloc |
9 | 8 | 1 | 10.1 | osh-native | mut+alloc+free |
9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 11 | 1 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 10 | 2 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 6 | 2 | 9.4 | osh-native-souffle | mut+alloc |
8 | 5 | 3 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 5 | 3 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 6 | 3 | 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 | 9 | 1 | 1.4 | dash | - |
28 | 27 | 1 | 3.0 | bash | - |
23 | 17 | 7 | 3.3 | zsh | - |
19 | 15 | 4 | 32.2 | bumpleak/osh | mut |
25 | 21 | 4 | 33.3 | _bin/cxx-opt+bumproot/osh | mut |
28 | 22 | 6 | 33.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 27 | 9 | 26.3 | osh-native | mut+alloc |
40 | 30 | 9 | 26.5 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 26 | 2 | 7.9 | osh-native | mut+alloc+free+gc+exit |
52 | 36 | 16 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 35 | 2 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 16 | 14 | 26.0 | osh-native-souffle | mut+alloc |
33 | 23 | 10 | 26.2 | osh-native-souffle | mut+alloc+free |
23 | 22 | 1 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 19 | 3 | 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 |
72 | 70 | 2 | 3.0 | bash | - |
163 | 121 | 42 | 55.2 | bumpleak/osh | mut |
174 | 118 | 56 | 54.5 | _bin/cxx-opt+bumproot/osh | mut |
187 | 123 | 64 | 55.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
206 | 135 | 71 | 47.0 | osh-native | mut+alloc |
211 | 144 | 68 | 48.7 | osh-native | mut+alloc+free |
177 | 133 | 44 | 8.8 | osh-native | mut+alloc+free+gc |
177 | 127 | 50 | 8.7 | osh-native | mut+alloc+free+gc+exit |
226 | 154 | 72 | 62.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
203 | 152 | 51 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
200 | 130 | 70 | 46.6 | osh-native-souffle | mut+alloc |
203 | 127 | 76 | 48.2 | osh-native-souffle | mut+alloc+free |
169 | 118 | 51 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
169 | 124 | 45 | 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 |
9 | 6 | 3 | 3.5 | dash | - |
19 | 10 | 9 | 4.5 | bash | - |
17 | 8 | 10 | 3.4 | zsh | - |
19 | 8 | 11 | 12.2 | bumpleak/osh | mut |
19 | 9 | 10 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
21 | 10 | 11 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 9 | 12 | 10.9 | osh-native | mut+alloc |
22 | 11 | 11 | 11.1 | osh-native | mut+alloc+free |
21 | 9 | 13 | 8.9 | osh-native | mut+alloc+free+gc |
22 | 16 | 7 | 8.9 | osh-native | mut+alloc+free+gc+exit |
24 | 12 | 12 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 14 | 11 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 9 | 11 | 10.5 | osh-native-souffle | mut+alloc |
21 | 8 | 13 | 10.5 | osh-native-souffle | mut+alloc+free |
20 | 10 | 11 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
21 | 12 | 10 | 8.3 | osh-native-souffle | mut+alloc+free+gc+exit |