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 34 5 12 12.0 18.2 471,269 1,282 6 413,154 5 206,577 osh-native
parse.configure-cpython 35 4 10 12.0 18.9 471,269 1,282 6 413,162 5 206,581 osh-nosouffle
parse.configure-coreutils 136 24 61 45.9 51.6 1,638,008 4,764 12 1,056,652 6 787,847 osh-native
parse.configure-coreutils 142 24 58 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.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 25 0 1 2.8 8.7 572,121 22,608 12 50,000 0 2,992 osh-nosouffle
ex.bashcomp-parse-help 222 0 4 11.6 8.9 990,267 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 225 0 3 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.6 117,228 277 3 84,002 1 42,001 osh-native
ex.abuild-print-help 22 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
6 5 1 1.7 dash -
13 11 2 3.3 bash -
89 53 42 3.5 zsh -
17 13 4 29.4 bumpleak/osh mut
16 14 2 29.2 _bin/cxx-opt+bumproot/osh mut
21 14 7 28.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 17 8 25.4 osh-native mut+alloc
28 19 8 25.7 osh-native mut+alloc+free
34 27 7 18.2 osh-native mut+alloc+free+gc
33 24 8 18.4 osh-native mut+alloc+free+gc+exit
30 19 12 26.0 osh-nosouffle mut+alloc
30 20 10 26.3 osh-nosouffle mut+alloc+free
35 23 12 18.9 osh-nosouffle mut+alloc+free+gc
38 31 7 18.7 osh-nosouffle mut+alloc+free+gc+exit
38 24 14 32.8 _bin/cxx-opt+nopool/osh mut+alloc
46 39 7 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 23 0 1.6 dash -
43 41 2 3.4 bash -
326 188 160 3.8 zsh -
45 34 11 86.1 bumpleak/osh mut
48 40 8 86.4 _bin/cxx-opt+bumproot/osh mut
61 44 17 85.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
84 53 32 73.7 osh-native mut+alloc
96 65 31 75.5 osh-native mut+alloc+free
136 112 24 51.6 osh-native mut+alloc+free+gc
141 119 22 52.4 osh-native mut+alloc+free+gc+exit
94 66 28 74.2 osh-nosouffle mut+alloc
103 71 32 75.9 osh-nosouffle mut+alloc+free
142 119 23 52.1 osh-nosouffle mut+alloc+free+gc
148 126 22 52.8 osh-nosouffle mut+alloc+free+gc+exit
125 82 43 97.7 _bin/cxx-opt+nopool/osh mut+alloc
199 162 37 72.6 _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.7 dash -
4 3 1 3.1 bash -
6 5 1 3.4 zsh -
7 5 2 12.5 bumpleak/osh mut
7 3 3 11.7 _bin/cxx-opt+bumproot/osh mut
7 4 3 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.5 osh-native mut+alloc
8 5 3 10.7 osh-native mut+alloc+free
9 7 2 8.7 osh-native mut+alloc+free+gc
9 6 3 9.0 osh-native mut+alloc+free+gc+exit
9 5 3 10.9 osh-nosouffle mut+alloc
9 5 4 11.1 osh-nosouffle mut+alloc+free
10 8 2 9.2 osh-nosouffle mut+alloc+free+gc
10 7 3 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 5 6 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 9 3 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 10 0 1.4 dash -
30 28 2 3.3 bash -
21 17 4 3.4 zsh -
16 14 2 32.5 bumpleak/osh mut
18 14 4 33.1 _bin/cxx-opt+bumproot/osh mut
21 19 2 32.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 14 15 27.0 osh-native mut+alloc
30 19 12 27.3 osh-native mut+alloc+free
20 18 2 8.3 osh-native mut+alloc+free+gc
20 19 1 8.3 osh-native mut+alloc+free+gc+exit
33 24 9 27.3 osh-nosouffle mut+alloc
35 23 11 27.7 osh-nosouffle mut+alloc+free
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 29 17 36.2 _bin/cxx-opt+nopool/osh mut+alloc
30 26 4 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
106 100 6 3.4 bash -
218 166 52 57.1 bumpleak/osh mut
226 183 43 57.2 _bin/cxx-opt+bumproot/osh mut
244 183 60 58.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
257 193 64 48.8 osh-native mut+alloc
262 185 77 50.7 osh-native mut+alloc+free
222 165 57 8.9 osh-native mut+alloc+free+gc
221 168 53 9.0 osh-native mut+alloc+free+gc+exit
260 193 67 49.4 osh-nosouffle mut+alloc
265 205 60 51.3 osh-nosouffle mut+alloc+free
225 176 49 9.6 osh-nosouffle mut+alloc+free+gc
226 185 41 9.7 osh-nosouffle mut+alloc+free+gc+exit
283 207 76 66.0 _bin/cxx-opt+nopool/osh mut+alloc
262 224 38 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 6 3 3.9 dash -
16 9 7 4.8 bash -
15 8 8 4.1 zsh -
19 8 11 12.9 bumpleak/osh mut
19 10 9 13.2 _bin/cxx-opt+bumproot/osh mut
19 7 13 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 10 9 11.7 osh-native mut+alloc
20 8 13 11.7 osh-native mut+alloc+free
20 11 9 9.6 osh-native mut+alloc+free+gc
21 13 8 9.6 osh-native mut+alloc+free+gc+exit
20 9 12 12.2 osh-nosouffle mut+alloc
21 8 14 12.2 osh-nosouffle mut+alloc+free
22 11 11 10.1 osh-nosouffle mut+alloc+free+gc
23 11 12 10.1 osh-nosouffle mut+alloc+free+gc+exit
24 8 17 13.0 _bin/cxx-opt+nopool/osh mut+alloc
23 13 11 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc