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 5 12 12.0 18.4 471,263 1,282 6 413,142 5 206,571 osh-native
parse.configure-cpython 36 5 13 12.0 18.9 471,263 1,282 6 413,150 5 206,575 osh-nosouffle
parse.configure-coreutils 133 21 65 45.9 51.7 1,638,002 4,764 12 1,056,640 6 787,841 osh-native
parse.configure-coreutils 143 22 66 45.9 52.3 1,638,001 4,764 12 1,056,648 6 787,845 osh-nosouffle
parse.abuild 9 1 2 2.6 8.8 102,791 180 3 86,628 1 43,314 osh-native
parse.abuild 9 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.3 572,115 22,608 12 50,000 0 2,982 osh-native
ex.compute-fib 25 0 2 2.8 8.5 572,115 22,608 12 50,000 0 2,985 osh-nosouffle
ex.bashcomp-parse-help 174 0 5 11.6 9.0 990,261 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 178 0 6 11.6 9.7 990,260 15,258 21 50,000 0 3,969 osh-nosouffle
ex.abuild-print-help 18 1 2 3.0 9.4 117,219 277 3 83,990 1 41,995 osh-native
ex.abuild-print-help 20 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
5 5 0 1.7 dash -
11 11 0 3.4 bash -
68 45 28 3.4 zsh -
16 10 6 30.5 bumpleak/osh mut
17 12 6 28.9 _bin/cxx-opt+bumproot/osh mut
20 14 5 30.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 17 5 25.6 osh-native mut+alloc
25 15 10 26.0 osh-native mut+alloc+free
32 28 4 18.4 osh-native mut+alloc+free+gc
33 27 6 18.6 osh-native mut+alloc+free+gc+exit
25 17 7 26.0 osh-nosouffle mut+alloc
29 22 7 26.3 osh-nosouffle mut+alloc+free
36 32 4 18.9 osh-nosouffle mut+alloc+free+gc
37 31 6 18.7 osh-nosouffle mut+alloc+free+gc+exit
33 23 10 32.7 _bin/cxx-opt+nopool/osh mut+alloc
46 38 8 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
18 18 0 1.7 dash -
38 37 1 3.5 bash -
240 150 106 3.7 zsh -
50 36 15 84.9 bumpleak/osh mut
54 37 18 85.3 _bin/cxx-opt+bumproot/osh mut
61 45 16 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
71 45 26 73.8 osh-native mut+alloc
84 57 27 75.6 osh-native mut+alloc+free
133 114 19 51.7 osh-native mut+alloc+free+gc
142 120 22 52.4 osh-native mut+alloc+free+gc+exit
81 50 31 74.2 osh-nosouffle mut+alloc
91 65 27 76.0 osh-nosouffle mut+alloc+free
143 124 19 52.3 osh-nosouffle mut+alloc+free+gc
150 130 20 52.9 osh-nosouffle mut+alloc+free+gc+exit
112 82 31 98.7 _bin/cxx-opt+nopool/osh mut+alloc
199 180 19 73.0 _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
1 2 0 1.6 dash -
3 3 0 3.3 bash -
5 5 0 3.5 zsh -
6 2 4 11.8 bumpleak/osh mut
6 2 4 11.6 _bin/cxx-opt+bumproot/osh mut
6 5 1 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
7 3 4 10.6 osh-native mut+alloc
7 5 2 10.7 osh-native mut+alloc+free
9 6 3 8.8 osh-native mut+alloc+free+gc
9 6 3 9.0 osh-native mut+alloc+free+gc+exit
8 4 4 11.0 osh-nosouffle mut+alloc
8 8 0 11.3 osh-nosouffle mut+alloc+free
9 8 2 9.2 osh-nosouffle mut+alloc+free+gc
10 8 2 9.2 osh-nosouffle mut+alloc+free+gc+exit
9 6 3 12.0 _bin/cxx-opt+nopool/osh mut+alloc
11 8 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 -
29 29 0 3.3 bash -
16 12 4 3.5 zsh -
19 13 5 33.7 bumpleak/osh mut
21 16 5 33.3 _bin/cxx-opt+bumproot/osh mut
23 14 9 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 16 9 26.6 osh-native mut+alloc
29 22 7 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
30 24 6 27.5 osh-nosouffle mut+alloc
33 28 5 27.7 osh-nosouffle mut+alloc+free
25 22 3 8.5 osh-nosouffle mut+alloc+free+gc
25 23 2 8.8 osh-nosouffle mut+alloc+free+gc+exit
40 28 13 36.3 _bin/cxx-opt+nopool/osh mut+alloc
29 26 3 9.9 _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
97 96 1 3.5 bash -
172 143 29 56.8 bumpleak/osh mut
182 156 26 56.7 _bin/cxx-opt+bumproot/osh mut
188 158 30 57.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
195 160 34 48.9 osh-native mut+alloc
204 164 40 50.9 osh-native mut+alloc+free
174 149 24 9.0 osh-native mut+alloc+free+gc
174 151 23 9.2 osh-native mut+alloc+free+gc+exit
201 158 43 49.3 osh-nosouffle mut+alloc
212 174 38 51.3 osh-nosouffle mut+alloc+free
178 157 21 9.7 osh-nosouffle mut+alloc+free+gc
178 154 24 9.4 osh-nosouffle mut+alloc+free+gc+exit
220 183 37 64.2 _bin/cxx-opt+nopool/osh mut+alloc
215 198 17 10.8 _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
7 4 3 4.1 dash -
13 10 4 4.8 bash -
12 7 6 3.9 zsh -
15 7 9 14.1 bumpleak/osh mut
17 8 9 13.5 _bin/cxx-opt+bumproot/osh mut
16 8 8 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
16 8 9 11.7 osh-native mut+alloc
18 12 7 11.7 osh-native mut+alloc+free
18 9 9 9.4 osh-native mut+alloc+free+gc
19 10 9 9.6 osh-native mut+alloc+free+gc+exit
17 9 9 12.2 osh-nosouffle mut+alloc
19 12 7 12.1 osh-nosouffle mut+alloc+free
20 9 11 10.1 osh-nosouffle mut+alloc+free+gc
20 13 7 10.2 osh-nosouffle mut+alloc+free+gc+exit
19 13 7 13.2 _bin/cxx-opt+nopool/osh mut+alloc
21 12 9 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc