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 | 9 | 12.1 | 18.0 | 476,708 | 1,282 | 6 | 409,064 | 5 | 204,532 | osh-native |
parse.configure-cpython | 32 | 3 | 9 | 12.0 | 17.6 | 476,708 | 1,282 | 6 | 408,722 | 5 | 204,361 | osh-native-souffle |
parse.configure-coreutils | 152 | 24 | 66 | 44.7 | 49.9 | 1,653,296 | 4,764 | 12 | 1,030,978 | 6 | 769,626 | osh-native |
parse.configure-coreutils | 149 | 26 | 71 | 46.1 | 51.2 | 1,653,295 | 4,764 | 12 | 1,069,088 | 6 | 798,625 | osh-native-souffle |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,899 | 180 | 2 | 75,194 | 1 | 37,597 | osh-native |
parse.abuild | 9 | 1 | 1 | 2.6 | 8.3 | 101,899 | 180 | 2 | 75,064 | 1 | 37,532 | osh-native-souffle |
ex.compute-fib | 29 | 0 | 1 | 2.4 | 8.0 | 584,164 | 22,608 | 12 | 50,000 | 0 | 2,875 | osh-native |
ex.compute-fib | 22 | 0 | 2 | 2.4 | 7.6 | 584,164 | 22,608 | 12 | 50,000 | 0 | 2,813 | osh-native-souffle |
ex.bashcomp-parse-help | 182 | 0 | 4 | 10.3 | 8.7 | 995,245 | 12,911 | 21 | 50,000 | 0 | 3,865 | osh-native |
ex.bashcomp-parse-help | 174 | 0 | 4 | 10.3 | 8.3 | 995,244 | 12,911 | 21 | 50,000 | 0 | 3,795 | osh-native-souffle |
ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 116,314 | 270 | 3 | 85,430 | 1 | 42,715 | osh-native |
ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.5 | 116,314 | 270 | 3 | 85,306 | 1 | 42,653 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
6 | 6 | 0 | 1.4 | dash | - |
24 | 19 | 4 | 3.1 | bash | - |
105 | 59 | 52 | 3.3 | zsh | - |
16 | 12 | 4 | 28.5 | bumpleak/osh | mut |
19 | 15 | 4 | 28.3 | _bin/cxx-opt+bumproot/osh | mut |
23 | 22 | 0 | 28.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
30 | 15 | 15 | 25.2 | osh-native | mut+alloc |
32 | 16 | 16 | 25.7 | osh-native | mut+alloc+free |
36 | 24 | 12 | 18.0 | osh-native | mut+alloc+free+gc |
37 | 37 | 0 | 18.1 | osh-native | mut+alloc+free+gc+exit |
43 | 28 | 16 | 33.3 | _bin/cxx-opt+nopool/osh | mut+alloc |
47 | 35 | 12 | 22.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
28 | 20 | 8 | 24.8 | osh-native-souffle | mut+alloc |
29 | 21 | 8 | 24.9 | osh-native-souffle | mut+alloc+free |
32 | 24 | 8 | 17.6 | osh-native-souffle | mut+alloc+free+gc |
33 | 22 | 11 | 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 |
22 | 22 | 0 | 1.6 | dash | - |
78 | 78 | 0 | 3.3 | bash | - |
382 | 205 | 200 | 3.4 | zsh | - |
48 | 36 | 12 | 84.1 | bumpleak/osh | mut |
60 | 52 | 8 | 85.1 | _bin/cxx-opt+bumproot/osh | mut |
72 | 63 | 8 | 86.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
98 | 63 | 35 | 73.6 | osh-native | mut+alloc |
107 | 70 | 37 | 75.1 | osh-native | mut+alloc+free |
152 | 124 | 28 | 49.9 | osh-native | mut+alloc+free+gc |
159 | 135 | 25 | 50.6 | osh-native | mut+alloc+free+gc+exit |
138 | 117 | 20 | 98.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
209 | 173 | 36 | 67.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
89 | 64 | 24 | 73.2 | osh-native-souffle | mut+alloc |
96 | 52 | 44 | 75.0 | osh-native-souffle | mut+alloc+free |
149 | 110 | 39 | 51.2 | osh-native-souffle | mut+alloc+free+gc |
149 | 125 | 23 | 51.8 | 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 | 4 | 4 | 3.3 | zsh | - |
6 | 6 | 0 | 10.9 | bumpleak/osh | mut |
7 | 7 | 0 | 12.0 | _bin/cxx-opt+bumproot/osh | mut |
8 | 4 | 4 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
9 | 3 | 6 | 10.2 | osh-native | mut+alloc |
9 | 6 | 3 | 10.1 | osh-native | mut+alloc+free |
9 | 9 | 0 | 8.5 | osh-native | mut+alloc+free+gc |
9 | 9 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
12 | 8 | 4 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
12 | 4 | 8 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
8 | 0 | 8 | 9.7 | osh-native-souffle | mut+alloc |
8 | 3 | 5 | 9.7 | osh-native-souffle | mut+alloc+free |
9 | 5 | 5 | 8.3 | 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 | 10 | 0 | 1.4 | dash | - |
29 | 28 | 0 | 2.9 | bash | - |
24 | 16 | 8 | 3.3 | zsh | - |
20 | 16 | 4 | 32.7 | bumpleak/osh | mut |
26 | 22 | 4 | 31.6 | _bin/cxx-opt+bumproot/osh | mut |
28 | 28 | 0 | 31.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
37 | 32 | 4 | 26.2 | osh-native | mut+alloc |
39 | 34 | 4 | 26.6 | osh-native | mut+alloc+free |
29 | 25 | 4 | 8.0 | osh-native | mut+alloc+free+gc |
28 | 24 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
55 | 47 | 8 | 36.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
37 | 37 | 0 | 9.4 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
30 | 19 | 11 | 26.0 | osh-native-souffle | mut+alloc |
32 | 24 | 8 | 26.0 | osh-native-souffle | mut+alloc+free |
22 | 19 | 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 |
73 | 72 | 0 | 3.0 | bash | - |
169 | 120 | 48 | 54.3 | bumpleak/osh | mut |
182 | 122 | 59 | 55.4 | _bin/cxx-opt+bumproot/osh | mut |
193 | 113 | 81 | 57.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
215 | 147 | 67 | 47.2 | osh-native | mut+alloc |
220 | 124 | 96 | 48.8 | osh-native | mut+alloc+free |
182 | 123 | 59 | 8.7 | osh-native | mut+alloc+free+gc |
183 | 123 | 60 | 8.8 | osh-native | mut+alloc+free+gc+exit |
235 | 139 | 95 | 62.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
212 | 164 | 48 | 10.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
206 | 139 | 67 | 46.6 | osh-native-souffle | mut+alloc |
212 | 124 | 88 | 48.2 | osh-native-souffle | mut+alloc+free |
174 | 123 | 51 | 8.3 | osh-native-souffle | mut+alloc+free+gc |
176 | 107 | 68 | 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 | 7 | 3 | 3.5 | dash | - |
20 | 18 | 3 | 4.3 | bash | - |
19 | 10 | 9 | 3.5 | zsh | - |
20 | 17 | 3 | 12.3 | bumpleak/osh | mut |
20 | 12 | 9 | 12.3 | _bin/cxx-opt+bumproot/osh | mut |
22 | 19 | 3 | 13.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
22 | 13 | 9 | 11.1 | osh-native | mut+alloc |
23 | 14 | 9 | 11.0 | osh-native | mut+alloc+free |
23 | 19 | 4 | 9.0 | osh-native | mut+alloc+free+gc |
24 | 19 | 6 | 9.0 | osh-native | mut+alloc+free+gc+exit |
25 | 18 | 7 | 12.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 18 | 7 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
21 | 15 | 5 | 10.7 | osh-native-souffle | mut+alloc |
21 | 13 | 9 | 10.7 | osh-native-souffle | mut+alloc+free |
22 | 6 | 16 | 8.5 | osh-native-souffle | mut+alloc+free+gc |
22 | 21 | 2 | 8.7 | osh-native-souffle | mut+alloc+free+gc+exit |