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.2 471,263 1,282 6 413,142 5 206,571 osh-native
parse.configure-cpython 34 4 10 12.0 18.7 471,263 1,282 6 413,150 5 206,575 osh-nosouffle
parse.configure-coreutils 136 25 62 45.9 51.6 1,638,002 4,764 12 1,056,640 6 787,841 osh-native
parse.configure-coreutils 141 23 58 45.9 52.1 1,638,001 4,764 12 1,056,648 6 787,845 osh-nosouffle
parse.abuild 9 1 2 2.6 8.5 102,791 180 3 86,628 1 43,314 osh-native
parse.abuild 10 1 2 2.6 9.2 102,791 180 3 86,636 1 43,318 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.1 572,115 22,608 12 50,000 0 2,982 osh-native
ex.compute-fib 24 0 1 2.8 8.7 572,115 22,608 12 50,000 0 2,985 osh-nosouffle
ex.bashcomp-parse-help 221 0 3 11.6 8.9 990,261 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 228 0 3 11.6 9.6 990,260 15,258 21 50,000 0 3,969 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.4 117,219 277 3 83,990 1 41,995 osh-native
ex.abuild-print-help 21 1 2 3.0 10.1 117,218 277 3 83,998 1 41,999 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 6 1 1.7 dash -
13 12 1 3.3 bash -
89 55 40 3.4 zsh -
15 9 7 30.3 bumpleak/osh mut
17 11 5 29.0 _bin/cxx-opt+bumproot/osh mut
18 14 4 30.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 18 8 25.6 osh-native mut+alloc
27 17 10 25.7 osh-native mut+alloc+free
31 23 8 18.2 osh-native mut+alloc+free+gc
32 27 5 18.4 osh-native mut+alloc+free+gc+exit
28 20 8 25.8 osh-nosouffle mut+alloc
30 15 15 26.2 osh-nosouffle mut+alloc+free
34 24 10 18.7 osh-nosouffle mut+alloc+free+gc
35 24 10 18.6 osh-nosouffle mut+alloc+free+gc+exit
39 20 19 33.6 _bin/cxx-opt+nopool/osh mut+alloc
43 37 6 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 22 1 1.7 dash -
42 41 1 3.4 bash -
327 182 164 3.8 zsh -
46 36 10 84.7 bumpleak/osh mut
48 38 10 85.0 _bin/cxx-opt+bumproot/osh mut
59 43 16 84.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
82 49 33 73.7 osh-native mut+alloc
93 62 31 75.5 osh-native mut+alloc+free
136 108 28 51.6 osh-native mut+alloc+free+gc
138 115 23 52.4 osh-native mut+alloc+free+gc+exit
91 60 31 74.1 osh-nosouffle mut+alloc
101 68 33 75.9 osh-nosouffle mut+alloc+free
141 122 18 52.1 osh-nosouffle mut+alloc+free+gc
151 119 32 52.9 osh-nosouffle mut+alloc+free+gc+exit
126 68 58 98.2 _bin/cxx-opt+nopool/osh mut+alloc
193 166 27 74.7 _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.4 dash -
4 4 0 3.3 bash -
6 4 2 3.3 zsh -
6 3 3 13.2 bumpleak/osh mut
6 3 3 11.9 _bin/cxx-opt+bumproot/osh mut
7 5 2 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 3 10.6 osh-native mut+alloc
8 5 3 10.6 osh-native mut+alloc+free
9 4 5 8.5 osh-native mut+alloc+free+gc
9 6 3 8.8 osh-native mut+alloc+free+gc+exit
8 5 4 11.0 osh-nosouffle mut+alloc
9 6 3 11.0 osh-nosouffle mut+alloc+free
10 6 4 9.2 osh-nosouffle mut+alloc+free+gc
10 7 3 9.0 osh-nosouffle mut+alloc+free+gc+exit
12 7 5 12.0 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 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
9 9 0 1.6 dash -
30 29 1 3.3 bash -
21 16 5 3.4 zsh -
17 14 3 32.8 bumpleak/osh mut
19 14 5 33.1 _bin/cxx-opt+bumproot/osh mut
21 14 7 33.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 17 11 26.9 osh-native mut+alloc
30 17 13 27.0 osh-native mut+alloc+free
20 19 1 8.1 osh-native mut+alloc+free+gc
19 18 1 8.1 osh-native mut+alloc+free+gc+exit
33 24 9 27.3 osh-nosouffle mut+alloc
35 22 13 27.5 osh-nosouffle mut+alloc+free
24 23 1 8.7 osh-nosouffle mut+alloc+free+gc
25 22 2 8.7 osh-nosouffle mut+alloc+free+gc+exit
45 25 20 36.2 _bin/cxx-opt+nopool/osh mut+alloc
30 28 2 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
104 102 2 3.4 bash -
211 143 68 57.6 bumpleak/osh mut
221 165 56 57.6 _bin/cxx-opt+bumproot/osh mut
237 166 70 57.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
256 175 81 48.8 osh-native mut+alloc
262 184 78 50.7 osh-native mut+alloc+free
221 172 49 8.9 osh-native mut+alloc+free+gc
222 172 50 9.0 osh-native mut+alloc+free+gc+exit
263 191 71 49.3 osh-nosouffle mut+alloc
271 205 66 51.1 osh-nosouffle mut+alloc+free
228 178 50 9.6 osh-nosouffle mut+alloc+free+gc
226 172 55 9.6 osh-nosouffle mut+alloc+free+gc+exit
279 197 82 64.1 _bin/cxx-opt+nopool/osh mut+alloc
254 200 54 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 3 6 4.1 dash -
16 10 6 4.8 bash -
15 9 6 3.9 zsh -
18 9 10 13.4 bumpleak/osh mut
18 9 10 13.4 _bin/cxx-opt+bumproot/osh mut
18 9 9 13.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 7 12 11.5 osh-native mut+alloc
20 12 9 11.8 osh-native mut+alloc+free
20 12 8 9.4 osh-native mut+alloc+free+gc
21 12 9 9.7 osh-native mut+alloc+free+gc+exit
20 9 12 12.2 osh-nosouffle mut+alloc
21 9 13 12.2 osh-nosouffle mut+alloc+free
21 9 12 10.1 osh-nosouffle mut+alloc+free+gc
22 9 13 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 12 11 13.1 _bin/cxx-opt+nopool/osh mut+alloc
23 13 11 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc