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 | 34 | 3 | 9 | 12.1 | 18.1 | 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 | 150 | 20 | 67 | 41.1 | 45.9 | 1,653,325 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 134 | 22 | 57 | 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.5 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,841 | osh-native-souffle |
ex.bashcomp-parse-help | 180 | 0 | 3 | 10.3 | 8.8 | 995,274 | 12,911 | 21 | 50,000 | 0 | 3,891 | osh-native |
ex.bashcomp-parse-help | 173 | 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 | 9.2 | 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.4 | dash | - |
23 | 19 | 4 | 3.1 | bash | - |
104 | 51 | 60 | 3.4 | zsh | - |
16 | 16 | 0 | 28.5 | bumpleak/osh | mut |
19 | 15 | 4 | 29.8 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 29.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 18 | 11 | 25.2 | osh-native | mut+alloc |
31 | 23 | 8 | 25.7 | osh-native | mut+alloc+free |
34 | 23 | 11 | 18.1 | osh-native | mut+alloc+free+gc |
35 | 31 | 4 | 18.2 | osh-native | mut+alloc+free+gc+exit |
43 | 23 | 19 | 32.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 36 | 12 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 19 | 7 | 24.8 | osh-native-souffle | mut+alloc |
29 | 18 | 11 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 24 | 8 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
32 | 24 | 8 | 17.6 | 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 | 73 | 4 | 3.3 | bash | - |
374 | 205 | 192 | 3.5 | zsh | - |
49 | 41 | 8 | 84.3 | bumpleak/osh | mut |
58 | 54 | 4 | 85.8 | _bin/cxx-opt+bumproot/osh | mut |
70 | 58 | 12 | 85.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
99 | 67 | 32 | 73.6 | osh-native | mut+alloc |
104 | 64 | 40 | 75.4 | osh-native | mut+alloc+free |
150 | 133 | 16 | 45.9 | osh-native | mut+alloc+free+gc |
154 | 137 | 16 | 46.1 | osh-native | mut+alloc+free+gc+exit |
137 | 98 | 39 | 99.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
214 | 193 | 20 | 61.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 62 | 25 | 73.0 | osh-native-souffle | mut+alloc |
96 | 60 | 36 | 74.9 | osh-native-souffle | mut+alloc+free |
134 | 110 | 24 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
141 | 101 | 39 | 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 | 3.0 | bash | - |
8 | 8 | 0 | 3.4 | zsh | - |
6 | 6 | 0 | 11.4 | bumpleak/osh | mut |
7 | 7 | 0 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 3 | 3 | 12.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 0 | 8 | 9.8 | osh-native | mut+alloc |
9 | 4 | 4 | 10.0 | osh-native | mut+alloc+free |
9 | 4 | 4 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
11 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 11 | 0 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 0 | 8 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 8 | 0 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
8 | 4 | 4 | 8.3 | 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 |
11 | 10 | 0 | 1.6 | dash | - |
29 | 28 | 0 | 2.9 | bash | - |
24 | 14 | 9 | 3.3 | zsh | - |
18 | 18 | 0 | 31.3 | bumpleak/osh | mut |
25 | 21 | 4 | 32.0 | _bin/cxx-opt+bumproot/osh | mut |
27 | 23 | 4 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 20 | 16 | 26.3 | osh-native | mut+alloc |
37 | 33 | 4 | 26.7 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 23 | 5 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 49 | 4 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
36 | 36 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
29 | 29 | 0 | 25.8 | osh-native-souffle | mut+alloc |
31 | 23 | 8 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 17 | 4 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
21 | 17 | 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 | 68 | 4 | 3.1 | bash | - |
168 | 108 | 60 | 55.9 | bumpleak/osh | mut |
180 | 108 | 72 | 54.6 | _bin/cxx-opt+bumproot/osh | mut |
194 | 133 | 61 | 56.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 136 | 76 | 47.0 | osh-native | mut+alloc |
219 | 155 | 64 | 48.8 | osh-native | mut+alloc+free |
180 | 144 | 36 | 8.8 | osh-native | mut+alloc+free+gc |
181 | 125 | 56 | 8.8 | osh-native | mut+alloc+free+gc+exit |
232 | 136 | 96 | 63.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 152 | 56 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
202 | 134 | 67 | 46.6 | osh-native-souffle | mut+alloc |
208 | 132 | 76 | 48.3 | osh-native-souffle | mut+alloc+free |
173 | 153 | 20 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
173 | 117 | 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 |
10 | 4 | 5 | 3.5 | dash | - |
19 | 17 | 3 | 4.5 | bash | - |
17 | 13 | 5 | 3.5 | zsh | - |
18 | 14 | 4 | 11.8 | bumpleak/osh | mut |
21 | 11 | 10 | 13.1 | _bin/cxx-opt+bumproot/osh | mut |
19 | 17 | 3 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 13 | 8 | 11.0 | osh-native | mut+alloc |
22 | 11 | 12 | 11.1 | osh-native | mut+alloc+free |
22 | 14 | 8 | 9.2 | osh-native | mut+alloc+free+gc |
22 | 15 | 7 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 22 | 3 | 12.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 16 | 9 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 15 | 6 | 10.6 | osh-native-souffle | mut+alloc |
21 | 5 | 17 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 19 | 2 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 11 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |