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 | 10 | 12.1 | 18.1 | 476,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.6 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 154 | 20 | 69 | 41.1 | 45.8 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 137 | 23 | 62 | 44.6 | 49.7 | 1,653,329 | 4,764 | 12 | 1,030,678 | 6 | 769,423 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,933 | 180 | 2 | 75,266 | 1 | 37,633 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.3 | 101,933 | 180 | 2 | 75,136 | 1 | 37,568 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 2 | 2.4 | 8.0 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,910 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.4 | 7.6 | 584,198 | 22,608 | 12 | 50,000 | 0 | 2,848 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 4 | 10.3 | 8.8 | 995,279 | 12,911 | 21 | 50,000 | 0 | 3,898 | osh-native |
ex.bashcomp-parse-help | 173 | 0 | 4 | 10.3 | 8.1 | 995,278 | 12,911 | 21 | 50,000 | 0 | 3,838 | osh-native-souffle |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 9.0 | 116,348 | 270 | 3 | 85,502 | 1 | 42,751 | osh-native |
ex.abuild-print-help | 21 | 1 | 2 | 2.8 | 8.7 | 116,348 | 270 | 3 | 85,378 | 1 | 42,689 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 3 | 3 | 1.6 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
105 | 64 | 47 | 3.3 | zsh | - |
16 | 12 | 4 | 29.1 | bumpleak/osh | mut |
19 | 19 | 0 | 30.0 | _bin/cxx-opt+bumproot/osh | mut |
22 | 15 | 7 | 30.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
29 | 22 | 7 | 25.3 | osh-native | mut+alloc |
31 | 19 | 11 | 25.6 | osh-native | mut+alloc+free |
35 | 31 | 4 | 18.1 | osh-native | mut+alloc+free+gc |
36 | 24 | 12 | 18.2 | osh-native | mut+alloc+free+gc+exit |
43 | 27 | 15 | 32.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
48 | 35 | 12 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 22 | 4 | 24.8 | osh-native-souffle | mut+alloc |
28 | 16 | 12 | 25.2 | osh-native-souffle | mut+alloc+free |
33 | 12 | 20 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
34 | 26 | 7 | 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.4 | dash | - |
78 | 77 | 0 | 3.3 | bash | - |
377 | 226 | 172 | 3.5 | zsh | - |
49 | 45 | 4 | 86.0 | bumpleak/osh | mut |
60 | 52 | 8 | 84.4 | _bin/cxx-opt+bumproot/osh | mut |
70 | 58 | 12 | 86.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 64 | 32 | 73.5 | osh-native | mut+alloc |
104 | 72 | 32 | 75.4 | osh-native | mut+alloc+free |
154 | 118 | 35 | 45.8 | osh-native | mut+alloc+free+gc |
160 | 133 | 27 | 46.1 | osh-native | mut+alloc+free+gc+exit |
135 | 81 | 53 | 98.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
216 | 176 | 40 | 61.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
86 | 51 | 35 | 73.2 | osh-native-souffle | mut+alloc |
95 | 55 | 39 | 75.1 | osh-native-souffle | mut+alloc+free |
137 | 113 | 24 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
143 | 126 | 16 | 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 | 2.9 | bash | - |
8 | 0 | 7 | 3.4 | zsh | - |
6 | 6 | 0 | 10.5 | bumpleak/osh | mut |
6 | 0 | 6 | 12.1 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 11.1 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc |
8 | 8 | 0 | 10.0 | osh-native | mut+alloc+free |
9 | 3 | 6 | 8.4 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
11 | 8 | 4 | 11.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 8 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.7 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 8 | 0 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
8 | 4 | 4 | 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.4 | dash | - |
29 | 25 | 4 | 3.0 | bash | - |
24 | 23 | 0 | 3.3 | zsh | - |
18 | 15 | 4 | 32.3 | bumpleak/osh | mut |
26 | 22 | 4 | 32.4 | _bin/cxx-opt+bumproot/osh | mut |
29 | 21 | 7 | 31.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 37 | 0 | 26.3 | osh-native | mut+alloc |
38 | 29 | 8 | 26.5 | osh-native | mut+alloc+free |
29 | 29 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
55 | 43 | 12 | 36.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 32 | 4 | 9.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
31 | 19 | 11 | 26.0 | osh-native-souffle | mut+alloc |
31 | 16 | 16 | 26.2 | osh-native-souffle | mut+alloc+free |
22 | 18 | 4 | 7.6 | osh-native-souffle | mut+alloc+free+gc |
22 | 22 | 0 | 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 |
74 | 66 | 8 | 3.1 | bash | - |
168 | 116 | 52 | 54.0 | bumpleak/osh | mut |
182 | 121 | 60 | 56.2 | _bin/cxx-opt+bumproot/osh | mut |
196 | 108 | 88 | 56.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
210 | 133 | 77 | 46.9 | osh-native | mut+alloc |
216 | 160 | 56 | 48.8 | osh-native | mut+alloc+free |
182 | 125 | 56 | 8.8 | osh-native | mut+alloc+free+gc |
183 | 138 | 45 | 8.8 | osh-native | mut+alloc+free+gc+exit |
231 | 131 | 99 | 64.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
208 | 160 | 48 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
204 | 144 | 60 | 46.6 | osh-native-souffle | mut+alloc |
215 | 143 | 71 | 48.4 | osh-native-souffle | mut+alloc+free |
173 | 113 | 60 | 8.1 | osh-native-souffle | mut+alloc+free+gc |
175 | 131 | 44 | 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 | 7 | 3 | 3.4 | dash | - |
20 | 16 | 4 | 4.5 | bash | - |
18 | 10 | 9 | 3.5 | zsh | - |
18 | 15 | 3 | 11.2 | bumpleak/osh | mut |
19 | 18 | 2 | 13.8 | _bin/cxx-opt+bumproot/osh | mut |
22 | 17 | 6 | 13.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 14 | 7 | 11.0 | osh-native | mut+alloc |
22 | 18 | 4 | 11.1 | osh-native | mut+alloc+free |
22 | 18 | 5 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 13 | 10 | 9.0 | osh-native | mut+alloc+free+gc+exit |
24 | 21 | 3 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
25 | 13 | 12 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 8 | 13 | 10.7 | osh-native-souffle | mut+alloc |
21 | 15 | 6 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 11 | 10 | 8.7 | osh-native-souffle | mut+alloc+free+gc |
21 | 14 | 8 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |