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 33 4 11 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.9 471,269 1,282 6 413,162 5 206,581 osh-nosouffle
parse.configure-coreutils 137 25 64 45.9 51.6 1,638,008 4,764 12 1,056,652 6 787,847 osh-native
parse.configure-coreutils 148 24 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.8 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 2 2.8 8.8 572,121 22,608 12 50,000 0 2,992 osh-nosouffle
ex.bashcomp-parse-help 224 0 4 11.6 9.2 990,267 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 227 0 4 11.6 9.4 990,266 15,258 21 50,000 0 3,971 osh-nosouffle
ex.abuild-print-help 21 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 7 0 1.7 dash -
13 12 1 3.4 bash -
90 50 47 3.5 zsh -
16 15 1 28.8 bumpleak/osh mut
17 11 6 30.4 _bin/cxx-opt+bumproot/osh mut
19 12 7 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 18 7 25.4 osh-native mut+alloc
28 21 6 25.8 osh-native mut+alloc+free
33 26 7 18.1 osh-native mut+alloc+free+gc
34 29 5 18.4 osh-native mut+alloc+free+gc+exit
29 17 12 26.0 osh-nosouffle mut+alloc
31 18 13 26.2 osh-nosouffle mut+alloc+free
36 29 7 18.9 osh-nosouffle mut+alloc+free+gc
38 32 6 18.7 osh-nosouffle mut+alloc+free+gc+exit
39 21 18 32.9 _bin/cxx-opt+nopool/osh mut+alloc
45 32 13 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 23 0 1.7 dash -
43 42 1 3.4 bash -
326 188 159 3.5 zsh -
46 36 10 85.0 bumpleak/osh mut
49 39 9 86.3 _bin/cxx-opt+bumproot/osh mut
60 47 13 86.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
82 44 39 73.5 osh-native mut+alloc
92 60 32 75.6 osh-native mut+alloc+free
137 108 29 51.6 osh-native mut+alloc+free+gc
144 122 22 52.3 osh-native mut+alloc+free+gc+exit
97 64 33 74.2 osh-nosouffle mut+alloc
100 71 28 75.9 osh-nosouffle mut+alloc+free
148 132 16 52.1 osh-nosouffle mut+alloc+free+gc
158 129 29 52.9 osh-nosouffle mut+alloc+free+gc+exit
125 76 48 98.3 _bin/cxx-opt+nopool/osh mut+alloc
197 176 21 72.1 _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 2 1 3.1 bash -
7 4 3 3.5 zsh -
6 5 1 12.3 bumpleak/osh mut
6 3 3 13.1 _bin/cxx-opt+bumproot/osh mut
7 6 1 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.6 osh-native mut+alloc
8 5 3 10.7 osh-native mut+alloc+free
9 6 3 8.8 osh-native mut+alloc+free+gc
9 5 5 8.8 osh-native mut+alloc+free+gc+exit
9 4 5 11.0 osh-nosouffle mut+alloc
9 6 3 11.3 osh-nosouffle mut+alloc+free
10 8 2 9.2 osh-nosouffle mut+alloc+free+gc
10 7 3 9.2 osh-nosouffle mut+alloc+free+gc+exit
11 7 5 11.8 _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
9 8 1 1.6 dash -
30 29 1 3.1 bash -
21 15 6 3.5 zsh -
17 13 3 32.2 bumpleak/osh mut
18 13 5 31.8 _bin/cxx-opt+bumproot/osh mut
21 17 4 32.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 16 13 26.9 osh-native mut+alloc
30 18 11 27.0 osh-native mut+alloc+free
20 15 5 8.3 osh-native mut+alloc+free+gc
20 19 1 8.4 osh-native mut+alloc+free+gc+exit
33 23 10 27.3 osh-nosouffle mut+alloc
35 26 9 27.7 osh-nosouffle mut+alloc+free
25 22 3 8.8 osh-nosouffle mut+alloc+free+gc
25 23 2 8.8 osh-nosouffle mut+alloc+free+gc+exit
45 30 15 36.7 _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
103 93 10 3.5 bash -
217 168 49 56.6 bumpleak/osh mut
222 171 51 58.1 _bin/cxx-opt+bumproot/osh mut
241 174 67 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
257 191 65 48.9 osh-native mut+alloc
262 197 65 50.7 osh-native mut+alloc+free
224 175 49 9.2 osh-native mut+alloc+free+gc
223 177 46 8.9 osh-native mut+alloc+free+gc+exit
259 197 62 49.2 osh-nosouffle mut+alloc
268 197 70 51.4 osh-nosouffle mut+alloc+free
227 180 47 9.4 osh-nosouffle mut+alloc+free+gc
227 191 36 9.4 osh-nosouffle mut+alloc+free+gc+exit
279 206 73 64.0 _bin/cxx-opt+nopool/osh mut+alloc
251 203 48 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 6 3 4.1 dash -
16 6 10 4.8 bash -
16 8 8 4.1 zsh -
19 5 14 13.0 bumpleak/osh mut
19 8 11 13.5 _bin/cxx-opt+bumproot/osh mut
18 7 12 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 9 11 11.5 osh-native mut+alloc
21 10 11 11.8 osh-native mut+alloc+free
21 11 11 9.6 osh-native mut+alloc+free+gc
22 11 12 9.7 osh-native mut+alloc+free+gc+exit
20 12 9 12.1 osh-nosouffle mut+alloc
22 11 12 12.3 osh-nosouffle mut+alloc+free
22 10 12 10.1 osh-nosouffle mut+alloc+free+gc
22 16 7 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 11 12 13.2 _bin/cxx-opt+nopool/osh mut+alloc
24 14 10 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc