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,737 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.6 | 476,737 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 161 | 24 | 76 | 41.1 | 45.8 | 1,653,325 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 135 | 22 | 59 | 44.6 | 49.5 | 1,653,324 | 4,764 | 12 | 1,030,664 | 6 | 769,416 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,928 | 180 | 2 | 75,252 | 1 | 37,626 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.3 | 101,928 | 180 | 2 | 75,122 | 1 | 37,561 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.4 | 7.9 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,903 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.4 | 7.6 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,841 | osh-native-souffle |
ex.bashcomp-parse-help | 180 | 0 | 4 | 10.3 | 8.7 | 995,274 | 12,911 | 21 | 50,000 | 0 | 3,891 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 3 | 10.3 | 8.4 | 995,273 | 12,911 | 21 | 50,000 | 0 | 3,831 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,343 | 270 | 3 | 85,488 | 1 | 42,744 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 116,343 | 270 | 3 | 85,364 | 1 | 42,682 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 3 | 3 | 1.6 | dash | - |
23 | 19 | 4 | 2.9 | bash | - |
105 | 66 | 45 | 3.4 | zsh | - |
16 | 16 | 0 | 29.0 | bumpleak/osh | mut |
19 | 11 | 8 | 28.4 | _bin/cxx-opt+bumproot/osh | mut |
22 | 22 | 0 | 29.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 7 | 22 | 25.2 | osh-native | mut+alloc |
31 | 23 | 8 | 25.7 | osh-native | mut+alloc+free |
36 | 36 | 0 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 32 | 4 | 18.2 | osh-native | mut+alloc+free+gc+exit |
43 | 38 | 4 | 32.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 43 | 4 | 22.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 13 | 13 | 24.8 | osh-native-souffle | mut+alloc |
28 | 20 | 8 | 25.4 | osh-native-souffle | mut+alloc+free |
32 | 27 | 4 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 28 | 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 | 21 | 0 | 1.6 | dash | - |
78 | 70 | 8 | 3.3 | bash | - |
376 | 200 | 196 | 3.4 | zsh | - |
48 | 33 | 15 | 85.3 | bumpleak/osh | mut |
58 | 46 | 12 | 85.7 | _bin/cxx-opt+bumproot/osh | mut |
69 | 56 | 12 | 85.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 64 | 32 | 73.4 | osh-native | mut+alloc |
104 | 81 | 23 | 75.4 | osh-native | mut+alloc+free |
161 | 152 | 8 | 45.8 | osh-native | mut+alloc+free+gc |
159 | 151 | 8 | 46.0 | osh-native | mut+alloc+free+gc+exit |
138 | 94 | 43 | 99.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
215 | 190 | 24 | 61.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 59 | 28 | 73.0 | osh-native-souffle | mut+alloc |
96 | 64 | 32 | 74.9 | osh-native-souffle | mut+alloc+free |
135 | 123 | 12 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
137 | 114 | 23 | 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 | 3.0 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
5 | 5 | 0 | 11.6 | bumpleak/osh | mut |
6 | 6 | 0 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
7 | 3 | 3 | 12.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 4 | 8 | 11.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 6 | 6 | 9.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 7 | 0 | 9.6 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.6 | osh-native-souffle | mut+alloc+free |
8 | 0 | 8 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
8 | 8 | 0 | 8.4 | 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 | 7 | 3 | 1.6 | dash | - |
29 | 24 | 4 | 3.0 | bash | - |
24 | 20 | 4 | 3.1 | zsh | - |
18 | 13 | 4 | 31.5 | bumpleak/osh | mut |
25 | 25 | 0 | 32.4 | _bin/cxx-opt+bumproot/osh | mut |
27 | 23 | 4 | 32.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 32 | 4 | 26.2 | osh-native | mut+alloc |
38 | 22 | 15 | 26.6 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 27 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 23 | 30 | 36.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 36 | 0 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 15 | 15 | 25.8 | osh-native-souffle | mut+alloc |
31 | 19 | 12 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 22 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 21 | 0 | 7.7 | 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 | 73 | 0 | 3.1 | bash | - |
169 | 104 | 64 | 55.9 | bumpleak/osh | mut |
181 | 125 | 56 | 55.5 | _bin/cxx-opt+bumproot/osh | mut |
193 | 133 | 60 | 56.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 124 | 88 | 46.9 | osh-native | mut+alloc |
220 | 152 | 68 | 48.7 | osh-native | mut+alloc+free |
180 | 104 | 76 | 8.7 | osh-native | mut+alloc+free+gc |
181 | 142 | 39 | 8.8 | osh-native | mut+alloc+free+gc+exit |
231 | 151 | 79 | 63.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 136 | 72 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 127 | 76 | 46.7 | osh-native-souffle | mut+alloc |
210 | 139 | 71 | 48.3 | osh-native-souffle | mut+alloc+free |
174 | 134 | 40 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 119 | 56 | 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 | - |
20 | 18 | 3 | 4.5 | bash | - |
18 | 17 | 1 | 3.5 | zsh | - |
17 | 12 | 6 | 13.1 | bumpleak/osh | mut |
20 | 9 | 12 | 12.6 | _bin/cxx-opt+bumproot/osh | mut |
21 | 11 | 10 | 13.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 12 | 11 | 11.1 | osh-native | mut+alloc |
22 | 18 | 4 | 11.0 | osh-native | mut+alloc+free |
22 | 13 | 10 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 6 | 16 | 9.2 | osh-native | mut+alloc+free+gc+exit |
24 | 5 | 20 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 20 | 5 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 12 | 8 | 10.5 | osh-native-souffle | mut+alloc |
21 | 17 | 5 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 15 | 6 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 20 | 2 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |