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 10 12.0 18.4 471,263 1,282 6 413,142 5 206,571 osh-native
parse.configure-cpython 34 4 10 12.0 18.6 471,263 1,282 6 413,150 5 206,575 osh-nosouffle
parse.configure-coreutils 137 24 63 45.9 51.7 1,638,002 4,764 12 1,056,640 6 787,841 osh-native
parse.configure-coreutils 144 25 64 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.7 102,791 180 3 86,628 1 43,314 osh-native
parse.abuild 10 1 2 2.6 9.3 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 1 2.8 8.7 572,115 22,608 12 50,000 0 2,985 osh-nosouffle
ex.bashcomp-parse-help 220 0 3 11.6 9.2 990,261 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 225 0 3 11.6 9.4 990,260 15,258 21 50,000 0 3,969 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.6 117,219 277 3 83,990 1 41,995 osh-native
ex.abuild-print-help 22 1 2 3.0 10.0 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 5 1 1.7 dash -
13 11 2 3.3 bash -
87 53 40 3.5 zsh -
16 9 7 29.1 bumpleak/osh mut
16 15 1 30.3 _bin/cxx-opt+bumproot/osh mut
19 16 3 30.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 14 12 25.4 osh-native mut+alloc
27 19 8 25.7 osh-native mut+alloc+free
32 29 3 18.4 osh-native mut+alloc+free+gc
33 28 5 18.2 osh-native mut+alloc+free+gc+exit
28 14 14 26.0 osh-nosouffle mut+alloc
30 17 13 26.3 osh-nosouffle mut+alloc+free
34 28 6 18.6 osh-nosouffle mut+alloc+free+gc
35 29 6 18.6 osh-nosouffle mut+alloc+free+gc+exit
39 26 13 32.2 _bin/cxx-opt+nopool/osh mut+alloc
46 32 14 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 21 2 1.7 dash -
43 41 2 3.5 bash -
325 166 180 3.7 zsh -
46 40 6 84.8 bumpleak/osh mut
47 35 12 85.1 _bin/cxx-opt+bumproot/osh mut
58 42 16 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
82 50 32 73.7 osh-native mut+alloc
90 58 32 75.5 osh-native mut+alloc+free
137 109 28 51.7 osh-native mut+alloc+free+gc
140 114 26 52.5 osh-native mut+alloc+free+gc+exit
90 66 24 74.2 osh-nosouffle mut+alloc
99 62 36 76.0 osh-nosouffle mut+alloc+free
144 130 14 52.1 osh-nosouffle mut+alloc+free+gc
148 132 16 53.0 osh-nosouffle mut+alloc+free+gc+exit
125 91 34 98.1 _bin/cxx-opt+nopool/osh mut+alloc
204 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
2 2 0 1.7 dash -
4 3 1 3.3 bash -
6 5 1 3.3 zsh -
6 4 2 11.2 bumpleak/osh mut
7 4 2 12.6 _bin/cxx-opt+bumproot/osh mut
7 5 2 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 2 5 10.4 osh-native mut+alloc
8 3 5 10.6 osh-native mut+alloc+free
9 7 2 8.7 osh-native mut+alloc+free+gc
9 6 3 8.9 osh-native mut+alloc+free+gc+exit
8 3 5 11.0 osh-nosouffle mut+alloc
9 7 2 11.0 osh-nosouffle mut+alloc+free
10 7 3 9.3 osh-nosouffle mut+alloc+free+gc
10 7 3 9.2 osh-nosouffle mut+alloc+free+gc+exit
11 6 5 12.2 _bin/cxx-opt+nopool/osh mut+alloc
12 10 2 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 9 0 1.6 dash -
30 29 1 3.3 bash -
21 14 7 3.4 zsh -
17 12 4 32.9 bumpleak/osh mut
17 13 4 32.0 _bin/cxx-opt+bumproot/osh mut
20 17 3 33.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 14 14 26.9 osh-native mut+alloc
29 21 9 27.1 osh-native mut+alloc+free
20 18 2 8.3 osh-native mut+alloc+free+gc
19 17 2 8.1 osh-native mut+alloc+free+gc+exit
33 23 10 27.5 osh-nosouffle mut+alloc
35 24 11 27.8 osh-nosouffle mut+alloc+free
25 23 2 8.7 osh-nosouffle mut+alloc+free+gc
24 23 1 8.7 osh-nosouffle mut+alloc+free+gc+exit
45 30 15 36.4 _bin/cxx-opt+nopool/osh mut+alloc
29 25 4 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
103 100 3 3.5 bash -
213 142 71 57.7 bumpleak/osh mut
219 170 49 56.9 _bin/cxx-opt+bumproot/osh mut
238 186 52 58.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
254 171 83 48.8 osh-native mut+alloc
264 203 61 50.7 osh-native mut+alloc+free
220 171 49 9.2 osh-native mut+alloc+free+gc
220 178 42 9.0 osh-native mut+alloc+free+gc+exit
260 198 62 49.2 osh-nosouffle mut+alloc
270 203 67 51.2 osh-nosouffle mut+alloc+free
225 181 44 9.4 osh-nosouffle mut+alloc+free+gc
228 180 48 9.6 osh-nosouffle mut+alloc+free+gc+exit
277 199 78 65.8 _bin/cxx-opt+nopool/osh mut+alloc
251 202 49 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
9 5 4 3.9 dash -
15 9 7 4.8 bash -
15 8 8 3.9 zsh -
18 8 10 13.0 bumpleak/osh mut
18 7 11 12.5 _bin/cxx-opt+bumproot/osh mut
18 9 9 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 12 8 11.5 osh-native mut+alloc
20 10 11 11.7 osh-native mut+alloc+free
20 10 11 9.6 osh-native mut+alloc+free+gc
21 14 7 9.7 osh-native mut+alloc+free+gc+exit
20 9 11 12.1 osh-nosouffle mut+alloc
22 15 8 12.1 osh-nosouffle mut+alloc+free
22 14 9 10.0 osh-nosouffle mut+alloc+free+gc
22 15 8 9.8 osh-nosouffle mut+alloc+free+gc+exit
23 12 11 13.1 _bin/cxx-opt+nopool/osh mut+alloc
24 14 10 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc