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 | 11 | 12.1 | 17.8 | 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 | 165 | 23 | 81 | 41.1 | 45.8 | 1,653,325 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 147 | 23 | 69 | 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 | 9 | 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.5 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,841 | osh-native-souffle |
ex.bashcomp-parse-help | 181 | 0 | 3 | 10.3 | 8.8 | 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 | - |
24 | 24 | 0 | 2.9 | bash | - |
105 | 61 | 50 | 3.4 | zsh | - |
16 | 8 | 8 | 28.6 | bumpleak/osh | mut |
20 | 16 | 4 | 28.9 | _bin/cxx-opt+bumproot/osh | mut |
23 | 14 | 9 | 28.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 21 | 8 | 25.0 | osh-native | mut+alloc |
32 | 16 | 16 | 25.7 | osh-native | mut+alloc+free |
37 | 33 | 4 | 17.8 | osh-native | mut+alloc+free+gc |
37 | 22 | 15 | 18.1 | osh-native | mut+alloc+free+gc+exit |
47 | 23 | 23 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
51 | 46 | 4 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 11 | 15 | 24.9 | osh-native-souffle | mut+alloc |
28 | 4 | 25 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 20 | 12 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
34 | 21 | 13 | 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 | 22 | 0 | 1.4 | dash | - |
78 | 74 | 4 | 3.3 | bash | - |
379 | 198 | 204 | 3.5 | zsh | - |
49 | 41 | 8 | 85.8 | bumpleak/osh | mut |
59 | 50 | 8 | 86.2 | _bin/cxx-opt+bumproot/osh | mut |
71 | 67 | 4 | 86.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 68 | 28 | 73.4 | osh-native | mut+alloc |
105 | 80 | 24 | 75.4 | osh-native | mut+alloc+free |
165 | 136 | 28 | 45.8 | osh-native | mut+alloc+free+gc |
165 | 145 | 20 | 46.0 | osh-native | mut+alloc+free+gc+exit |
139 | 98 | 41 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
229 | 205 | 24 | 61.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 52 | 36 | 73.0 | osh-native-souffle | mut+alloc |
96 | 60 | 36 | 75.1 | osh-native-souffle | mut+alloc+free |
147 | 118 | 29 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
149 | 117 | 32 | 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 | 2.9 | bash | - |
8 | 4 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 12.2 | bumpleak/osh | mut |
7 | 3 | 3 | 11.4 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.8 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc |
8 | 0 | 8 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 3 | 6 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
9 | 9 | 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 | - |
29 | 25 | 4 | 3.0 | bash | - |
27 | 23 | 4 | 3.1 | zsh | - |
19 | 19 | 0 | 31.6 | bumpleak/osh | mut |
26 | 18 | 7 | 31.7 | _bin/cxx-opt+bumproot/osh | mut |
28 | 16 | 12 | 33.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 33 | 4 | 26.1 | osh-native | mut+alloc |
38 | 25 | 13 | 26.9 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 46 | 8 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 21 | 9 | 25.8 | osh-native-souffle | mut+alloc |
32 | 24 | 8 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.5 | 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 |
73 | 68 | 4 | 3.1 | bash | - |
168 | 108 | 60 | 54.7 | bumpleak/osh | mut |
181 | 120 | 60 | 56.3 | _bin/cxx-opt+bumproot/osh | mut |
195 | 131 | 63 | 56.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 115 | 95 | 47.0 | osh-native | mut+alloc |
218 | 151 | 67 | 48.8 | osh-native | mut+alloc+free |
181 | 117 | 64 | 8.8 | osh-native | mut+alloc+free+gc |
181 | 125 | 56 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 143 | 91 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
216 | 168 | 48 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 127 | 75 | 46.5 | osh-native-souffle | mut+alloc |
210 | 141 | 68 | 48.3 | osh-native-souffle | mut+alloc+free |
174 | 126 | 49 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 115 | 60 | 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 | 9 | 1 | 3.5 | dash | - |
20 | 6 | 14 | 4.5 | bash | - |
18 | 11 | 8 | 3.4 | zsh | - |
18 | 7 | 12 | 11.4 | bumpleak/osh | mut |
20 | 14 | 6 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
21 | 16 | 5 | 13.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 14 | 7 | 11.0 | osh-native | mut+alloc |
22 | 20 | 3 | 11.1 | osh-native | mut+alloc+free |
22 | 15 | 8 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 14 | 10 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 23 | 2 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 17 | 8 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 16 | 5 | 10.5 | osh-native-souffle | mut+alloc |
22 | 16 | 6 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 15 | 6 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 12 | 10 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |