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 | 4 | 10 | 12.0 | 18.0 | 476,752 | 1,282 | 6 | 406,326 | 5 | 203,163 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.6 | 476,752 | 1,282 | 6 | 406,196 | 5 | 203,098 | osh-native-souffle |
parse.configure-coreutils | 148 | 22 | 59 | 44.5 | 49.7 | 1,653,340 | 4,764 | 12 | 1,025,522 | 6 | 764,304 | osh-native |
parse.configure-coreutils | 139 | 26 | 63 | 45.9 | 51.1 | 1,653,339 | 4,764 | 12 | 1,063,852 | 6 | 792,364 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,943 | 180 | 2 | 75,026 | 1 | 37,513 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 8.0 | 101,943 | 180 | 3 | 87,088 | 1 | 43,544 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.2 | 8.0 | 579,607 | 22,608 | 12 | 50,000 | 0 | 2,917 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.2 | 7.5 | 579,607 | 22,608 | 12 | 50,000 | 0 | 2,856 | osh-native-souffle |
ex.bashcomp-parse-help | 183 | 0 | 3 | 10.3 | 8.5 | 995,289 | 15,258 | 21 | 50,000 | 0 | 3,899 | osh-native |
ex.bashcomp-parse-help | 176 | 0 | 4 | 10.3 | 8.3 | 995,288 | 15,258 | 21 | 50,000 | 0 | 3,842 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,319 | 277 | 3 | 85,244 | 1 | 42,622 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.7 | 116,319 | 277 | 3 | 85,120 | 1 | 42,560 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 3 | 3 | 1.4 | dash | - |
24 | 24 | 0 | 3.0 | bash | - |
104 | 54 | 56 | 3.4 | zsh | - |
16 | 12 | 4 | 28.0 | bumpleak/osh | mut |
20 | 15 | 4 | 28.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 22 | 0 | 30.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 25 | 4 | 25.0 | osh-native | mut+alloc |
31 | 27 | 4 | 25.7 | osh-native | mut+alloc+free |
35 | 19 | 15 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 24 | 12 | 18.0 | osh-native | mut+alloc+free+gc+exit |
43 | 34 | 8 | 31.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 37 | 12 | 22.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 17 | 9 | 24.9 | osh-native-souffle | mut+alloc |
28 | 16 | 12 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 28 | 4 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
34 | 29 | 4 | 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 |
21 | 21 | 0 | 1.6 | dash | - |
78 | 78 | 0 | 3.3 | bash | - |
377 | 205 | 192 | 3.7 | zsh | - |
49 | 34 | 15 | 84.7 | bumpleak/osh | mut |
60 | 55 | 4 | 84.6 | _bin/cxx-opt+bumproot/osh | mut |
69 | 49 | 20 | 85.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
95 | 71 | 24 | 73.4 | osh-native | mut+alloc |
105 | 84 | 20 | 75.2 | osh-native | mut+alloc+free |
148 | 120 | 28 | 49.7 | osh-native | mut+alloc+free+gc |
149 | 141 | 8 | 50.6 | osh-native | mut+alloc+free+gc+exit |
138 | 93 | 44 | 97.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
206 | 179 | 28 | 67.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
86 | 57 | 29 | 73.0 | osh-native-souffle | mut+alloc |
95 | 75 | 20 | 74.8 | osh-native-souffle | mut+alloc+free |
139 | 103 | 36 | 51.1 | osh-native-souffle | mut+alloc+free+gc |
145 | 117 | 28 | 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 | 3 | 3 | 3.0 | bash | - |
8 | 8 | 0 | 3.4 | zsh | - |
6 | 0 | 6 | 11.0 | bumpleak/osh | mut |
7 | 7 | 0 | 11.5 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc |
8 | 0 | 8 | 10.2 | osh-native | mut+alloc+free |
9 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
11 | 0 | 11 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.6 | osh-native-souffle | mut+alloc |
8 | 0 | 8 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 9 | 0 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 9 | 0 | 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 | 10 | 0 | 1.4 | dash | - |
28 | 28 | 0 | 3.0 | bash | - |
24 | 16 | 8 | 3.3 | zsh | - |
18 | 17 | 0 | 30.7 | bumpleak/osh | mut |
25 | 17 | 8 | 32.1 | _bin/cxx-opt+bumproot/osh | mut |
27 | 15 | 12 | 32.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
35 | 23 | 12 | 26.3 | osh-native | mut+alloc |
36 | 28 | 8 | 26.5 | osh-native | mut+alloc+free |
28 | 27 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
27 | 23 | 4 | 8.1 | osh-native | mut+alloc+free+gc+exit |
54 | 38 | 15 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
29 | 18 | 11 | 26.0 | osh-native-souffle | mut+alloc |
31 | 23 | 8 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 22 | 0 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 17 | 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 |
73 | 65 | 8 | 3.1 | bash | - |
167 | 138 | 28 | 54.3 | bumpleak/osh | mut |
182 | 107 | 75 | 56.5 | _bin/cxx-opt+bumproot/osh | mut |
194 | 122 | 71 | 56.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 113 | 100 | 47.3 | osh-native | mut+alloc |
220 | 144 | 76 | 49.0 | osh-native | mut+alloc+free |
183 | 107 | 75 | 8.5 | osh-native | mut+alloc+free+gc |
182 | 135 | 48 | 8.8 | osh-native | mut+alloc+free+gc+exit |
234 | 145 | 89 | 63.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 127 | 84 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 144 | 60 | 46.9 | osh-native-souffle | mut+alloc |
211 | 147 | 64 | 48.7 | osh-native-souffle | mut+alloc+free |
176 | 116 | 60 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
174 | 134 | 40 | 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 | 5 | 3.4 | dash | - |
19 | 13 | 6 | 4.5 | bash | - |
17 | 17 | 1 | 3.4 | zsh | - |
19 | 14 | 5 | 12.2 | bumpleak/osh | mut |
21 | 13 | 9 | 13.4 | _bin/cxx-opt+bumproot/osh | mut |
21 | 17 | 5 | 13.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 12 | 10 | 11.1 | osh-native | mut+alloc |
22 | 11 | 11 | 11.3 | osh-native | mut+alloc+free |
22 | 19 | 4 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 13 | 9 | 8.9 | osh-native | mut+alloc+free+gc+exit |
25 | 12 | 13 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 19 | 6 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 6 | 14 | 10.7 | osh-native-souffle | mut+alloc |
21 | 15 | 6 | 10.7 | osh-native-souffle | mut+alloc+free |
22 | 16 | 6 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 13 | 9 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |