Memory Management Overhead

Source code: oil/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 36 3 10 12.0 17.8 476,689 1,282 6 408,756 5 204,378 osh-native
parse.configure-coreutils 152 26 64 46.1 51.6 1,653,277 4,764 12 1,069,122 6 798,642 osh-native
parse.abuild 9 1 1 2.6 8.4 101,880 180 2 75,098 1 37,549 osh-native
ex.compute-fib 28 0 1 2.4 8.0 584,145 31,810 12 50,000 0 2,826 osh-native
ex.bashcomp-parse-help 180 0 3 10.3 8.5 995,222 27,376 21 50,000 0 3,821 osh-native
ex.abuild-print-help 23 1 2 2.8 8.8 116,289 478 3 85,334 1 42,667 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 6 0 1.6 dash -
23 23 0 3.0 bash -
106 59 53 3.4 zsh -
16 16 0 28.0 bumpleak/osh mut
20 16 4 28.8 _bin/cxx-opt+bumproot/osh mut
23 23 0 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.0 osh-native mut+alloc
31 24 8 25.6 osh-native mut+alloc+free
36 24 12 17.8 osh-native mut+alloc+free+gc
36 32 4 17.8 osh-native mut+alloc+free+gc+exit
50 37 12 32.2 _bin/cxx-opt+nopool/osh mut+alloc
47 35 12 21.9 _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
22 21 0 1.4 dash -
78 78 0 3.3 bash -
377 214 184 3.7 zsh -
49 37 12 84.7 bumpleak/osh mut
59 46 13 84.7 _bin/cxx-opt+bumproot/osh mut
70 54 16 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 55 43 73.4 osh-native mut+alloc
106 78 27 75.3 osh-native mut+alloc+free
152 124 28 51.6 osh-native mut+alloc+free+gc
153 133 20 52.1 osh-native mut+alloc+free+gc+exit
140 72 68 98.8 _bin/cxx-opt+nopool/osh mut+alloc
212 172 40 71.9 _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.3 dash -
6 6 0 3.0 bash -
8 4 4 3.1 zsh -
6 6 0 11.2 bumpleak/osh mut
7 0 7 11.8 _bin/cxx-opt+bumproot/osh mut
7 7 0 10.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 0 8 10.0 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 3 6 8.4 osh-native mut+alloc+free+gc
9 4 4 8.7 osh-native mut+alloc+free+gc+exit
11 4 8 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 11 0 9.3 _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
11 7 3 1.4 dash -
29 29 0 2.9 bash -
24 19 4 3.3 zsh -
20 19 0 32.4 bumpleak/osh mut
26 22 4 32.6 _bin/cxx-opt+bumproot/osh mut
29 25 4 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 16 20 26.3 osh-native mut+alloc
38 30 7 26.5 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
55 38 17 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.5 _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
73 65 8 3.1 bash -
168 72 96 55.5 bumpleak/osh mut
179 123 56 55.9 _bin/cxx-opt+bumproot/osh mut
191 139 52 56.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 145 65 47.0 osh-native mut+alloc
219 158 61 48.8 osh-native mut+alloc+free
180 132 48 8.5 osh-native mut+alloc+free+gc
182 137 44 8.8 osh-native mut+alloc+free+gc+exit
232 164 68 62.4 _bin/cxx-opt+nopool/osh mut+alloc
207 150 57 10.1 _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
10 5 5 3.5 dash -
20 13 7 4.2 bash -
18 14 5 3.5 zsh -
20 8 13 12.6 bumpleak/osh mut
20 18 2 12.1 _bin/cxx-opt+bumproot/osh mut
21 13 8 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 11 12 11.0 osh-native mut+alloc
23 15 8 11.0 osh-native mut+alloc+free
23 13 10 8.8 osh-native mut+alloc+free+gc
23 21 3 9.0 osh-native mut+alloc+free+gc+exit
25 15 10 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 18 8 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc