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.0 | 18.0 | 476,751 | 1,282 | 6 | 406,604 | 5 | 203,302 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.6 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 152 | 24 | 65 | 44.5 | 49.9 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 142 | 24 | 66 | 44.5 | 49.5 | 1,653,338 | 4,764 | 12 | 1,025,396 | 6 | 764,241 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.7 | 101,942 | 180 | 2 | 75,030 | 1 | 37,515 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 7.9 | 101,942 | 180 | 3 | 87,092 | 1 | 43,546 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 2 | 2.1 | 7.9 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,919 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.1 | 7.6 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,858 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 4 | 10.8 | 8.9 | 1,006,005 | 15,258 | 21 | 50,000 | 0 | 3,919 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 4 | 10.8 | 8.4 | 1,006,004 | 15,258 | 21 | 50,000 | 0 | 3,842 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,318 | 277 | 3 | 85,248 | 1 | 42,624 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 116,318 | 277 | 3 | 85,124 | 1 | 42,562 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 5 | 1 | 1.4 | dash | - |
23 | 22 | 1 | 3.1 | bash | - |
100 | 55 | 52 | 3.4 | zsh | - |
15 | 13 | 2 | 28.6 | bumpleak/osh | mut |
19 | 17 | 2 | 29.9 | _bin/cxx-opt+bumproot/osh | mut |
23 | 17 | 6 | 29.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 18 | 11 | 25.3 | osh-native | mut+alloc |
31 | 21 | 10 | 25.7 | osh-native | mut+alloc+free |
36 | 30 | 6 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 30 | 7 | 18.2 | osh-native | mut+alloc+free+gc+exit |
42 | 23 | 19 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 42 | 5 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 17 | 10 | 24.6 | osh-native-souffle | mut+alloc |
29 | 17 | 12 | 25.0 | osh-native-souffle | mut+alloc+free |
33 | 28 | 5 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
34 | 29 | 5 | 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 |
21 | 21 | 0 | 1.6 | dash | - |
77 | 75 | 2 | 3.3 | bash | - |
362 | 196 | 186 | 3.7 | zsh | - |
47 | 39 | 8 | 84.8 | bumpleak/osh | mut |
60 | 47 | 13 | 84.6 | _bin/cxx-opt+bumproot/osh | mut |
70 | 59 | 11 | 86.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 68 | 29 | 73.5 | osh-native | mut+alloc |
104 | 66 | 39 | 75.2 | osh-native | mut+alloc+free |
152 | 132 | 20 | 49.9 | osh-native | mut+alloc+free+gc |
156 | 133 | 23 | 50.3 | osh-native | mut+alloc+free+gc+exit |
139 | 91 | 48 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 170 | 38 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 54 | 33 | 73.1 | osh-native-souffle | mut+alloc |
95 | 61 | 34 | 75.0 | osh-native-souffle | mut+alloc+free |
142 | 121 | 21 | 49.5 | osh-native-souffle | mut+alloc+free+gc |
147 | 126 | 21 | 50.1 | 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.3 | dash | - |
5 | 3 | 3 | 2.9 | bash | - |
7 | 4 | 3 | 3.3 | zsh | - |
5 | 4 | 1 | 11.8 | bumpleak/osh | mut |
7 | 3 | 4 | 11.8 | _bin/cxx-opt+bumproot/osh | mut |
8 | 6 | 2 | 11.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.0 | osh-native | mut+alloc |
9 | 4 | 5 | 10.1 | osh-native | mut+alloc+free |
9 | 7 | 2 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 5 | 4 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 7 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 8 | 3 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 2 | 5 | 9.6 | osh-native-souffle | mut+alloc |
8 | 2 | 6 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 8 | 1 | 7.9 | osh-native-souffle | mut+alloc+free+gc |
9 | 7 | 2 | 8.0 | 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 | 9 | 1 | 1.4 | dash | - |
28 | 27 | 1 | 3.0 | bash | - |
23 | 16 | 7 | 3.3 | zsh | - |
18 | 14 | 4 | 31.3 | bumpleak/osh | mut |
25 | 20 | 6 | 32.3 | _bin/cxx-opt+bumproot/osh | mut |
28 | 25 | 3 | 33.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 29 | 8 | 26.2 | osh-native | mut+alloc |
38 | 25 | 12 | 26.6 | osh-native | mut+alloc+free |
28 | 27 | 1 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 26 | 2 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 40 | 15 | 35.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 32 | 5 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
29 | 25 | 4 | 25.8 | osh-native-souffle | mut+alloc |
30 | 20 | 11 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 20 | 2 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 19 | 2 | 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 |
74 | 71 | 3 | 3.3 | bash | - |
166 | 124 | 42 | 55.9 | bumpleak/osh | mut |
180 | 127 | 52 | 56.9 | _bin/cxx-opt+bumproot/osh | mut |
193 | 131 | 62 | 57.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 139 | 71 | 48.2 | osh-native | mut+alloc |
218 | 138 | 79 | 49.9 | osh-native | mut+alloc+free |
182 | 133 | 48 | 8.9 | osh-native | mut+alloc+free+gc |
182 | 134 | 48 | 8.8 | osh-native | mut+alloc+free+gc+exit |
233 | 158 | 74 | 63.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 155 | 56 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
202 | 123 | 80 | 47.8 | osh-native-souffle | mut+alloc |
208 | 131 | 77 | 49.6 | osh-native-souffle | mut+alloc+free |
174 | 132 | 42 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
172 | 115 | 57 | 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 | 5 | 5 | 3.5 | dash | - |
19 | 13 | 6 | 4.3 | bash | - |
17 | 7 | 10 | 3.4 | zsh | - |
19 | 7 | 13 | 12.6 | bumpleak/osh | mut |
19 | 8 | 11 | 11.9 | _bin/cxx-opt+bumproot/osh | mut |
19 | 9 | 10 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 9 | 12 | 11.0 | osh-native | mut+alloc |
22 | 8 | 14 | 11.3 | osh-native | mut+alloc+free |
22 | 12 | 11 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 9 | 14 | 8.9 | osh-native | mut+alloc+free+gc+exit |
24 | 10 | 14 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 14 | 11 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 9 | 10 | 10.6 | osh-native-souffle | mut+alloc |
21 | 8 | 13 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 10 | 11 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 13 | 9 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |