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 | 40 | 6 | 13 | 12.0 | 17.8 | 476,751 | 1,282 | 6 | 406,604 | 5 | 203,302 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.4 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 145 | 20 | 59 | 44.5 | 49.9 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 136 | 23 | 59 | 44.5 | 49.3 | 1,653,338 | 4,764 | 12 | 1,025,396 | 6 | 764,241 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,942 | 180 | 2 | 75,030 | 1 | 37,515 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 8.0 | 101,942 | 180 | 3 | 87,092 | 1 | 43,546 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 2 | 2.1 | 8.0 | 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 | 186 | 0 | 4 | 10.8 | 8.9 | 1,006,005 | 15,258 | 21 | 50,000 | 0 | 3,919 | osh-native |
ex.bashcomp-parse-help | 178 | 0 | 4 | 10.8 | 8.4 | 1,006,004 | 15,258 | 21 | 50,000 | 0 | 3,842 | osh-native-souffle |
ex.abuild-print-help | 24 | 1 | 2 | 2.8 | 9.0 | 116,318 | 277 | 3 | 85,248 | 1 | 42,624 | osh-native |
ex.abuild-print-help | 22 | 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 | 6 | 0 | 1.4 | dash | - |
24 | 19 | 4 | 3.0 | bash | - |
105 | 66 | 45 | 3.4 | zsh | - |
16 | 16 | 0 | 29.1 | bumpleak/osh | mut |
19 | 11 | 8 | 29.5 | _bin/cxx-opt+bumproot/osh | mut |
23 | 19 | 4 | 28.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 29 | 0 | 25.3 | osh-native | mut+alloc |
32 | 18 | 14 | 25.6 | osh-native | mut+alloc+free |
40 | 32 | 8 | 17.8 | osh-native | mut+alloc+free+gc |
38 | 30 | 7 | 17.8 | osh-native | mut+alloc+free+gc+exit |
43 | 25 | 17 | 32.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
51 | 39 | 12 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 15 | 12 | 24.9 | osh-native-souffle | mut+alloc |
29 | 17 | 12 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 18 | 15 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
34 | 30 | 4 | 17.8 | 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 | - |
77 | 77 | 0 | 3.1 | bash | - |
375 | 220 | 177 | 3.4 | zsh | - |
48 | 44 | 4 | 85.4 | bumpleak/osh | mut |
60 | 55 | 4 | 85.4 | _bin/cxx-opt+bumproot/osh | mut |
70 | 58 | 12 | 86.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 69 | 28 | 73.7 | osh-native | mut+alloc |
107 | 79 | 28 | 75.4 | osh-native | mut+alloc+free |
145 | 124 | 20 | 49.9 | osh-native | mut+alloc+free+gc |
153 | 137 | 16 | 50.5 | osh-native | mut+alloc+free+gc+exit |
138 | 97 | 41 | 98.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
204 | 175 | 28 | 67.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 63 | 24 | 73.1 | osh-native-souffle | mut+alloc |
97 | 68 | 28 | 75.0 | osh-native-souffle | mut+alloc+free |
136 | 112 | 24 | 49.3 | osh-native-souffle | mut+alloc+free+gc |
139 | 118 | 20 | 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.4 | dash | - |
6 | 3 | 3 | 3.0 | bash | - |
8 | 0 | 8 | 3.1 | zsh | - |
5 | 5 | 0 | 11.7 | bumpleak/osh | mut |
6 | 3 | 3 | 10.7 | _bin/cxx-opt+bumproot/osh | mut |
7 | 3 | 3 | 12.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 9.8 | osh-native | mut+alloc |
8 | 8 | 0 | 10.2 | 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 |
11 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 11 | 0 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 9 | 0 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
9 | 4 | 4 | 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 |
11 | 11 | 0 | 1.4 | dash | - |
29 | 25 | 4 | 2.9 | bash | - |
24 | 16 | 8 | 3.3 | zsh | - |
19 | 15 | 4 | 31.9 | bumpleak/osh | mut |
27 | 19 | 8 | 32.8 | _bin/cxx-opt+bumproot/osh | mut |
28 | 20 | 8 | 31.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 16 | 20 | 26.3 | osh-native | mut+alloc |
55 | 46 | 8 | 26.6 | osh-native | mut+alloc+free |
29 | 26 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
29 | 29 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 38 | 17 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
38 | 34 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 19 | 12 | 25.8 | osh-native-souffle | mut+alloc |
32 | 24 | 8 | 26.0 | osh-native-souffle | mut+alloc+free |
22 | 14 | 7 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 22 | 0 | 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 | 69 | 4 | 3.1 | bash | - |
170 | 109 | 60 | 56.6 | bumpleak/osh | mut |
184 | 135 | 48 | 56.2 | _bin/cxx-opt+bumproot/osh | mut |
197 | 128 | 68 | 57.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
214 | 137 | 77 | 48.1 | osh-native | mut+alloc |
219 | 159 | 60 | 50.0 | osh-native | mut+alloc+free |
186 | 138 | 47 | 8.9 | osh-native | mut+alloc+free+gc |
184 | 140 | 44 | 8.8 | osh-native | mut+alloc+free+gc+exit |
237 | 170 | 67 | 63.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
211 | 155 | 56 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
210 | 137 | 72 | 47.7 | osh-native-souffle | mut+alloc |
215 | 123 | 92 | 49.6 | osh-native-souffle | mut+alloc+free |
178 | 117 | 61 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
178 | 121 | 56 | 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 | 8 | 2 | 3.4 | dash | - |
20 | 18 | 3 | 4.3 | bash | - |
18 | 9 | 10 | 3.4 | zsh | - |
19 | 13 | 5 | 13.1 | bumpleak/osh | mut |
21 | 11 | 11 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
21 | 15 | 6 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 20 | 2 | 11.1 | osh-native | mut+alloc |
23 | 14 | 9 | 11.1 | osh-native | mut+alloc+free |
24 | 12 | 13 | 9.0 | osh-native | mut+alloc+free+gc |
24 | 15 | 9 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 20 | 6 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
27 | 17 | 10 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 18 | 3 | 10.7 | osh-native-souffle | mut+alloc |
22 | 6 | 16 | 10.7 | osh-native-souffle | mut+alloc+free |
22 | 17 | 5 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
23 | 15 | 8 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |