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 37 4 11 12.0 18.7 471,269 1,282 6 413,162 5 206,581 osh-nosouffle
parse.configure-coreutils 138 26 64 45.9 51.7 1,638,008 4,764 12 1,056,652 6 787,847 osh-native
parse.configure-coreutils 154 29 70 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 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 234 0 4 11.6 9.0 990,267 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 236 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 22 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 5 2 1.7 dash -
13 12 1 3.3 bash -
95 61 41 3.5 zsh -
16 9 7 29.2 bumpleak/osh mut
17 14 3 30.9 _bin/cxx-opt+bumproot/osh mut
19 9 10 30.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 16 10 25.4 osh-native mut+alloc
28 16 12 25.7 osh-native mut+alloc+free
32 24 8 18.2 osh-native mut+alloc+free+gc
34 28 6 18.1 osh-native mut+alloc+free+gc+exit
29 16 13 25.8 osh-nosouffle mut+alloc
32 24 8 26.2 osh-nosouffle mut+alloc+free
37 33 4 18.7 osh-nosouffle mut+alloc+free+gc
36 34 2 18.7 osh-nosouffle mut+alloc+free+gc+exit
40 26 14 33.3 _bin/cxx-opt+nopool/osh mut+alloc
47 38 9 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.7 dash -
43 41 2 3.5 bash -
350 202 172 3.8 zsh -
46 39 7 86.2 bumpleak/osh mut
50 39 11 85.5 _bin/cxx-opt+bumproot/osh mut
58 48 10 85.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
86 55 30 73.7 osh-native mut+alloc
95 60 36 75.6 osh-native mut+alloc+free
138 111 26 51.7 osh-native mut+alloc+free+gc
146 112 34 52.4 osh-native mut+alloc+free+gc+exit
93 67 26 74.2 osh-nosouffle mut+alloc
103 74 29 75.9 osh-nosouffle mut+alloc+free
154 129 25 52.3 osh-nosouffle mut+alloc+free+gc
162 140 22 52.8 osh-nosouffle mut+alloc+free+gc+exit
126 74 52 98.2 _bin/cxx-opt+nopool/osh mut+alloc
207 171 36 74.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 2 0 1.7 dash -
4 3 1 3.1 bash -
6 4 3 3.4 zsh -
6 3 4 12.9 bumpleak/osh mut
6 5 1 11.1 _bin/cxx-opt+bumproot/osh mut
7 5 2 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.6 osh-native mut+alloc
8 6 2 10.6 osh-native mut+alloc+free
9 8 1 8.7 osh-native mut+alloc+free+gc
9 7 2 8.9 osh-native mut+alloc+free+gc+exit
9 5 4 10.9 osh-nosouffle mut+alloc
9 4 5 11.3 osh-nosouffle mut+alloc+free
10 10 0 9.0 osh-nosouffle mut+alloc+free+gc
10 7 4 9.2 osh-nosouffle mut+alloc+free+gc+exit
11 6 5 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 9 3 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 8 1 1.6 dash -
32 31 1 3.1 bash -
21 16 5 3.4 zsh -
18 11 7 32.8 bumpleak/osh mut
19 13 6 33.0 _bin/cxx-opt+bumproot/osh mut
23 16 7 32.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 17 12 27.0 osh-native mut+alloc
31 23 8 27.0 osh-native mut+alloc+free
21 17 4 8.3 osh-native mut+alloc+free+gc
21 18 3 8.3 osh-native mut+alloc+free+gc+exit
34 25 9 27.3 osh-nosouffle mut+alloc
36 28 8 27.7 osh-nosouffle mut+alloc+free
25 24 1 8.8 osh-nosouffle mut+alloc+free+gc
28 26 2 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 26 20 36.3 _bin/cxx-opt+nopool/osh mut+alloc
30 26 4 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
107 106 1 3.4 bash -
222 170 52 57.1 bumpleak/osh mut
229 190 39 57.1 _bin/cxx-opt+bumproot/osh mut
247 189 58 57.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
264 188 77 48.9 osh-native mut+alloc
274 206 67 50.8 osh-native mut+alloc+free
234 178 56 9.0 osh-native mut+alloc+free+gc
230 181 49 9.0 osh-native mut+alloc+free+gc+exit
270 200 69 49.3 osh-nosouffle mut+alloc
277 214 63 51.3 osh-nosouffle mut+alloc+free
236 184 53 9.6 osh-nosouffle mut+alloc+free+gc
234 185 49 9.6 osh-nosouffle mut+alloc+free+gc+exit
290 225 65 64.2 _bin/cxx-opt+nopool/osh mut+alloc
257 202 55 10.7 _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 -
17 8 10 4.8 bash -
16 6 10 3.9 zsh -
19 8 12 13.5 bumpleak/osh mut
20 8 12 13.7 _bin/cxx-opt+bumproot/osh mut
20 10 11 14.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 5 16 11.5 osh-native mut+alloc
22 13 10 11.8 osh-native mut+alloc+free
22 9 13 9.4 osh-native mut+alloc+free+gc
23 15 9 9.6 osh-native mut+alloc+free+gc+exit
22 14 8 12.1 osh-nosouffle mut+alloc
22 11 12 12.3 osh-nosouffle mut+alloc+free
22 12 11 10.0 osh-nosouffle mut+alloc+free+gc
23 12 12 10.1 osh-nosouffle mut+alloc+free+gc+exit
24 10 14 13.1 _bin/cxx-opt+nopool/osh mut+alloc
25 15 11 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc