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.1 | 18.1 | 476,737 | 1,282 | 6 | 409,280 | 5 | 204,640 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.6 | 476,737 | 1,282 | 6 | 408,780 | 5 | 204,390 | osh-native-souffle |
parse.configure-coreutils | 154 | 20 | 69 | 41.1 | 45.8 | 1,653,325 | 4,764 | 12 | 1,591,962 | 7 | 795,981 | osh-native |
parse.configure-coreutils | 133 | 21 | 56 | 44.6 | 49.7 | 1,653,324 | 4,764 | 12 | 1,030,664 | 6 | 769,416 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,928 | 180 | 2 | 75,252 | 1 | 37,626 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.1 | 101,928 | 180 | 2 | 75,122 | 1 | 37,561 | osh-native-souffle |
ex.compute-fib | 28 | 0 | 1 | 2.4 | 7.9 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,903 | osh-native |
ex.compute-fib | 22 | 0 | 1 | 2.4 | 7.7 | 584,193 | 22,608 | 12 | 50,000 | 0 | 2,841 | osh-native-souffle |
ex.bashcomp-parse-help | 183 | 0 | 3 | 10.3 | 8.8 | 995,274 | 12,911 | 21 | 50,000 | 0 | 3,891 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 3 | 10.3 | 8.3 | 995,273 | 12,911 | 21 | 50,000 | 0 | 3,831 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,343 | 270 | 3 | 85,488 | 1 | 42,744 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 116,343 | 270 | 3 | 85,364 | 1 | 42,682 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.6 | dash | - |
23 | 23 | 0 | 3.1 | bash | - |
105 | 50 | 60 | 3.4 | zsh | - |
16 | 12 | 4 | 29.8 | bumpleak/osh | mut |
19 | 19 | 0 | 30.2 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 30.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 22 | 7 | 25.0 | osh-native | mut+alloc |
32 | 16 | 16 | 25.6 | osh-native | mut+alloc+free |
35 | 27 | 8 | 18.1 | osh-native | mut+alloc+free+gc |
36 | 16 | 20 | 18.2 | osh-native | mut+alloc+free+gc+exit |
43 | 35 | 8 | 31.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
46 | 34 | 11 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
27 | 23 | 4 | 24.6 | osh-native-souffle | mut+alloc |
29 | 16 | 12 | 25.3 | osh-native-souffle | mut+alloc+free |
32 | 20 | 12 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 16 | 16 | 17.6 | 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.6 | dash | - |
77 | 73 | 4 | 3.3 | bash | - |
375 | 175 | 220 | 3.4 | zsh | - |
49 | 44 | 4 | 84.8 | bumpleak/osh | mut |
59 | 51 | 8 | 84.8 | _bin/cxx-opt+bumproot/osh | mut |
70 | 66 | 4 | 85.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
97 | 74 | 23 | 73.4 | osh-native | mut+alloc |
106 | 70 | 35 | 75.4 | osh-native | mut+alloc+free |
154 | 134 | 20 | 45.8 | osh-native | mut+alloc+free+gc |
155 | 135 | 20 | 46.1 | osh-native | mut+alloc+free+gc+exit |
138 | 99 | 39 | 98.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
217 | 196 | 20 | 60.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
89 | 35 | 54 | 73.2 | osh-native-souffle | mut+alloc |
96 | 60 | 36 | 75.1 | osh-native-souffle | mut+alloc+free |
133 | 117 | 16 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
138 | 107 | 32 | 50.3 | 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 | 3.0 | bash | - |
8 | 8 | 0 | 3.3 | zsh | - |
6 | 3 | 3 | 10.3 | bumpleak/osh | mut |
6 | 3 | 3 | 10.9 | _bin/cxx-opt+bumproot/osh | mut |
7 | 7 | 0 | 11.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 8 | 0 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 4 | 4 | 8.7 | osh-native | mut+alloc+free+gc+exit |
11 | 8 | 4 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 7 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 8 | 0 | 9.8 | osh-native-souffle | mut+alloc |
8 | 0 | 8 | 9.7 | osh-native-souffle | mut+alloc+free |
8 | 4 | 4 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
9 | 9 | 0 | 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 | 7 | 3 | 1.6 | dash | - |
28 | 24 | 4 | 2.9 | bash | - |
23 | 20 | 4 | 3.3 | zsh | - |
19 | 15 | 4 | 32.4 | bumpleak/osh | mut |
26 | 26 | 0 | 32.8 | _bin/cxx-opt+bumproot/osh | mut |
27 | 16 | 12 | 32.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
36 | 28 | 8 | 26.3 | osh-native | mut+alloc |
37 | 32 | 4 | 26.7 | osh-native | mut+alloc+free |
28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc |
28 | 27 | 0 | 8.0 | osh-native | mut+alloc+free+gc+exit |
53 | 32 | 20 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
29 | 22 | 7 | 26.0 | osh-native-souffle | mut+alloc |
31 | 19 | 12 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 17 | 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 | 69 | 4 | 3.1 | bash | - |
168 | 112 | 56 | 54.7 | bumpleak/osh | mut |
180 | 120 | 60 | 56.1 | _bin/cxx-opt+bumproot/osh | mut |
194 | 129 | 64 | 56.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
211 | 154 | 57 | 47.0 | osh-native | mut+alloc |
218 | 146 | 71 | 48.9 | osh-native | mut+alloc+free |
183 | 135 | 48 | 8.8 | osh-native | mut+alloc+free+gc |
180 | 128 | 52 | 8.8 | osh-native | mut+alloc+free+gc+exit |
231 | 179 | 52 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 149 | 60 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
203 | 139 | 64 | 46.7 | osh-native-souffle | mut+alloc |
211 | 109 | 101 | 48.3 | osh-native-souffle | mut+alloc+free |
174 | 126 | 47 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
174 | 107 | 67 | 8.5 | 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 | 1 | 3.5 | dash | - |
20 | 14 | 7 | 4.5 | bash | - |
18 | 12 | 6 | 3.4 | zsh | - |
19 | 11 | 8 | 11.3 | bumpleak/osh | mut |
20 | 7 | 13 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
20 | 11 | 9 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 7 | 14 | 11.1 | osh-native | mut+alloc |
22 | 20 | 2 | 11.1 | osh-native | mut+alloc+free |
22 | 17 | 6 | 9.0 | osh-native | mut+alloc+free+gc |
22 | 18 | 5 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 14 | 11 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 12 | 14 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 8 | 13 | 10.6 | osh-native-souffle | mut+alloc |
21 | 20 | 2 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 14 | 7 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 13 | 9 | 8.5 | osh-native-souffle | mut+alloc+free+gc+exit |