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.1 | 17.8 | 476,737 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.7 | 476,737 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 165 | 25 | 80 | 41.1 | 45.9 | 1,653,325 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 141 | 24 | 64 | 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 | 1 | 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.7 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,841 | osh-native-souffle |
ex.bashcomp-parse-help | 184 | 0 | 3 | 10.3 | 8.8 | 995,274 | 12,911 | 21 | 50,000 | 0 | 3,891 | osh-native |
ex.bashcomp-parse-help | 176 | 0 | 3 | 10.3 | 8.3 | 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.5 | 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 | - |
25 | 21 | 4 | 3.1 | bash | - |
106 | 62 | 51 | 3.3 | zsh | - |
17 | 16 | 0 | 28.0 | bumpleak/osh | mut |
19 | 19 | 0 | 28.4 | _bin/cxx-opt+bumproot/osh | mut |
24 | 24 | 0 | 29.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 21 | 8 | 25.0 | osh-native | mut+alloc |
32 | 24 | 8 | 25.7 | osh-native | mut+alloc+free |
35 | 23 | 12 | 17.8 | osh-native | mut+alloc+free+gc |
36 | 32 | 4 | 18.2 | osh-native | mut+alloc+free+gc+exit |
43 | 23 | 19 | 32.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
50 | 34 | 15 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 22 | 4 | 24.8 | osh-native-souffle | mut+alloc |
29 | 16 | 12 | 25.2 | osh-native-souffle | mut+alloc+free |
32 | 28 | 4 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
33 | 24 | 8 | 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.4 | dash | - |
78 | 74 | 4 | 3.1 | bash | - |
385 | 213 | 194 | 3.7 | zsh | - |
50 | 45 | 4 | 85.5 | bumpleak/osh | mut |
59 | 51 | 8 | 86.3 | _bin/cxx-opt+bumproot/osh | mut |
70 | 58 | 12 | 84.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 64 | 32 | 73.6 | osh-native | mut+alloc |
105 | 85 | 20 | 75.4 | osh-native | mut+alloc+free |
165 | 149 | 16 | 45.9 | osh-native | mut+alloc+free+gc |
173 | 153 | 20 | 46.1 | osh-native | mut+alloc+free+gc+exit |
139 | 95 | 44 | 98.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
250 | 206 | 44 | 61.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 54 | 33 | 73.1 | osh-native-souffle | mut+alloc |
95 | 47 | 47 | 75.0 | osh-native-souffle | mut+alloc+free |
141 | 120 | 20 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
153 | 129 | 24 | 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 | 0 | 7 | 3.3 | zsh | - |
6 | 6 | 0 | 11.1 | bumpleak/osh | mut |
7 | 4 | 4 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
8 | 8 | 0 | 12.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.0 | osh-native | mut+alloc |
10 | 6 | 3 | 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 | 4 | 8 | 11.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
13 | 13 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 0 | 8 | 9.8 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 4 | 4 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
8 | 8 | 0 | 8.1 | 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 | 29 | 0 | 2.9 | bash | - |
23 | 19 | 4 | 3.1 | zsh | - |
18 | 15 | 4 | 30.9 | bumpleak/osh | mut |
26 | 22 | 4 | 32.0 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 31.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.2 | osh-native | mut+alloc |
38 | 19 | 19 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 34 | 19 | 36.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 0 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 15 | 15 | 26.0 | osh-native-souffle | mut+alloc |
32 | 20 | 12 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.7 | 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 |
73 | 69 | 4 | 2.9 | bash | - |
170 | 111 | 59 | 55.8 | bumpleak/osh | mut |
181 | 101 | 80 | 55.9 | _bin/cxx-opt+bumproot/osh | mut |
196 | 148 | 48 | 56.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 137 | 76 | 47.1 | osh-native | mut+alloc |
219 | 134 | 85 | 48.8 | osh-native | mut+alloc+free |
184 | 148 | 36 | 8.8 | osh-native | mut+alloc+free+gc |
184 | 115 | 68 | 8.5 | osh-native | mut+alloc+free+gc+exit |
235 | 159 | 76 | 64.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
213 | 137 | 76 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 130 | 75 | 46.6 | osh-native-souffle | mut+alloc |
212 | 160 | 52 | 48.3 | osh-native-souffle | mut+alloc+free |
176 | 114 | 63 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
176 | 128 | 48 | 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 | 9 | 1 | 3.5 | dash | - |
20 | 12 | 8 | 4.3 | bash | - |
18 | 11 | 8 | 3.4 | zsh | - |
18 | 15 | 3 | 13.4 | bumpleak/osh | mut |
21 | 10 | 11 | 13.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 13.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 12 | 9 | 11.1 | osh-native | mut+alloc |
22 | 13 | 10 | 11.1 | osh-native | mut+alloc+free |
22 | 17 | 5 | 8.9 | osh-native | mut+alloc+free+gc |
23 | 22 | 1 | 9.2 | osh-native | mut+alloc+free+gc+exit |
25 | 15 | 10 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 16 | 10 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 17 | 4 | 10.6 | osh-native-souffle | mut+alloc |
21 | 8 | 14 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 10 | 11 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 11 | 12 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |