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 4 11 12.0 18.2 471,271 1,282 6 413,158 5 206,579 osh-native
parse.configure-cpython 34 4 11 12.0 18.7 471,271 1,282 6 413,166 5 206,583 osh-nosouffle
parse.configure-coreutils 158 26 76 45.9 51.6 1,638,010 4,764 12 1,056,656 6 787,849 osh-native
parse.configure-coreutils 144 25 67 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.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 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 18 1 2 3.0 9.6 117,230 277 3 84,006 1 42,003 osh-native
ex.abuild-print-help 19 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 4 1 1.7 dash -
11 10 1 3.0 bash -
66 45 26 3.5 zsh -
18 12 6 30.1 bumpleak/osh mut
20 12 8 30.4 _bin/cxx-opt+bumproot/osh mut
22 15 7 29.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
23 15 8 25.7 osh-native mut+alloc
26 15 11 26.0 osh-native mut+alloc+free
32 27 4 18.2 osh-native mut+alloc+free+gc
33 26 7 18.2 osh-native mut+alloc+free+gc+exit
25 13 13 26.1 osh-nosouffle mut+alloc
29 20 9 26.2 osh-nosouffle mut+alloc+free
34 30 4 18.7 osh-nosouffle mut+alloc+free+gc
35 29 6 18.7 osh-nosouffle mut+alloc+free+gc+exit
35 25 10 33.3 _bin/cxx-opt+nopool/osh mut+alloc
44 39 5 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 16 2 1.7 dash -
38 37 1 3.5 bash -
240 147 108 3.7 zsh -
56 36 21 84.9 bumpleak/osh mut
61 40 20 86.0 _bin/cxx-opt+bumproot/osh mut
67 45 23 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
74 50 24 73.8 osh-native mut+alloc
87 66 21 75.6 osh-native mut+alloc+free
158 135 22 51.6 osh-native mut+alloc+free+gc
146 126 20 52.5 osh-native mut+alloc+free+gc+exit
83 59 24 74.2 osh-nosouffle mut+alloc
99 64 35 76.2 osh-nosouffle mut+alloc+free
144 129 15 52.3 osh-nosouffle mut+alloc+free+gc
153 130 23 52.9 osh-nosouffle mut+alloc+free+gc+exit
114 71 43 98.2 _bin/cxx-opt+nopool/osh mut+alloc
203 167 37 73.2 _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 2 1 3.3 bash -
5 3 2 3.4 zsh -
6 4 2 11.1 bumpleak/osh mut
6 3 3 13.4 _bin/cxx-opt+bumproot/osh mut
6 3 4 11.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
7 4 3 10.5 osh-native mut+alloc
8 6 2 10.7 osh-native mut+alloc+free
8 5 4 8.8 osh-native mut+alloc+free+gc
9 8 1 8.9 osh-native mut+alloc+free+gc+exit
7 6 1 11.0 osh-nosouffle mut+alloc
8 4 4 11.3 osh-nosouffle mut+alloc+free
9 7 2 9.2 osh-nosouffle mut+alloc+free+gc
9 6 4 9.4 osh-nosouffle mut+alloc+free+gc+exit
10 6 3 11.9 _bin/cxx-opt+nopool/osh mut+alloc
11 8 3 9.6 _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 28 1 3.3 bash -
16 13 3 3.5 zsh -
21 13 8 33.3 bumpleak/osh mut
22 11 11 33.1 _bin/cxx-opt+bumproot/osh mut
24 15 9 33.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 13 13 26.9 osh-native mut+alloc
30 24 6 27.1 osh-native mut+alloc+free
20 18 2 8.4 osh-native mut+alloc+free+gc
20 18 2 8.5 osh-native mut+alloc+free+gc+exit
31 23 8 27.4 osh-nosouffle mut+alloc
35 23 12 27.7 osh-nosouffle mut+alloc+free
25 23 2 8.8 osh-nosouffle mut+alloc+free+gc
25 22 3 8.8 osh-nosouffle mut+alloc+free+gc+exit
41 29 12 36.3 _bin/cxx-opt+nopool/osh mut+alloc
28 23 5 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
96 95 1 3.4 bash -
176 150 26 56.4 bumpleak/osh mut
184 158 25 57.7 _bin/cxx-opt+bumproot/osh mut
190 156 34 57.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
196 156 40 48.8 osh-native mut+alloc
214 177 37 51.0 osh-native mut+alloc+free
171 150 21 9.0 osh-native mut+alloc+free+gc
173 149 24 9.2 osh-native mut+alloc+free+gc+exit
201 157 44 49.4 osh-nosouffle mut+alloc
214 178 36 51.3 osh-nosouffle mut+alloc+free
176 161 15 9.7 osh-nosouffle mut+alloc+free+gc
176 157 19 9.8 osh-nosouffle mut+alloc+free+gc+exit
226 176 46 65.6 _bin/cxx-opt+nopool/osh mut+alloc
200 179 21 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 3 4.1 dash -
13 7 6 4.7 bash -
12 9 3 3.8 zsh -
16 8 8 14.0 bumpleak/osh mut
16 8 8 14.5 _bin/cxx-opt+bumproot/osh mut
17 6 11 14.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
16 9 8 11.5 osh-native mut+alloc
18 8 11 11.7 osh-native mut+alloc+free
18 10 8 9.6 osh-native mut+alloc+free+gc
19 11 8 9.6 osh-native mut+alloc+free+gc+exit
17 7 11 12.1 osh-nosouffle mut+alloc
19 11 8 12.2 osh-nosouffle mut+alloc+free
19 11 9 10.1 osh-nosouffle mut+alloc+free+gc
19 10 10 10.2 osh-nosouffle mut+alloc+free+gc+exit
20 11 9 13.2 _bin/cxx-opt+nopool/osh mut+alloc
20 16 5 10.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc