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.1 | 18.1 | 476,737 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.4 | 476,737 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 154 | 22 | 69 | 41.1 | 45.8 | 1,653,325 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 134 | 22 | 58 | 44.6 | 49.7 | 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 | 8.0 | 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 | 181 | 0 | 3 | 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 | 8.9 | 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 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
105 | 62 | 49 | 3.4 | zsh | - |
16 | 16 | 0 | 29.9 | bumpleak/osh | mut |
20 | 16 | 4 | 28.9 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 28.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 12 | 16 | 25.2 | osh-native | mut+alloc |
30 | 23 | 8 | 25.7 | osh-native | mut+alloc+free |
37 | 28 | 8 | 18.1 | osh-native | mut+alloc+free+gc |
36 | 25 | 11 | 18.2 | osh-native | mut+alloc+free+gc+exit |
43 | 31 | 12 | 32.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 45 | 4 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 13 | 13 | 24.9 | osh-native-souffle | mut+alloc |
28 | 12 | 16 | 25.4 | osh-native-souffle | mut+alloc+free |
33 | 25 | 8 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
33 | 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 |
22 | 21 | 0 | 1.6 | dash | - |
78 | 78 | 0 | 3.3 | bash | - |
373 | 209 | 185 | 3.7 | zsh | - |
49 | 41 | 8 | 85.1 | bumpleak/osh | mut |
59 | 51 | 8 | 86.2 | _bin/cxx-opt+bumproot/osh | mut |
69 | 50 | 19 | 85.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
95 | 62 | 33 | 73.4 | osh-native | mut+alloc |
104 | 76 | 28 | 75.4 | osh-native | mut+alloc+free |
154 | 133 | 20 | 45.8 | osh-native | mut+alloc+free+gc |
155 | 143 | 12 | 46.1 | osh-native | mut+alloc+free+gc+exit |
141 | 88 | 52 | 99.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
215 | 195 | 20 | 61.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
86 | 49 | 37 | 73.2 | osh-native-souffle | mut+alloc |
96 | 68 | 28 | 75.0 | osh-native-souffle | mut+alloc+free |
134 | 102 | 31 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
138 | 110 | 28 | 50.2 | 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 | 2.9 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 0 | 6 | 10.7 | bumpleak/osh | mut |
6 | 6 | 0 | 10.7 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 10.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 0 | 8 | 10.1 | osh-native | mut+alloc |
8 | 0 | 8 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
7 | 7 | 0 | 9.7 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 8 | 0 | 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 | 10 | 0 | 1.4 | dash | - |
28 | 24 | 4 | 3.0 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
19 | 18 | 0 | 30.9 | bumpleak/osh | mut |
26 | 26 | 0 | 32.6 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 33.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 29 | 8 | 26.5 | osh-native | mut+alloc |
37 | 25 | 12 | 26.7 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 20 | 8 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 37 | 16 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 28 | 8 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 11 | 18 | 26.1 | osh-native-souffle | mut+alloc |
32 | 16 | 16 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 21 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 21 | 0 | 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 |
74 | 70 | 4 | 3.3 | bash | - |
170 | 89 | 81 | 54.5 | bumpleak/osh | mut |
181 | 128 | 52 | 55.5 | _bin/cxx-opt+bumproot/osh | mut |
194 | 97 | 97 | 55.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 135 | 75 | 47.1 | osh-native | mut+alloc |
216 | 128 | 88 | 48.6 | osh-native | mut+alloc+free |
181 | 132 | 48 | 8.7 | osh-native | mut+alloc+free+gc |
180 | 108 | 72 | 8.9 | osh-native | mut+alloc+free+gc+exit |
232 | 128 | 104 | 64.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 155 | 56 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 119 | 83 | 46.7 | osh-native-souffle | mut+alloc |
209 | 146 | 63 | 48.3 | osh-native-souffle | mut+alloc+free |
174 | 103 | 71 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
173 | 121 | 52 | 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 | 10 | 0 | 3.4 | dash | - |
19 | 19 | 1 | 4.3 | bash | - |
18 | 11 | 7 | 3.5 | zsh | - |
18 | 11 | 7 | 11.5 | bumpleak/osh | mut |
21 | 17 | 5 | 12.6 | _bin/cxx-opt+bumproot/osh | mut |
22 | 10 | 12 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 15 | 6 | 11.1 | osh-native | mut+alloc |
22 | 21 | 2 | 11.3 | osh-native | mut+alloc+free |
22 | 14 | 8 | 8.9 | osh-native | mut+alloc+free+gc |
22 | 11 | 12 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 10 | 15 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 17 | 8 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 13 | 7 | 10.6 | osh-native-souffle | mut+alloc |
21 | 18 | 4 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 12 | 9 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 15 | 7 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |