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.0 | 18.1 | 476,751 | 1,282 | 6 | 406,604 | 5 | 203,302 | osh-native |
parse.configure-cpython | 36 | 5 | 12 | 12.0 | 17.7 | 476,751 | 1,282 | 6 | 406,200 | 5 | 203,100 | osh-native-souffle |
parse.configure-coreutils | 141 | 22 | 56 | 44.5 | 49.8 | 1,653,339 | 4,764 | 12 | 1,025,526 | 6 | 764,306 | osh-native |
parse.configure-coreutils | 134 | 23 | 60 | 44.5 | 49.4 | 1,653,338 | 4,764 | 12 | 1,025,396 | 6 | 764,241 | osh-native-souffle |
parse.abuild | 10 | 1 | 2 | 2.6 | 8.5 | 101,942 | 180 | 2 | 75,030 | 1 | 37,515 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 7.7 | 101,942 | 180 | 3 | 87,092 | 1 | 43,546 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.1 | 8.0 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,919 | osh-native |
ex.compute-fib | 21 | 0 | 2 | 2.1 | 7.7 | 579,606 | 22,608 | 12 | 50,000 | 0 | 2,858 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 3 | 10.8 | 8.8 | 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.2 | 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 |
7 | 7 | 0 | 1.4 | dash | - |
23 | 22 | 1 | 3.1 | bash | - |
101 | 58 | 50 | 3.4 | zsh | - |
16 | 11 | 6 | 28.3 | bumpleak/osh | mut |
19 | 16 | 4 | 30.2 | _bin/cxx-opt+bumproot/osh | mut |
23 | 20 | 3 | 29.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 21 | 9 | 25.3 | osh-native | mut+alloc |
31 | 21 | 10 | 25.6 | osh-native | mut+alloc+free |
35 | 31 | 4 | 18.1 | osh-native | mut+alloc+free+gc |
39 | 34 | 5 | 18.1 | osh-native | mut+alloc+free+gc+exit |
42 | 30 | 12 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 39 | 9 | 21.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 18 | 9 | 24.6 | osh-native-souffle | mut+alloc |
28 | 17 | 11 | 25.4 | osh-native-souffle | mut+alloc+free |
36 | 28 | 8 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
37 | 30 | 7 | 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 | 19 | 2 | 1.6 | dash | - |
78 | 77 | 1 | 3.3 | bash | - |
365 | 201 | 185 | 3.7 | zsh | - |
49 | 39 | 10 | 84.5 | bumpleak/osh | mut |
59 | 54 | 5 | 84.5 | _bin/cxx-opt+bumproot/osh | mut |
71 | 59 | 12 | 86.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
95 | 59 | 36 | 73.5 | osh-native | mut+alloc |
104 | 74 | 30 | 75.4 | osh-native | mut+alloc+free |
141 | 123 | 18 | 49.8 | osh-native | mut+alloc+free+gc |
147 | 123 | 24 | 50.5 | osh-native | mut+alloc+free+gc+exit |
141 | 89 | 52 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
236 | 209 | 27 | 66.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 60 | 27 | 73.1 | osh-native-souffle | mut+alloc |
94 | 67 | 27 | 75.0 | osh-native-souffle | mut+alloc+free |
134 | 116 | 19 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
141 | 123 | 18 | 49.9 | 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 | - |
5 | 5 | 1 | 2.9 | bash | - |
7 | 2 | 5 | 3.3 | zsh | - |
6 | 3 | 3 | 11.6 | bumpleak/osh | mut |
6 | 4 | 2 | 10.6 | _bin/cxx-opt+bumproot/osh | mut |
8 | 3 | 5 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 3 | 5 | 10.0 | osh-native | mut+alloc |
9 | 6 | 2 | 10.0 | osh-native | mut+alloc+free |
10 | 7 | 3 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 4 | 5 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 6 | 6 | 11.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 7 | 4 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 3 | 5 | 9.7 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 7 | 2 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
9 | 7 | 2 | 7.9 | 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 | - |
28 | 27 | 1 | 3.0 | bash | - |
24 | 21 | 3 | 3.3 | zsh | - |
18 | 13 | 5 | 31.5 | bumpleak/osh | mut |
25 | 19 | 7 | 32.8 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 31.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 23 | 14 | 26.5 | osh-native | mut+alloc |
37 | 26 | 11 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 26 | 2 | 7.9 | osh-native | mut+alloc+free+gc+exit |
53 | 36 | 18 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 35 | 2 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
29 | 20 | 10 | 26.1 | osh-native-souffle | mut+alloc |
31 | 22 | 9 | 26.2 | osh-native-souffle | mut+alloc+free |
21 | 19 | 2 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 4 | 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 | 67 | 6 | 3.0 | bash | - |
166 | 104 | 62 | 56.0 | bumpleak/osh | mut |
183 | 139 | 43 | 56.6 | _bin/cxx-opt+bumproot/osh | mut |
195 | 134 | 60 | 57.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 132 | 77 | 48.2 | osh-native | mut+alloc |
219 | 133 | 86 | 50.0 | osh-native | mut+alloc+free |
182 | 124 | 57 | 8.8 | osh-native | mut+alloc+free+gc |
180 | 127 | 54 | 8.8 | osh-native | mut+alloc+free+gc+exit |
236 | 154 | 82 | 63.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
220 | 168 | 52 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
202 | 127 | 75 | 47.8 | osh-native-souffle | mut+alloc |
208 | 132 | 76 | 49.3 | osh-native-souffle | mut+alloc+free |
174 | 111 | 63 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
174 | 114 | 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 |
9 | 5 | 4 | 3.4 | dash | - |
19 | 9 | 10 | 4.5 | bash | - |
17 | 10 | 8 | 3.5 | zsh | - |
20 | 6 | 14 | 12.8 | bumpleak/osh | mut |
21 | 9 | 12 | 13.7 | _bin/cxx-opt+bumproot/osh | mut |
20 | 8 | 13 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 6 | 16 | 11.0 | osh-native | mut+alloc |
22 | 9 | 14 | 11.3 | osh-native | mut+alloc+free |
22 | 9 | 14 | 9.2 | osh-native | mut+alloc+free+gc |
22 | 12 | 11 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 15 | 10 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 16 | 10 | 10.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 9 | 11 | 10.6 | osh-native-souffle | mut+alloc |
20 | 11 | 10 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 14 | 7 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 12 | 10 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |