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.0 | 476,755 | 1,282 | 6 | 406,612 | 5 | 203,306 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.4 | 476,755 | 1,282 | 6 | 406,208 | 5 | 203,104 | osh-native-souffle |
parse.configure-coreutils | 148 | 25 | 62 | 44.5 | 49.7 | 1,653,343 | 4,764 | 12 | 1,025,534 | 6 | 764,310 | osh-native |
parse.configure-coreutils | 136 | 24 | 60 | 44.5 | 49.4 | 1,653,342 | 4,764 | 12 | 1,025,404 | 6 | 764,245 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,946 | 180 | 2 | 75,038 | 1 | 37,519 | osh-native |
parse.abuild | 9 | 1 | 2 | 2.4 | 7.9 | 101,946 | 180 | 3 | 87,100 | 1 | 43,550 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.1 | 8.0 | 579,610 | 22,608 | 12 | 50,000 | 0 | 2,923 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.1 | 7.6 | 579,610 | 22,608 | 12 | 50,000 | 0 | 2,862 | osh-native-souffle |
ex.bashcomp-parse-help | 184 | 0 | 3 | 10.3 | 8.9 | 995,292 | 15,258 | 21 | 50,000 | 0 | 3,905 | osh-native |
ex.bashcomp-parse-help | 175 | 0 | 3 | 10.3 | 8.4 | 995,291 | 15,258 | 21 | 50,000 | 0 | 3,848 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,322 | 277 | 3 | 85,256 | 1 | 42,628 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.5 | 116,322 | 277 | 3 | 85,132 | 1 | 42,566 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 3 | 3 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
104 | 64 | 46 | 3.4 | zsh | - |
16 | 12 | 4 | 29.1 | bumpleak/osh | mut |
20 | 20 | 0 | 30.0 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 29.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 26 | 4 | 25.3 | osh-native | mut+alloc |
31 | 19 | 12 | 25.7 | osh-native | mut+alloc+free |
35 | 26 | 9 | 18.0 | osh-native | mut+alloc+free+gc |
36 | 32 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
44 | 24 | 20 | 32.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 32 | 16 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 11 | 15 | 24.9 | osh-native-souffle | mut+alloc |
29 | 16 | 12 | 25.2 | osh-native-souffle | mut+alloc+free |
32 | 32 | 0 | 17.4 | osh-native-souffle | mut+alloc+free+gc |
33 | 25 | 8 | 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.4 | dash | - |
78 | 78 | 0 | 3.1 | bash | - |
376 | 214 | 184 | 3.7 | zsh | - |
49 | 34 | 15 | 84.2 | bumpleak/osh | mut |
60 | 52 | 8 | 84.6 | _bin/cxx-opt+bumproot/osh | mut |
70 | 66 | 4 | 85.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 78 | 19 | 73.5 | osh-native | mut+alloc |
105 | 66 | 39 | 75.5 | osh-native | mut+alloc+free |
148 | 120 | 28 | 49.7 | osh-native | mut+alloc+free+gc |
168 | 144 | 24 | 50.5 | osh-native | mut+alloc+free+gc+exit |
138 | 95 | 43 | 98.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
204 | 152 | 52 | 66.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
88 | 55 | 32 | 73.1 | osh-native-souffle | mut+alloc |
96 | 60 | 36 | 74.8 | osh-native-souffle | mut+alloc+free |
136 | 112 | 24 | 49.4 | osh-native-souffle | mut+alloc+free+gc |
143 | 135 | 8 | 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 | - |
6 | 3 | 3 | 3.0 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 5 | 0 | 11.9 | bumpleak/osh | mut |
7 | 0 | 7 | 11.3 | _bin/cxx-opt+bumproot/osh | mut |
7 | 0 | 7 | 11.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 3 | 6 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 0 | 9 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc+exit |
12 | 12 | 0 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 4 | 8 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.6 | osh-native-souffle | mut+alloc |
8 | 0 | 8 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 6 | 3 | 7.9 | osh-native-souffle | mut+alloc+free+gc |
9 | 9 | 0 | 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 | - |
29 | 29 | 0 | 2.9 | bash | - |
24 | 14 | 9 | 3.4 | zsh | - |
19 | 14 | 5 | 31.7 | bumpleak/osh | mut |
26 | 25 | 0 | 31.6 | _bin/cxx-opt+bumproot/osh | mut |
29 | 20 | 8 | 32.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 32 | 4 | 26.3 | osh-native | mut+alloc |
38 | 29 | 8 | 26.7 | osh-native | mut+alloc+free |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
54 | 23 | 31 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 9 | 21 | 26.0 | osh-native-souffle | mut+alloc |
31 | 12 | 19 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 21 | 0 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 17 | 4 | 7.3 | 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 |
72 | 68 | 4 | 3.1 | bash | - |
168 | 108 | 60 | 55.6 | bumpleak/osh | mut |
180 | 112 | 68 | 55.7 | _bin/cxx-opt+bumproot/osh | mut |
196 | 128 | 68 | 56.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 148 | 64 | 47.3 | osh-native | mut+alloc |
220 | 132 | 88 | 49.1 | osh-native | mut+alloc+free |
184 | 136 | 48 | 8.9 | osh-native | mut+alloc+free+gc |
182 | 125 | 57 | 8.9 | osh-native | mut+alloc+free+gc+exit |
232 | 132 | 100 | 63.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 149 | 61 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 112 | 92 | 46.9 | osh-native-souffle | mut+alloc |
212 | 132 | 80 | 48.6 | osh-native-souffle | mut+alloc+free |
175 | 127 | 48 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 132 | 44 | 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 |
10 | 10 | 0 | 3.4 | dash | - |
20 | 10 | 10 | 4.5 | bash | - |
18 | 5 | 13 | 3.5 | zsh | - |
19 | 13 | 7 | 12.8 | bumpleak/osh | mut |
20 | 15 | 6 | 12.8 | _bin/cxx-opt+bumproot/osh | mut |
20 | 17 | 4 | 12.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 17 | 5 | 11.0 | osh-native | mut+alloc |
22 | 14 | 9 | 11.1 | osh-native | mut+alloc+free |
22 | 20 | 2 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 21 | 2 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 14 | 11 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
24 | 19 | 6 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 11 | 10 | 10.5 | osh-native-souffle | mut+alloc |
21 | 11 | 11 | 10.6 | osh-native-souffle | mut+alloc+free |
21 | 14 | 8 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 21 | 2 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |