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 | 17.8 | 476,752 | 1,282 | 6 | 406,606 | 5 | 203,303 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.4 | 476,752 | 1,282 | 6 | 406,202 | 5 | 203,101 | osh-native-souffle |
parse.configure-coreutils | 149 | 23 | 63 | 44.5 | 49.7 | 1,653,340 | 4,764 | 12 | 1,025,528 | 6 | 764,307 | osh-native |
parse.configure-coreutils | 137 | 23 | 61 | 44.5 | 49.4 | 1,653,339 | 4,764 | 12 | 1,025,398 | 6 | 764,242 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.7 | 101,943 | 180 | 2 | 75,032 | 1 | 37,516 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 7.9 | 101,943 | 180 | 3 | 87,094 | 1 | 43,547 | osh-native-souffle |
ex.compute-fib | 27 | 0 | 1 | 2.1 | 8.0 | 579,607 | 22,608 | 12 | 50,000 | 0 | 2,920 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.1 | 7.5 | 579,607 | 22,608 | 12 | 50,000 | 0 | 2,859 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 3 | 10.3 | 8.7 | 995,289 | 15,258 | 21 | 50,000 | 0 | 3,902 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 3 | 10.3 | 8.1 | 995,288 | 15,258 | 21 | 50,000 | 0 | 3,845 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.2 | 116,319 | 277 | 3 | 85,250 | 1 | 42,625 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 116,319 | 277 | 3 | 85,126 | 1 | 42,563 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 19 | 4 | 3.1 | bash | - |
104 | 63 | 47 | 3.4 | zsh | - |
16 | 16 | 0 | 28.6 | bumpleak/osh | mut |
20 | 12 | 8 | 28.8 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 29.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 18 | 11 | 25.2 | osh-native | mut+alloc |
31 | 19 | 12 | 25.7 | osh-native | mut+alloc+free |
35 | 27 | 8 | 17.8 | osh-native | mut+alloc+free+gc |
36 | 36 | 0 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 31 | 12 | 33.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 31 | 16 | 22.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 13 | 13 | 24.8 | osh-native-souffle | mut+alloc |
28 | 16 | 12 | 25.4 | osh-native-souffle | mut+alloc+free |
32 | 32 | 0 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
33 | 26 | 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 |
22 | 18 | 4 | 1.6 | dash | - |
78 | 74 | 4 | 3.3 | bash | - |
376 | 227 | 169 | 3.7 | zsh | - |
49 | 45 | 4 | 85.1 | bumpleak/osh | mut |
60 | 52 | 8 | 84.6 | _bin/cxx-opt+bumproot/osh | mut |
70 | 66 | 4 | 85.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 58 | 39 | 73.3 | osh-native | mut+alloc |
104 | 68 | 36 | 75.5 | osh-native | mut+alloc+free |
149 | 133 | 16 | 49.7 | osh-native | mut+alloc+free+gc |
155 | 135 | 20 | 50.6 | osh-native | mut+alloc+free+gc+exit |
140 | 80 | 60 | 98.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 172 | 36 | 67.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
87 | 55 | 31 | 73.3 | osh-native-souffle | mut+alloc |
94 | 49 | 45 | 75.0 | osh-native-souffle | mut+alloc+free |
137 | 120 | 16 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
141 | 121 | 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 | 6 | 0 | 2.9 | bash | - |
8 | 4 | 4 | 3.1 | zsh | - |
6 | 6 | 0 | 10.5 | bumpleak/osh | mut |
7 | 7 | 0 | 11.7 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.2 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc |
9 | 5 | 5 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 12 | 0 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 0 | 8 | 9.6 | osh-native-souffle | mut+alloc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc+free |
9 | 9 | 0 | 7.9 | osh-native-souffle | mut+alloc+free+gc |
9 | 6 | 3 | 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 | 11 | 0 | 1.6 | dash | - |
29 | 25 | 4 | 2.9 | bash | - |
24 | 16 | 8 | 3.3 | zsh | - |
18 | 18 | 0 | 31.2 | bumpleak/osh | mut |
26 | 21 | 4 | 32.5 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 32.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 24 | 12 | 26.5 | osh-native | mut+alloc |
38 | 29 | 8 | 26.6 | osh-native | mut+alloc+free |
27 | 23 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
27 | 23 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 42 | 13 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 15 | 15 | 26.1 | osh-native-souffle | mut+alloc |
31 | 11 | 19 | 26.1 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 17 | 4 | 7.7 | 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 | 73 | 0 | 3.1 | bash | - |
166 | 113 | 53 | 54.3 | bumpleak/osh | mut |
182 | 121 | 61 | 55.9 | _bin/cxx-opt+bumproot/osh | mut |
194 | 135 | 59 | 56.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
213 | 140 | 72 | 47.2 | osh-native | mut+alloc |
217 | 136 | 80 | 49.0 | osh-native | mut+alloc+free |
182 | 125 | 57 | 8.7 | osh-native | mut+alloc+free+gc |
182 | 145 | 36 | 8.7 | osh-native | mut+alloc+free+gc+exit |
234 | 129 | 105 | 64.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 165 | 44 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
205 | 136 | 68 | 46.9 | osh-native-souffle | mut+alloc |
209 | 145 | 64 | 48.6 | osh-native-souffle | mut+alloc+free |
174 | 105 | 69 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
174 | 107 | 67 | 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 | 9 | 1 | 3.4 | dash | - |
20 | 14 | 5 | 4.3 | bash | - |
18 | 6 | 12 | 3.5 | zsh | - |
18 | 10 | 8 | 11.5 | bumpleak/osh | mut |
21 | 13 | 8 | 13.1 | _bin/cxx-opt+bumproot/osh | mut |
19 | 15 | 5 | 12.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 18 | 4 | 11.0 | osh-native | mut+alloc |
22 | 10 | 12 | 11.0 | osh-native | mut+alloc+free |
22 | 20 | 3 | 9.2 | osh-native | mut+alloc+free+gc |
22 | 21 | 2 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 23 | 2 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 19 | 6 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 10 | 10 | 10.6 | osh-native-souffle | mut+alloc |
21 | 13 | 8 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 16 | 5 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 21 | 1 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |