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.0 | 18.0 | 476,772 | 1,282 | 6 | 406,624 | 5 | 203,312 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.4 | 476,772 | 1,282 | 6 | 406,614 | 5 | 203,307 | osh-native-souffle |
parse.configure-coreutils | 140 | 20 | 55 | 44.5 | 49.7 | 1,653,360 | 4,764 | 12 | 1,025,546 | 6 | 764,316 | osh-native |
parse.configure-coreutils | 132 | 21 | 55 | 44.5 | 49.3 | 1,653,359 | 4,764 | 12 | 1,025,536 | 6 | 764,311 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,963 | 180 | 2 | 75,050 | 1 | 37,525 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.4 | 101,963 | 180 | 2 | 75,040 | 1 | 37,520 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 1 | 2.2 | 7.9 | 579,726 | 22,608 | 12 | 50,000 | 0 | 2,928 | osh-native |
ex.compute-fib | 21 | 0 | 1 | 2.2 | 7.6 | 579,726 | 22,608 | 12 | 50,000 | 0 | 2,923 | osh-native-souffle |
ex.bashcomp-parse-help | 185 | 0 | 4 | 11.1 | 8.8 | 1,021,043 | 15,258 | 22 | 50,000 | 0 | 3,917 | osh-native |
ex.bashcomp-parse-help | 177 | 0 | 4 | 11.1 | 8.5 | 1,021,042 | 15,258 | 22 | 50,000 | 0 | 3,917 | osh-native-souffle |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 9.0 | 116,361 | 277 | 3 | 85,266 | 1 | 42,633 | osh-native |
ex.abuild-print-help | 20 | 1 | 2 | 2.8 | 8.7 | 116,361 | 277 | 3 | 85,256 | 1 | 42,628 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 5 | 1 | 1.6 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
99 | 53 | 53 | 3.4 | zsh | - |
16 | 12 | 4 | 28.1 | bumpleak/osh | mut |
20 | 17 | 3 | 29.4 | _bin/cxx-opt+bumproot/osh | mut |
22 | 16 | 6 | 30.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 19 | 10 | 25.2 | osh-native | mut+alloc |
30 | 17 | 14 | 25.7 | osh-native | mut+alloc+free |
34 | 26 | 8 | 18.0 | osh-native | mut+alloc+free+gc |
35 | 24 | 11 | 18.1 | osh-native | mut+alloc+free+gc+exit |
42 | 33 | 9 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 36 | 11 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 16 | 10 | 24.8 | osh-native-souffle | mut+alloc |
28 | 18 | 10 | 25.4 | osh-native-souffle | mut+alloc+free |
32 | 26 | 6 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
33 | 25 | 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 | 20 | 1 | 1.6 | dash | - |
78 | 77 | 1 | 3.3 | bash | - |
359 | 199 | 181 | 3.5 | zsh | - |
49 | 36 | 13 | 84.9 | bumpleak/osh | mut |
59 | 48 | 11 | 85.6 | _bin/cxx-opt+bumproot/osh | mut |
71 | 61 | 10 | 86.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
95 | 62 | 33 | 73.7 | osh-native | mut+alloc |
105 | 60 | 45 | 75.4 | osh-native | mut+alloc+free |
140 | 117 | 23 | 49.7 | osh-native | mut+alloc+free+gc |
143 | 124 | 19 | 50.5 | osh-native | mut+alloc+free+gc+exit |
135 | 88 | 47 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
195 | 168 | 27 | 66.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
86 | 58 | 28 | 73.2 | osh-native-souffle | mut+alloc |
96 | 66 | 30 | 75.0 | osh-native-souffle | mut+alloc+free |
132 | 114 | 18 | 49.3 | osh-native-souffle | mut+alloc+free+gc |
136 | 112 | 24 | 50.0 | 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 | 1 | 1 | 1.3 | dash | - |
5 | 5 | 1 | 3.0 | bash | - |
7 | 6 | 1 | 3.3 | zsh | - |
6 | 5 | 1 | 12.3 | bumpleak/osh | mut |
7 | 4 | 3 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 3 | 15.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc |
8 | 5 | 3 | 10.4 | osh-native | mut+alloc+free |
9 | 6 | 2 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 7 | 2 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 7 | 5 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 8 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.6 | osh-native-souffle | mut+alloc |
8 | 3 | 5 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 4 | 4 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
8 | 6 | 2 | 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 |
10 | 10 | 0 | 1.3 | dash | - |
28 | 27 | 1 | 3.0 | bash | - |
24 | 20 | 4 | 3.3 | zsh | - |
19 | 17 | 2 | 32.5 | bumpleak/osh | mut |
25 | 20 | 5 | 32.4 | _bin/cxx-opt+bumproot/osh | mut |
28 | 25 | 3 | 33.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 27 | 10 | 26.3 | osh-native | mut+alloc |
37 | 25 | 12 | 26.6 | osh-native | mut+alloc+free |
29 | 26 | 3 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 26 | 2 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 36 | 17 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 35 | 2 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
29 | 14 | 15 | 25.8 | osh-native-souffle | mut+alloc |
30 | 23 | 8 | 26.1 | osh-native-souffle | mut+alloc+free |
21 | 18 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
21 | 20 | 1 | 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 |
75 | 71 | 4 | 3.1 | bash | - |
167 | 111 | 56 | 56.7 | bumpleak/osh | mut |
180 | 142 | 38 | 57.4 | _bin/cxx-opt+bumproot/osh | mut |
195 | 128 | 67 | 58.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 144 | 69 | 49.0 | osh-native | mut+alloc |
220 | 137 | 84 | 51.0 | osh-native | mut+alloc+free |
185 | 134 | 52 | 8.8 | osh-native | mut+alloc+free+gc |
183 | 139 | 44 | 8.9 | osh-native | mut+alloc+free+gc+exit |
232 | 150 | 81 | 64.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 152 | 56 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 145 | 58 | 48.6 | osh-native-souffle | mut+alloc |
211 | 136 | 75 | 50.4 | osh-native-souffle | mut+alloc+free |
177 | 118 | 59 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
174 | 121 | 53 | 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 |
9 | 3 | 6 | 3.5 | dash | - |
19 | 12 | 7 | 4.3 | bash | - |
17 | 7 | 10 | 3.5 | zsh | - |
17 | 8 | 10 | 11.7 | bumpleak/osh | mut |
19 | 9 | 10 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
20 | 10 | 10 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
20 | 13 | 8 | 11.1 | osh-native | mut+alloc |
21 | 7 | 15 | 11.3 | osh-native | mut+alloc+free |
21 | 9 | 13 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 12 | 11 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 13 | 12 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 11 | 13 | 9.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
19 | 7 | 13 | 10.5 | osh-native-souffle | mut+alloc |
20 | 15 | 6 | 10.6 | osh-native-souffle | mut+alloc+free |
20 | 9 | 12 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 11 | 11 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |