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 | 36 | 4 | 10 | 12.1 | 18.0 | 476,742 | 1,282 | 6 | 409,294 | 5 | 204,647 | osh-native |
parse.configure-cpython | 33 | 4 | 10 | 12.0 | 17.7 | 476,742 | 1,282 | 6 | 408,794 | 5 | 204,397 | osh-native-souffle |
parse.configure-coreutils | 160 | 23 | 76 | 41.1 | 45.8 | 1,653,330 | 4,764 | 12 | 1,591,976 | 7 | 795,988 | osh-native |
parse.configure-coreutils | 140 | 23 | 65 | 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.5 | 101,933 | 180 | 2 | 75,266 | 1 | 37,633 | osh-native |
parse.abuild | 8 | 1 | 1 | 2.6 | 8.1 | 101,933 | 180 | 2 | 75,136 | 1 | 37,568 | osh-native-souffle |
ex.compute-fib | 28 | 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.7 | 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 | 177 | 0 | 4 | 10.3 | 8.4 | 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.8 | 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 |
6 | 6 | 0 | 1.4 | dash | - |
23 | 23 | 0 | 3.0 | bash | - |
104 | 56 | 54 | 3.3 | zsh | - |
16 | 16 | 0 | 29.2 | bumpleak/osh | mut |
20 | 16 | 4 | 29.9 | _bin/cxx-opt+bumproot/osh | mut |
22 | 18 | 4 | 30.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 22 | 7 | 25.2 | osh-native | mut+alloc |
31 | 23 | 8 | 25.7 | osh-native | mut+alloc+free |
36 | 32 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 29 | 8 | 18.2 | osh-native | mut+alloc+free+gc+exit |
43 | 35 | 8 | 32.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
49 | 44 | 4 | 22.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 19 | 7 | 24.8 | osh-native-souffle | mut+alloc |
28 | 12 | 16 | 25.3 | osh-native-souffle | mut+alloc+free |
33 | 15 | 18 | 17.7 | osh-native-souffle | mut+alloc+free+gc |
34 | 26 | 7 | 17.8 | 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.3 | bash | - |
380 | 199 | 202 | 3.5 | zsh | - |
50 | 41 | 8 | 85.8 | bumpleak/osh | mut |
61 | 61 | 0 | 85.4 | _bin/cxx-opt+bumproot/osh | mut |
71 | 63 | 8 | 85.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
96 | 68 | 28 | 73.6 | osh-native | mut+alloc |
104 | 76 | 28 | 75.4 | osh-native | mut+alloc+free |
160 | 140 | 20 | 45.8 | osh-native | mut+alloc+free+gc |
166 | 142 | 24 | 46.0 | osh-native | mut+alloc+free+gc+exit |
137 | 98 | 39 | 98.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
222 | 186 | 36 | 61.9 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
86 | 55 | 31 | 73.1 | osh-native-souffle | mut+alloc |
96 | 48 | 48 | 75.0 | osh-native-souffle | mut+alloc+free |
140 | 120 | 20 | 49.7 | osh-native-souffle | mut+alloc+free+gc |
145 | 141 | 4 | 50.2 | 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 | 2.9 | bash | - |
8 | 0 | 7 | 3.3 | zsh | - |
6 | 6 | 0 | 12.0 | bumpleak/osh | mut |
6 | 6 | 0 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
7 | 4 | 4 | 11.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
8 | 4 | 4 | 10.1 | osh-native | mut+alloc |
9 | 9 | 0 | 10.2 | osh-native | mut+alloc+free |
9 | 3 | 6 | 8.5 | osh-native | mut+alloc+free+gc |
10 | 3 | 6 | 8.7 | osh-native | mut+alloc+free+gc+exit |
11 | 11 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
11 | 8 | 4 | 9.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 4 | 4 | 9.8 | osh-native-souffle | mut+alloc |
8 | 8 | 0 | 9.8 | osh-native-souffle | mut+alloc+free |
8 | 3 | 6 | 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.4 | dash | - |
29 | 28 | 0 | 2.9 | bash | - |
24 | 16 | 8 | 3.4 | zsh | - |
19 | 19 | 0 | 32.1 | bumpleak/osh | mut |
25 | 21 | 4 | 31.7 | _bin/cxx-opt+bumproot/osh | mut |
28 | 24 | 4 | 31.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 32 | 4 | 26.5 | osh-native | mut+alloc |
38 | 29 | 8 | 26.6 | osh-native | mut+alloc+free |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 7.9 | osh-native | mut+alloc+free+gc+exit |
54 | 31 | 23 | 36.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 33 | 4 | 9.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 19 | 11 | 26.1 | osh-native-souffle | mut+alloc |
31 | 23 | 8 | 26.3 | osh-native-souffle | mut+alloc+free |
22 | 22 | 0 | 7.7 | osh-native-souffle | mut+alloc+free+gc |
22 | 18 | 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.3 | bash | - |
168 | 108 | 60 | 55.0 | bumpleak/osh | mut |
180 | 124 | 56 | 54.6 | _bin/cxx-opt+bumproot/osh | mut |
195 | 142 | 53 | 56.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
212 | 140 | 72 | 47.0 | osh-native | mut+alloc |
220 | 144 | 76 | 48.7 | osh-native | mut+alloc+free |
182 | 139 | 44 | 8.8 | osh-native | mut+alloc+free+gc |
182 | 141 | 40 | 8.8 | osh-native | mut+alloc+free+gc+exit |
234 | 150 | 83 | 64.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
210 | 145 | 65 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 129 | 77 | 46.6 | osh-native-souffle | mut+alloc |
210 | 119 | 91 | 48.3 | osh-native-souffle | mut+alloc+free |
177 | 124 | 52 | 8.4 | osh-native-souffle | mut+alloc+free+gc |
175 | 96 | 80 | 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 | 9 | 2 | 3.4 | dash | - |
20 | 18 | 2 | 4.5 | bash | - |
18 | 9 | 9 | 3.5 | zsh | - |
20 | 16 | 4 | 13.0 | bumpleak/osh | mut |
20 | 15 | 6 | 12.9 | _bin/cxx-opt+bumproot/osh | mut |
22 | 16 | 7 | 13.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
21 | 17 | 5 | 11.0 | osh-native | mut+alloc |
22 | 11 | 12 | 11.1 | osh-native | mut+alloc+free |
22 | 20 | 3 | 9.0 | osh-native | mut+alloc+free+gc |
23 | 21 | 3 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 11 | 14 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 12 | 14 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
20 | 12 | 8 | 10.6 | osh-native-souffle | mut+alloc |
21 | 19 | 2 | 10.7 | osh-native-souffle | mut+alloc+free |
21 | 19 | 3 | 8.8 | osh-native-souffle | mut+alloc+free+gc |
23 | 11 | 11 | 8.8 | osh-native-souffle | mut+alloc+free+gc+exit |