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 | 35 | 3 | 9 | 12.0 | 18.0 | 476,711 | 1,282 | 6 | 408,792 | 5 | 204,396 | osh-native |
parse.configure-cpython | 32 | 3 | 10 | 12.0 | 17.6 | 476,711 | 1,282 | 6 | 408,662 | 5 | 204,331 | osh-native-souffle |
parse.configure-coreutils | 142 | 22 | 56 | 44.6 | 49.8 | 1,653,299 | 4,764 | 12 | 1,030,676 | 6 | 769,422 | osh-native |
parse.configure-coreutils | 139 | 25 | 61 | 46.1 | 51.1 | 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 | 27 | 0 | 1 | 2.4 | 7.7 | 584,167 | 22,608 | 12 | 50,000 | 0 | 2,844 | osh-native |
ex.compute-fib | 23 | 0 | 2 | 2.4 | 7.5 | 584,167 | 22,608 | 12 | 50,000 | 0 | 2,782 | osh-native-souffle |
ex.bashcomp-parse-help | 176 | 0 | 3 | 10.3 | 8.8 | 995,244 | 12,911 | 21 | 50,000 | 0 | 3,834 | osh-native |
ex.bashcomp-parse-help | 169 | 0 | 4 | 10.3 | 8.4 | 995,243 | 12,911 | 21 | 50,000 | 0 | 3,774 | osh-native-souffle |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 9.0 | 116,311 | 270 | 3 | 85,370 | 1 | 42,685 | osh-native |
ex.abuild-print-help | 20 | 1 | 2 | 2.8 | 8.5 | 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.6 | dash | - |
23 | 22 | 1 | 3.0 | bash | - |
100 | 56 | 51 | 3.4 | zsh | - |
16 | 13 | 3 | 29.7 | bumpleak/osh | mut |
19 | 15 | 5 | 28.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 17 | 5 | 28.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 19 | 11 | 24.9 | osh-native | mut+alloc |
32 | 25 | 6 | 25.7 | osh-native | mut+alloc+free |
35 | 29 | 6 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 31 | 5 | 18.0 | osh-native | mut+alloc+free+gc+exit |
41 | 30 | 11 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
46 | 41 | 5 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 21 | 5 | 24.6 | osh-native-souffle | mut+alloc |
28 | 20 | 8 | 25.2 | osh-native-souffle | mut+alloc+free |
32 | 22 | 10 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 25 | 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 | 21 | 0 | 1.4 | dash | - |
78 | 77 | 1 | 3.1 | bash | - |
368 | 202 | 187 | 3.5 | zsh | - |
48 | 37 | 11 | 84.0 | bumpleak/osh | mut |
62 | 51 | 11 | 86.4 | _bin/cxx-opt+bumproot/osh | mut |
70 | 56 | 14 | 85.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 65 | 32 | 73.4 | osh-native | mut+alloc |
106 | 70 | 36 | 75.3 | osh-native | mut+alloc+free |
142 | 113 | 29 | 49.8 | osh-native | mut+alloc+free+gc |
145 | 126 | 19 | 50.6 | osh-native | mut+alloc+free+gc+exit |
135 | 98 | 36 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
195 | 161 | 33 | 66.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 71 | 16 | 73.0 | osh-native-souffle | mut+alloc |
94 | 49 | 45 | 75.0 | osh-native-souffle | mut+alloc+free |
139 | 117 | 22 | 51.1 | osh-native-souffle | mut+alloc+free+gc |
140 | 120 | 20 | 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 | 4 | 2 | 11.0 | bumpleak/osh | mut |
6 | 4 | 2 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 5 | 2 | 11.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc |
8 | 5 | 4 | 10.0 | osh-native | mut+alloc+free |
9 | 5 | 4 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 6 | 3 | 8.7 | osh-native | mut+alloc+free+gc+exit |
11 | 8 | 3 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 10 | 1 | 9.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
7 | 5 | 3 | 9.7 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 4 | 5 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
8 | 7 | 1 | 8.5 | 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 | - |
28 | 27 | 1 | 3.0 | bash | - |
23 | 16 | 7 | 3.3 | zsh | - |
19 | 15 | 4 | 32.3 | bumpleak/osh | mut |
26 | 23 | 3 | 32.4 | _bin/cxx-opt+bumproot/osh | mut |
28 | 25 | 3 | 31.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
35 | 28 | 7 | 26.1 | osh-native | mut+alloc |
37 | 32 | 5 | 26.6 | osh-native | mut+alloc+free |
27 | 24 | 3 | 7.7 | osh-native | mut+alloc+free+gc |
27 | 22 | 5 | 8.0 | osh-native | mut+alloc+free+gc+exit |
51 | 37 | 15 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 15 | 15 | 26.0 | osh-native-souffle | mut+alloc |
31 | 25 | 6 | 26.2 | osh-native-souffle | mut+alloc+free |
23 | 19 | 4 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 4 | 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 | 67 | 5 | 3.1 | bash | - |
162 | 102 | 60 | 54.4 | bumpleak/osh | mut |
176 | 126 | 50 | 54.6 | _bin/cxx-opt+bumproot/osh | mut |
187 | 135 | 52 | 55.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
207 | 126 | 81 | 47.0 | osh-native | mut+alloc |
213 | 141 | 72 | 48.6 | osh-native | mut+alloc+free |
176 | 128 | 48 | 8.8 | osh-native | mut+alloc+free+gc |
175 | 131 | 44 | 8.8 | osh-native | mut+alloc+free+gc+exit |
227 | 153 | 74 | 62.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
203 | 152 | 51 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
198 | 126 | 71 | 46.6 | osh-native-souffle | mut+alloc |
202 | 135 | 67 | 48.2 | osh-native-souffle | mut+alloc+free |
169 | 120 | 49 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
168 | 116 | 52 | 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 | 4 | 5 | 3.5 | dash | - |
19 | 10 | 9 | 4.5 | bash | - |
17 | 6 | 11 | 3.5 | zsh | - |
18 | 9 | 10 | 12.3 | bumpleak/osh | mut |
18 | 9 | 10 | 11.9 | _bin/cxx-opt+bumproot/osh | mut |
20 | 10 | 10 | 13.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 11 | 9 | 11.0 | osh-native | mut+alloc |
21 | 8 | 13 | 11.1 | osh-native | mut+alloc+free |
21 | 13 | 9 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 12 | 10 | 8.9 | osh-native | mut+alloc+free+gc+exit |
24 | 11 | 13 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 13 | 11 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 6 | 13 | 10.5 | osh-native-souffle | mut+alloc |
20 | 12 | 9 | 10.6 | osh-native-souffle | mut+alloc+free |
20 | 8 | 13 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 12 | 9 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |