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 31 3 9 12.0 18.4 471,269 1,282 6 413,154 5 206,577 osh-native
parse.configure-cpython 34 4 10 12.0 18.7 471,269 1,282 6 413,162 5 206,581 osh-nosouffle
parse.configure-coreutils 138 26 63 45.9 51.7 1,638,008 4,764 12 1,056,652 6 787,847 osh-native
parse.configure-coreutils 179 26 92 45.9 52.3 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 20 0 1 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 222 0 3 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.6 990,266 15,258 21 50,000 0 3,971 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.4 117,228 277 3 84,002 1 42,001 osh-native
ex.abuild-print-help 21 1 2 3.0 10.0 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
6 6 0 1.7 dash -
13 12 1 3.4 bash -
89 56 39 3.5 zsh -
15 12 3 29.2 bumpleak/osh mut
16 10 6 30.1 _bin/cxx-opt+bumproot/osh mut
18 14 5 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 17 9 25.4 osh-native mut+alloc
28 19 9 26.0 osh-native mut+alloc+free
31 23 8 18.4 osh-native mut+alloc+free+gc
32 24 7 18.2 osh-native mut+alloc+free+gc+exit
28 19 9 26.0 osh-nosouffle mut+alloc
30 21 9 26.5 osh-nosouffle mut+alloc+free
34 27 7 18.7 osh-nosouffle mut+alloc+free+gc
35 27 8 18.7 osh-nosouffle mut+alloc+free+gc+exit
39 27 12 33.6 _bin/cxx-opt+nopool/osh mut+alloc
44 37 7 22.8 _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 23 0 1.7 dash -
42 42 0 3.5 bash -
334 195 162 3.7 zsh -
45 35 10 86.0 bumpleak/osh mut
50 41 9 85.9 _bin/cxx-opt+bumproot/osh mut
59 44 15 87.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
83 44 40 73.7 osh-native mut+alloc
94 60 33 75.5 osh-native mut+alloc+free
138 114 24 51.7 osh-native mut+alloc+free+gc
148 126 22 52.5 osh-native mut+alloc+free+gc+exit
92 60 32 74.1 osh-nosouffle mut+alloc
99 67 32 76.1 osh-nosouffle mut+alloc+free
179 146 33 52.3 osh-nosouffle mut+alloc+free+gc
159 128 31 52.9 osh-nosouffle mut+alloc+free+gc+exit
127 90 37 98.0 _bin/cxx-opt+nopool/osh mut+alloc
213 176 37 73.5 _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 2 1 3.1 bash -
6 3 3 3.4 zsh -
6 2 4 11.8 bumpleak/osh mut
6 4 2 12.6 _bin/cxx-opt+bumproot/osh mut
7 5 3 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 10.4 osh-native mut+alloc
8 5 3 10.9 osh-native mut+alloc+free
9 5 4 8.7 osh-native mut+alloc+free+gc
9 6 3 8.7 osh-native mut+alloc+free+gc+exit
9 8 0 10.9 osh-nosouffle mut+alloc
9 6 3 11.1 osh-nosouffle mut+alloc+free
10 7 3 9.0 osh-nosouffle mut+alloc+free+gc
10 7 3 9.2 osh-nosouffle mut+alloc+free+gc+exit
11 5 6 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 7 5 9.6 _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
9 9 0 1.6 dash -
31 31 0 3.1 bash -
21 16 6 3.4 zsh -
16 11 5 33.6 bumpleak/osh mut
18 15 3 33.0 _bin/cxx-opt+bumproot/osh mut
21 14 7 33.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 21 7 26.9 osh-native mut+alloc
31 18 13 27.3 osh-native mut+alloc+free
20 18 2 8.3 osh-native mut+alloc+free+gc
20 17 3 8.3 osh-native mut+alloc+free+gc+exit
33 22 11 27.3 osh-nosouffle mut+alloc
35 29 6 27.7 osh-nosouffle mut+alloc+free
25 22 3 8.8 osh-nosouffle mut+alloc+free+gc
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 30 16 36.3 _bin/cxx-opt+nopool/osh mut+alloc
29 28 1 9.7 _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
102 95 7 3.4 bash -
211 159 52 57.2 bumpleak/osh mut
219 166 53 57.3 _bin/cxx-opt+bumproot/osh mut
235 185 50 57.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
256 195 61 48.8 osh-native mut+alloc
264 184 80 50.8 osh-native mut+alloc+free
222 169 53 9.0 osh-native mut+alloc+free+gc
222 175 47 9.2 osh-native mut+alloc+free+gc+exit
260 172 88 49.4 osh-nosouffle mut+alloc
268 214 54 51.3 osh-nosouffle mut+alloc+free
228 181 47 9.6 osh-nosouffle mut+alloc+free+gc
226 173 54 9.6 osh-nosouffle mut+alloc+free+gc+exit
279 204 75 64.1 _bin/cxx-opt+nopool/osh mut+alloc
250 211 39 10.6 _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 5 3.9 dash -
16 8 8 4.8 bash -
15 8 8 3.9 zsh -
17 5 12 14.2 bumpleak/osh mut
19 8 12 13.6 _bin/cxx-opt+bumproot/osh mut
18 8 11 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 6 13 11.5 osh-native mut+alloc
20 10 11 11.7 osh-native mut+alloc+free
20 9 11 9.4 osh-native mut+alloc+free+gc
21 11 10 9.6 osh-native mut+alloc+free+gc+exit
20 11 9 12.2 osh-nosouffle mut+alloc
21 8 14 12.2 osh-nosouffle mut+alloc+free
21 15 6 10.0 osh-nosouffle mut+alloc+free+gc
24 13 11 9.8 osh-nosouffle mut+alloc+free+gc+exit
23 10 14 13.1 _bin/cxx-opt+nopool/osh mut+alloc
23 13 11 10.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc