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 35 5 13 12.0 18.1 471,269 1,282 6 413,154 5 206,577 osh-native
parse.configure-cpython 36 4 11 12.0 18.6 471,269 1,282 6 413,162 5 206,581 osh-nosouffle
parse.configure-coreutils 150 28 75 45.9 51.7 1,638,008 4,764 12 1,056,652 6 787,847 osh-native
parse.configure-coreutils 148 25 66 45.9 52.1 1,638,007 4,764 12 1,056,660 6 787,851 osh-nosouffle
parse.abuild 9 1 2 2.6 8.7 102,797 180 3 86,640 1 43,320 osh-native
parse.abuild 10 1 2 2.6 9.0 102,797 180 3 86,648 1 43,324 osh-nosouffle
ex.compute-fib 21 0 2 2.8 8.3 572,121 22,608 12 50,000 0 2,987 osh-native
ex.compute-fib 25 0 2 2.8 8.8 572,121 22,608 12 50,000 0 2,992 osh-nosouffle
ex.bashcomp-parse-help 228 0 4 11.6 9.0 990,267 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 228 0 4 11.6 9.8 990,266 15,258 21 50,000 0 3,971 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.6 117,225 277 3 84,002 1 42,001 osh-native
ex.abuild-print-help 21 1 2 3.0 10.0 117,224 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
6 6 0 1.7 dash -
13 11 2 3.3 bash -
90 49 48 3.5 zsh -
15 12 3 29.8 bumpleak/osh mut
16 13 3 30.2 _bin/cxx-opt+bumproot/osh mut
19 13 6 30.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 17 9 25.4 osh-native mut+alloc
29 15 14 25.8 osh-native mut+alloc+free
35 27 8 18.1 osh-native mut+alloc+free+gc
45 36 9 18.2 osh-native mut+alloc+free+gc+exit
28 19 9 25.8 osh-nosouffle mut+alloc
31 19 12 26.2 osh-nosouffle mut+alloc+free
36 27 9 18.6 osh-nosouffle mut+alloc+free+gc
37 30 7 18.7 osh-nosouffle mut+alloc+free+gc+exit
40 23 17 32.6 _bin/cxx-opt+nopool/osh mut+alloc
52 38 14 22.6 _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.6 dash -
42 40 2 3.5 bash -
329 189 163 3.7 zsh -
46 33 13 85.2 bumpleak/osh mut
49 38 11 86.5 _bin/cxx-opt+bumproot/osh mut
60 46 13 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
84 58 26 73.7 osh-native mut+alloc
95 65 30 75.4 osh-native mut+alloc+free
150 125 25 51.7 osh-native mut+alloc+free+gc
154 127 27 52.4 osh-native mut+alloc+free+gc+exit
93 63 30 74.1 osh-nosouffle mut+alloc
100 69 31 75.9 osh-nosouffle mut+alloc+free
148 132 16 52.1 osh-nosouffle mut+alloc+free+gc
155 139 16 52.9 osh-nosouffle mut+alloc+free+gc+exit
126 83 43 98.5 _bin/cxx-opt+nopool/osh mut+alloc
224 183 41 73.2 _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.6 dash -
4 4 0 3.1 bash -
6 3 3 3.3 zsh -
7 5 2 12.2 bumpleak/osh mut
6 3 3 12.7 _bin/cxx-opt+bumproot/osh mut
10 6 5 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.4 osh-native mut+alloc
8 4 4 10.6 osh-native mut+alloc+free
9 7 3 8.7 osh-native mut+alloc+free+gc
10 7 3 8.9 osh-native mut+alloc+free+gc+exit
9 5 3 11.0 osh-nosouffle mut+alloc
9 5 4 11.1 osh-nosouffle mut+alloc+free
10 6 4 9.0 osh-nosouffle mut+alloc+free+gc
10 8 2 9.4 osh-nosouffle mut+alloc+free+gc+exit
11 5 6 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 10 2 9.4 _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 9 1 1.6 dash -
31 30 1 3.1 bash -
21 16 5 3.4 zsh -
17 11 6 33.3 bumpleak/osh mut
18 14 4 33.0 _bin/cxx-opt+bumproot/osh mut
24 20 4 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 18 11 26.7 osh-native mut+alloc
31 20 11 27.0 osh-native mut+alloc+free
21 18 3 8.3 osh-native mut+alloc+free+gc
21 19 2 8.1 osh-native mut+alloc+free+gc+exit
34 24 10 27.3 osh-nosouffle mut+alloc
36 27 9 27.5 osh-nosouffle mut+alloc+free
25 23 2 8.8 osh-nosouffle mut+alloc+free+gc
25 22 3 8.8 osh-nosouffle mut+alloc+free+gc+exit
46 30 16 36.3 _bin/cxx-opt+nopool/osh mut+alloc
31 27 3 10.0 _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
105 102 3 3.4 bash -
214 159 55 56.2 bumpleak/osh mut
224 159 65 57.1 _bin/cxx-opt+bumproot/osh mut
246 184 62 58.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
256 188 68 48.8 osh-native mut+alloc
265 203 62 50.7 osh-native mut+alloc+free
228 184 44 9.0 osh-native mut+alloc+free+gc
224 171 53 9.0 osh-native mut+alloc+free+gc+exit
267 196 71 49.3 osh-nosouffle mut+alloc
277 201 76 51.3 osh-nosouffle mut+alloc+free
228 180 48 9.8 osh-nosouffle mut+alloc+free+gc
229 174 55 9.7 osh-nosouffle mut+alloc+free+gc+exit
282 197 85 64.0 _bin/cxx-opt+nopool/osh mut+alloc
254 205 49 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 5 4 3.9 dash -
16 11 6 4.8 bash -
16 10 7 3.9 zsh -
17 6 12 14.2 bumpleak/osh mut
18 8 11 12.9 _bin/cxx-opt+bumproot/osh mut
18 7 12 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 14 7 11.7 osh-native mut+alloc
21 12 10 11.7 osh-native mut+alloc+free
21 12 9 9.6 osh-native mut+alloc+free+gc
22 10 13 9.7 osh-native mut+alloc+free+gc+exit
21 9 12 12.1 osh-nosouffle mut+alloc
22 9 13 12.2 osh-nosouffle mut+alloc+free
21 13 9 10.0 osh-nosouffle mut+alloc+free+gc
23 12 11 10.2 osh-nosouffle mut+alloc+free+gc+exit
23 13 11 13.2 _bin/cxx-opt+nopool/osh mut+alloc
24 12 12 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc