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 30 4 10 12.0 18.6 471,271 1,282 6 413,158 5 206,579 osh-native
parse.configure-cpython 33 4 10 12.0 18.7 471,271 1,282 6 413,166 5 206,583 osh-nosouffle
parse.configure-coreutils 124 20 59 45.9 51.7 1,638,010 4,764 12 1,056,656 6 787,849 osh-native
parse.configure-coreutils 134 20 59 45.9 52.3 1,638,009 4,764 12 1,056,664 6 787,853 osh-nosouffle
parse.abuild 8 1 2 2.6 8.7 102,799 180 3 86,644 1 43,322 osh-native
parse.abuild 9 1 2 2.6 9.3 102,799 180 3 86,652 1 43,326 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.4 572,123 22,608 12 50,000 0 2,990 osh-native
ex.compute-fib 25 0 2 2.8 8.8 572,123 22,608 12 50,000 0 2,994 osh-nosouffle
ex.bashcomp-parse-help 171 0 5 11.6 9.0 990,269 15,258 21 50,000 0 3,967 osh-native
ex.bashcomp-parse-help 176 0 5 11.6 9.7 990,268 15,258 21 50,000 0 3,973 osh-nosouffle
ex.abuild-print-help 17 1 2 3.0 9.6 117,230 277 3 84,006 1 42,003 osh-native
ex.abuild-print-help 18 1 2 3.0 10.1 117,229 277 3 84,014 1 42,007 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 10 1 3.3 bash -
64 40 29 3.5 zsh -
16 13 3 29.1 bumpleak/osh mut
17 13 4 29.1 _bin/cxx-opt+bumproot/osh mut
19 12 7 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 13 8 25.4 osh-native mut+alloc
25 18 6 26.0 osh-native mut+alloc+free
30 26 4 18.6 osh-native mut+alloc+free+gc
32 26 6 18.3 osh-native mut+alloc+free+gc+exit
24 15 9 26.1 osh-nosouffle mut+alloc
27 20 7 26.3 osh-nosouffle mut+alloc+free
33 29 4 18.7 osh-nosouffle mut+alloc+free+gc
35 26 9 18.7 osh-nosouffle mut+alloc+free+gc+exit
33 23 11 32.6 _bin/cxx-opt+nopool/osh mut+alloc
44 32 12 23.1 _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 -
236 143 108 3.7 zsh -
49 32 17 85.3 bumpleak/osh mut
53 40 13 86.6 _bin/cxx-opt+bumproot/osh mut
61 43 18 85.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
71 39 32 73.8 osh-native mut+alloc
83 62 21 75.6 osh-native mut+alloc+free
124 107 17 51.7 osh-native mut+alloc+free+gc
134 118 16 52.7 osh-native mut+alloc+free+gc+exit
80 60 20 74.2 osh-nosouffle mut+alloc
92 67 25 76.0 osh-nosouffle mut+alloc+free
134 119 15 52.3 osh-nosouffle mut+alloc+free+gc
140 123 17 52.8 osh-nosouffle mut+alloc+free+gc+exit
109 71 38 98.7 _bin/cxx-opt+nopool/osh mut+alloc
179 149 30 73.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
1 1 1 1.6 dash -
3 3 0 3.3 bash -
5 1 4 3.4 zsh -
6 3 3 11.8 bumpleak/osh mut
6 4 2 12.5 _bin/cxx-opt+bumproot/osh mut
6 4 2 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
6 6 0 10.7 osh-native mut+alloc
7 3 4 10.7 osh-native mut+alloc+free
8 7 1 8.7 osh-native mut+alloc+free+gc
8 7 2 8.9 osh-native mut+alloc+free+gc+exit
7 5 2 11.0 osh-nosouffle mut+alloc
8 6 2 11.1 osh-nosouffle mut+alloc+free
9 7 2 9.3 osh-nosouffle mut+alloc+free+gc
9 5 4 9.3 osh-nosouffle mut+alloc+free+gc+exit
9 7 2 11.9 _bin/cxx-opt+nopool/osh mut+alloc
11 8 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
9 9 0 1.6 dash -
29 28 1 3.4 bash -
17 15 2 3.5 zsh -
19 12 6 33.6 bumpleak/osh mut
20 16 4 32.9 _bin/cxx-opt+bumproot/osh mut
22 17 5 32.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 18 7 26.9 osh-native mut+alloc
28 19 8 27.1 osh-native mut+alloc+free
20 19 1 8.4 osh-native mut+alloc+free+gc
20 18 2 8.3 osh-native mut+alloc+free+gc+exit
31 24 6 27.4 osh-nosouffle mut+alloc
33 27 6 27.8 osh-nosouffle mut+alloc+free
25 22 3 8.8 osh-nosouffle mut+alloc+free+gc
25 22 3 8.8 osh-nosouffle mut+alloc+free+gc+exit
39 28 11 36.7 _bin/cxx-opt+nopool/osh mut+alloc
28 27 1 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
97 93 4 3.4 bash -
172 138 34 56.4 bumpleak/osh mut
180 152 28 57.0 _bin/cxx-opt+bumproot/osh mut
187 156 31 57.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
192 158 34 48.8 osh-native mut+alloc
202 161 40 50.9 osh-native mut+alloc+free
171 150 21 9.0 osh-native mut+alloc+free+gc
171 150 21 9.2 osh-native mut+alloc+free+gc+exit
201 171 29 49.3 osh-nosouffle mut+alloc
209 181 28 51.3 osh-nosouffle mut+alloc+free
176 155 21 9.7 osh-nosouffle mut+alloc+free+gc
177 156 21 9.6 osh-nosouffle mut+alloc+free+gc+exit
219 173 46 64.5 _bin/cxx-opt+nopool/osh mut+alloc
199 179 20 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
7 5 2 3.9 dash -
13 8 5 4.8 bash -
11 6 5 3.8 zsh -
17 10 7 13.8 bumpleak/osh mut
15 10 5 12.9 _bin/cxx-opt+bumproot/osh mut
15 12 4 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
16 10 6 11.7 osh-native mut+alloc
17 6 12 11.7 osh-native mut+alloc+free
17 12 6 9.6 osh-native mut+alloc+free+gc
18 11 7 9.7 osh-native mut+alloc+free+gc+exit
17 10 8 12.2 osh-nosouffle mut+alloc
18 7 12 12.2 osh-nosouffle mut+alloc+free
18 13 6 10.1 osh-nosouffle mut+alloc+free+gc
19 15 5 10.4 osh-nosouffle mut+alloc+free+gc+exit
19 10 9 13.2 _bin/cxx-opt+nopool/osh mut+alloc
20 10 10 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc