Memory Management Overhead

Source code: oils/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 32 4 10 12.0 18.2 471,269 1,282 6 413,154 5 206,577 osh-native
parse.configure-cpython 36 4 10 12.0 18.6 471,269 1,282 6 413,162 5 206,581 osh-nosouffle
parse.configure-coreutils 162 33 85 45.9 51.9 1,638,008 4,764 12 1,056,652 6 787,847 osh-native
parse.configure-coreutils 166 30 81 45.9 51.9 1,638,007 4,764 12 1,056,660 6 787,851 osh-nosouffle
parse.abuild 9 1 2 2.6 8.5 102,797 180 3 86,640 1 43,320 osh-native
parse.abuild 11 1 2 2.6 9.2 102,797 180 3 86,648 1 43,324 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.3 572,121 22,608 12 50,000 0 2,987 osh-native
ex.compute-fib 26 0 2 2.8 8.8 572,121 22,608 12 50,000 0 2,992 osh-nosouffle
ex.bashcomp-parse-help 233 0 4 11.6 9.0 990,267 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 237 0 4 11.6 9.6 990,266 15,258 21 50,000 0 3,971 osh-nosouffle
ex.abuild-print-help 22 1 2 3.0 9.4 117,228 277 3 84,002 1 42,001 osh-native
ex.abuild-print-help 23 1 2 3.0 10.1 117,227 277 3 84,010 1 42,005 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 7 0 1.7 dash -
13 13 0 3.3 bash -
95 61 41 3.4 zsh -
16 9 7 29.0 bumpleak/osh mut
17 15 2 29.6 _bin/cxx-opt+bumproot/osh mut
21 16 5 29.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 19 8 25.4 osh-native mut+alloc
29 21 9 25.7 osh-native mut+alloc+free
32 25 7 18.2 osh-native mut+alloc+free+gc
33 26 7 18.1 osh-native mut+alloc+free+gc+exit
29 23 6 26.0 osh-nosouffle mut+alloc
31 20 11 26.2 osh-nosouffle mut+alloc+free
36 26 10 18.6 osh-nosouffle mut+alloc+free+gc
37 31 5 18.6 osh-nosouffle mut+alloc+free+gc+exit
40 19 21 32.2 _bin/cxx-opt+nopool/osh mut+alloc
48 39 9 22.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

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
23 22 1 1.7 dash -
43 43 0 3.4 bash -
350 199 175 3.8 zsh -
46 38 8 86.1 bumpleak/osh mut
51 39 12 85.9 _bin/cxx-opt+bumproot/osh mut
62 44 18 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
84 60 24 73.8 osh-native mut+alloc
95 61 34 75.4 osh-native mut+alloc+free
162 143 18 51.9 osh-native mut+alloc+free+gc
164 141 23 52.4 osh-native mut+alloc+free+gc+exit
93 57 36 74.2 osh-nosouffle mut+alloc
102 70 32 75.9 osh-nosouffle mut+alloc+free
166 144 22 51.9 osh-nosouffle mut+alloc+free+gc
174 148 26 52.9 osh-nosouffle mut+alloc+free+gc+exit
133 78 55 97.8 _bin/cxx-opt+nopool/osh mut+alloc
226 189 37 72.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

parse.abuild

Parsing abuild from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
2 1 1 1.8 dash -
4 3 1 3.1 bash -
6 4 3 3.4 zsh -
7 3 4 12.0 bumpleak/osh mut
6 4 3 13.3 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 7 1 10.5 osh-native mut+alloc
9 5 4 10.6 osh-native mut+alloc+free
9 5 4 8.5 osh-native mut+alloc+free+gc
9 4 5 8.9 osh-native mut+alloc+free+gc+exit
9 5 3 11.0 osh-nosouffle mut+alloc
9 7 2 11.0 osh-nosouffle mut+alloc+free
11 9 2 9.2 osh-nosouffle mut+alloc+free+gc
11 10 1 9.2 osh-nosouffle mut+alloc+free+gc+exit
11 4 8 11.9 _bin/cxx-opt+nopool/osh mut+alloc
13 8 5 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

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.6 dash -
31 30 1 3.1 bash -
21 15 6 3.4 zsh -
17 11 6 35.6 bumpleak/osh mut
19 15 4 32.9 _bin/cxx-opt+bumproot/osh mut
22 14 8 32.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 16 13 26.9 osh-native mut+alloc
31 14 17 27.3 osh-native mut+alloc+free
20 19 1 8.3 osh-native mut+alloc+free+gc
20 17 3 8.3 osh-native mut+alloc+free+gc+exit
35 28 7 27.3 osh-nosouffle mut+alloc
37 24 13 27.4 osh-nosouffle mut+alloc+free
26 25 1 8.8 osh-nosouffle mut+alloc+free+gc
26 24 2 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 29 18 36.3 _bin/cxx-opt+nopool/osh mut+alloc
32 30 2 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

ex.bashcomp-parse-help

A realistic bash-completion workload.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
110 106 4 3.5 bash -
223 166 57 57.6 bumpleak/osh mut
231 171 59 56.6 _bin/cxx-opt+bumproot/osh mut
251 188 63 57.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
270 208 62 48.9 osh-native mut+alloc
278 196 82 50.9 osh-native mut+alloc+free
233 182 51 9.0 osh-native mut+alloc+free+gc
231 189 42 8.9 osh-native mut+alloc+free+gc+exit
276 206 70 49.3 osh-nosouffle mut+alloc
287 207 80 51.1 osh-nosouffle mut+alloc+free
237 194 43 9.6 osh-nosouffle mut+alloc+free+gc
237 188 49 9.6 osh-nosouffle mut+alloc+free+gc+exit
289 214 75 65.4 _bin/cxx-opt+nopool/osh mut+alloc
259 208 51 10.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

ex.abuild-print-help

Running abuild -h from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
9 4 6 3.8 dash -
17 9 9 4.8 bash -
16 8 8 3.8 zsh -
19 10 10 12.6 bumpleak/osh mut
20 11 10 13.4 _bin/cxx-opt+bumproot/osh mut
20 9 11 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 7 14 11.5 osh-native mut+alloc
23 8 15 11.8 osh-native mut+alloc+free
22 12 11 9.4 osh-native mut+alloc+free+gc
23 10 14 9.7 osh-native mut+alloc+free+gc+exit
23 16 7 11.9 osh-nosouffle mut+alloc
24 12 13 12.2 osh-nosouffle mut+alloc+free
23 12 12 10.1 osh-nosouffle mut+alloc+free+gc
24 14 11 10.2 osh-nosouffle mut+alloc+free+gc+exit
24 9 16 13.1 _bin/cxx-opt+nopool/osh mut+alloc
25 15 11 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc