Memory Management Overhead

Source code: oil/benchmarks/gc.sh

GC Stats

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.1 476,742 1,282 6 409,294 5 204,647 osh-native
parse.configure-cpython 33 3 9 12.0 17.6 476,742 1,282 6 408,794 5 204,397 osh-native-souffle
parse.configure-coreutils 168 24 83 41.1 45.7 1,653,330 4,764 12 1,591,976 7 795,988 osh-native
parse.configure-coreutils 144 25 68 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.3 101,933 180 2 75,136 1 37,568 osh-native-souffle
ex.compute-fib 28 0 2 2.1 8.0 579,597 22,608 12 50,000 0 2,910 osh-native
ex.compute-fib 22 0 1 2.1 7.6 579,597 22,608 12 50,000 0 2,848 osh-native-souffle
ex.bashcomp-parse-help 185 0 4 10.3 8.8 995,279 15,258 21 50,000 0 3,893 osh-native
ex.bashcomp-parse-help 176 0 3 10.3 8.4 995,278 15,258 21 50,000 0 3,838 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.9 116,309 277 3 85,502 1 42,751 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,309 277 3 85,378 1 42,689 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 3 3 1.6 dash -
23 19 4 3.1 bash -
105 60 51 3.4 zsh -
17 17 0 28.2 bumpleak/osh mut
19 8 11 29.2 _bin/cxx-opt+bumproot/osh mut
23 23 0 29.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 15 15 25.0 osh-native mut+alloc
33 16 16 25.7 osh-native mut+alloc+free
36 28 8 18.1 osh-native mut+alloc+free+gc
37 29 7 18.1 osh-native mut+alloc+free+gc+exit
43 24 20 33.0 _bin/cxx-opt+nopool/osh mut+alloc
48 48 0 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 8 24.6 osh-native-souffle mut+alloc
29 12 16 25.2 osh-native-souffle mut+alloc+free
33 28 4 17.6 osh-native-souffle mut+alloc+free+gc
33 29 4 17.6 osh-native-souffle mut+alloc+free+gc+exit

parse.configure-coreutils

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.4 dash -
78 74 4 3.0 bash -
381 221 182 3.5 zsh -
50 30 19 85.0 bumpleak/osh mut
59 47 12 86.0 _bin/cxx-opt+bumproot/osh mut
69 57 12 86.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 72 24 73.4 osh-native mut+alloc
106 73 33 75.1 osh-native mut+alloc+free
168 132 36 45.7 osh-native mut+alloc+free+gc
172 148 24 46.1 osh-native mut+alloc+free+gc+exit
138 79 59 97.9 _bin/cxx-opt+nopool/osh mut+alloc
239 215 24 61.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 58 29 73.0 osh-native-souffle mut+alloc
96 68 28 75.0 osh-native-souffle mut+alloc+free
144 116 28 49.7 osh-native-souffle mut+alloc+free+gc
151 119 32 50.3 osh-native-souffle mut+alloc+free+gc+exit

parse.abuild

Parsing abuild from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
2 0 2 1.3 dash -
6 6 0 2.9 bash -
8 0 7 3.3 zsh -
6 3 3 10.5 bumpleak/osh mut
7 3 3 10.9 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.1 osh-native mut+alloc
9 4 4 10.2 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 0 12 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 8 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.7 osh-native-souffle mut+alloc
8 4 4 10.0 osh-native-souffle mut+alloc+free
8 8 0 8.3 osh-native-souffle mut+alloc+free+gc
9 9 0 8.4 osh-native-souffle mut+alloc+free+gc+exit

ex.compute-fib

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 -
28 28 0 3.0 bash -
24 16 8 3.3 zsh -
19 11 7 31.9 bumpleak/osh mut
26 26 0 33.1 _bin/cxx-opt+bumproot/osh mut
29 29 0 31.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 25.8 osh-native mut+alloc
38 22 15 26.2 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
28 24 4 7.7 osh-native mut+alloc+free+gc+exit
54 31 23 35.5 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 19 11 25.6 osh-native-souffle mut+alloc
31 18 13 25.8 osh-native-souffle mut+alloc+free
22 18 4 7.6 osh-native-souffle mut+alloc+free+gc
22 18 4 7.6 osh-native-souffle mut+alloc+free+gc+exit

ex.bashcomp-parse-help

A realistic bash-completion workload.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
75 74 0 3.3 bash -
169 98 71 55.6 bumpleak/osh mut
182 111 71 55.8 _bin/cxx-opt+bumproot/osh mut
194 150 44 56.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 156 56 47.0 osh-native mut+alloc
219 155 64 48.8 osh-native mut+alloc+free
185 137 48 8.8 osh-native mut+alloc+free+gc
183 127 56 8.5 osh-native mut+alloc+free+gc+exit
234 137 97 63.3 _bin/cxx-opt+nopool/osh mut+alloc
214 165 48 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 134 71 46.6 osh-native-souffle mut+alloc
218 166 53 48.4 osh-native-souffle mut+alloc+free
176 116 60 8.4 osh-native-souffle mut+alloc+free+gc
175 114 61 8.5 osh-native-souffle mut+alloc+free+gc+exit

ex.abuild-print-help

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 20 1 4.5 bash -
18 12 7 3.4 zsh -
19 12 7 12.1 bumpleak/osh mut
19 11 9 13.9 _bin/cxx-opt+bumproot/osh mut
22 16 7 13.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 10 11.0 osh-native mut+alloc
22 13 10 11.1 osh-native mut+alloc+free
22 11 12 8.9 osh-native mut+alloc+free+gc
23 13 10 9.0 osh-native mut+alloc+free+gc+exit
25 17 8 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 12 14 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 13 7 10.6 osh-native-souffle mut+alloc
21 13 9 10.7 osh-native-souffle mut+alloc+free
21 16 6 8.7 osh-native-souffle mut+alloc+free+gc
22 22 0 8.7 osh-native-souffle mut+alloc+free+gc+exit