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.4 471,271 1,282 6 413,158 5 206,579 osh-native
parse.configure-cpython 33 4 11 12.0 18.7 471,271 1,282 6 413,166 5 206,583 osh-nosouffle
parse.configure-coreutils 118 18 54 45.9 52.0 1,638,010 4,764 12 1,056,656 6 787,849 osh-native
parse.configure-coreutils 129 19 56 45.9 52.4 1,638,009 4,764 12 1,056,664 6 787,853 osh-nosouffle
parse.abuild 8 1 2 2.6 8.8 102,799 180 3 86,644 1 43,322 osh-native
parse.abuild 9 1 2 2.6 9.2 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 27 0 2 2.8 8.8 572,123 22,608 12 50,000 0 2,994 osh-nosouffle
ex.bashcomp-parse-help 172 0 5 11.6 9.2 990,269 15,258 21 50,000 0 3,967 osh-native
ex.bashcomp-parse-help 175 0 5 11.6 9.6 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 42 26 3.7 zsh -
16 10 6 28.9 bumpleak/osh mut
17 10 7 29.9 _bin/cxx-opt+bumproot/osh mut
19 13 6 30.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 13 8 25.6 osh-native mut+alloc
24 18 6 26.0 osh-native mut+alloc+free
30 26 4 18.4 osh-native mut+alloc+free+gc
33 28 5 18.3 osh-native mut+alloc+free+gc+exit
26 16 10 26.0 osh-nosouffle mut+alloc
27 20 7 26.5 osh-nosouffle mut+alloc+free
33 28 5 18.7 osh-nosouffle mut+alloc+free+gc
35 28 6 18.7 osh-nosouffle mut+alloc+free+gc+exit
33 18 15 32.4 _bin/cxx-opt+nopool/osh mut+alloc
42 33 8 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
18 16 2 1.7 dash -
38 37 1 3.5 bash -
228 145 97 3.4 zsh -
49 31 18 86.3 bumpleak/osh mut
53 38 15 86.2 _bin/cxx-opt+bumproot/osh mut
61 39 22 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
70 46 24 73.7 osh-native mut+alloc
80 47 33 75.5 osh-native mut+alloc+free
118 106 12 52.0 osh-native mut+alloc+free+gc
126 104 22 52.6 osh-native mut+alloc+free+gc+exit
78 60 18 74.2 osh-nosouffle mut+alloc
89 63 26 76.0 osh-nosouffle mut+alloc+free
129 108 21 52.4 osh-nosouffle mut+alloc+free+gc
136 118 18 53.1 osh-nosouffle mut+alloc+free+gc+exit
109 71 37 99.2 _bin/cxx-opt+nopool/osh mut+alloc
174 150 24 72.4 _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 0 1.7 dash -
3 3 0 3.1 bash -
5 3 2 3.5 zsh -
6 5 1 12.5 bumpleak/osh mut
6 2 4 12.9 _bin/cxx-opt+bumproot/osh mut
6 2 4 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
6 2 5 10.5 osh-native mut+alloc
7 6 1 10.6 osh-native mut+alloc+free
8 6 2 8.8 osh-native mut+alloc+free+gc
8 7 1 9.0 osh-native mut+alloc+free+gc+exit
7 5 2 11.0 osh-nosouffle mut+alloc
7 6 1 11.0 osh-nosouffle mut+alloc+free
9 8 1 9.2 osh-nosouffle mut+alloc+free+gc
9 8 1 9.3 osh-nosouffle mut+alloc+free+gc+exit
9 4 5 11.8 _bin/cxx-opt+nopool/osh mut+alloc
11 9 1 9.8 _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 29 0 3.4 bash -
16 14 2 3.5 zsh -
18 10 8 33.8 bumpleak/osh mut
19 15 5 32.4 _bin/cxx-opt+bumproot/osh mut
22 15 7 33.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 14 11 27.0 osh-native mut+alloc
28 16 12 27.0 osh-native mut+alloc+free
20 18 2 8.4 osh-native mut+alloc+free+gc
20 19 1 8.3 osh-native mut+alloc+free+gc+exit
30 25 5 27.4 osh-nosouffle mut+alloc
33 27 6 27.4 osh-nosouffle mut+alloc+free
27 25 2 8.8 osh-nosouffle mut+alloc+free+gc
26 25 1 8.8 osh-nosouffle mut+alloc+free+gc+exit
40 26 14 36.8 _bin/cxx-opt+nopool/osh mut+alloc
29 26 3 10.0 _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
96 94 2 3.5 bash -
171 138 33 56.9 bumpleak/osh mut
182 157 25 56.3 _bin/cxx-opt+bumproot/osh mut
188 151 37 58.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
198 168 30 48.9 osh-native mut+alloc
207 166 41 50.9 osh-native mut+alloc+free
172 156 16 9.2 osh-native mut+alloc+free+gc
175 155 20 9.2 osh-native mut+alloc+free+gc+exit
200 160 40 49.3 osh-nosouffle mut+alloc
208 174 34 51.3 osh-nosouffle mut+alloc+free
175 160 15 9.6 osh-nosouffle mut+alloc+free+gc
177 159 18 9.6 osh-nosouffle mut+alloc+free+gc+exit
220 179 41 64.2 _bin/cxx-opt+nopool/osh mut+alloc
201 174 27 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 4 3 3.9 dash -
13 9 5 4.8 bash -
11 6 5 3.9 zsh -
14 8 7 14.1 bumpleak/osh mut
15 8 7 12.5 _bin/cxx-opt+bumproot/osh mut
17 5 12 14.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
15 9 7 11.4 osh-native mut+alloc
18 9 9 11.7 osh-native mut+alloc+free
17 11 7 9.6 osh-native mut+alloc+free+gc
18 15 4 9.7 osh-native mut+alloc+free+gc+exit
17 9 8 12.1 osh-nosouffle mut+alloc
18 10 9 12.2 osh-nosouffle mut+alloc+free
18 12 6 10.1 osh-nosouffle mut+alloc+free+gc
19 10 9 10.1 osh-nosouffle mut+alloc+free+gc+exit
18 9 10 13.1 _bin/cxx-opt+nopool/osh mut+alloc
20 14 7 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc