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 40 5 12 12.0 18.0 476,689 1,282 6 408,756 5 204,378 osh-native
parse.configure-coreutils 161 26 74 46.1 51.3 1,653,277 4,764 12 1,069,122 6 798,642 osh-native
parse.abuild 10 1 2 2.6 8.4 101,880 180 2 75,098 1 37,549 osh-native
ex.compute-fib 28 0 2 2.4 7.9 584,145 31,810 12 50,000 0 2,826 osh-native
ex.bashcomp-parse-help 184 0 4 10.3 8.8 995,222 27,376 21 50,000 0 3,821 osh-native
ex.abuild-print-help 23 1 2 2.8 9.0 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.4 dash -
24 24 0 3.0 bash -
105 58 53 3.4 zsh -
17 14 3 28.1 bumpleak/osh mut
20 16 4 29.5 _bin/cxx-opt+bumproot/osh mut
23 14 9 28.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 22 7 25.2 osh-native mut+alloc
32 16 16 25.6 osh-native mut+alloc+free
40 35 4 18.0 osh-native mut+alloc+free+gc
38 26 11 17.8 osh-native mut+alloc+free+gc+exit
45 16 28 32.4 _bin/cxx-opt+nopool/osh mut+alloc
57 44 12 22.0 _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
21 18 4 1.4 dash -
78 74 4 3.3 bash -
382 211 192 3.3 zsh -
49 40 8 85.5 bumpleak/osh mut
60 48 12 85.6 _bin/cxx-opt+bumproot/osh mut
70 54 17 86.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 73 24 73.4 osh-native mut+alloc
106 63 43 75.3 osh-native mut+alloc+free
161 133 28 51.3 osh-native mut+alloc+free+gc
171 150 20 52.2 osh-native mut+alloc+free+gc+exit
141 100 40 99.1 _bin/cxx-opt+nopool/osh mut+alloc
227 195 32 73.1 _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.4 dash -
6 6 0 3.0 bash -
8 0 8 3.3 zsh -
6 6 0 10.4 bumpleak/osh mut
7 4 4 11.2 _bin/cxx-opt+bumproot/osh mut
7 4 4 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
10 0 10 10.0 osh-native mut+alloc
10 7 3 10.1 osh-native mut+alloc+free
10 10 0 8.4 osh-native mut+alloc+free+gc
10 5 5 8.7 osh-native mut+alloc+free+gc+exit
12 0 12 11.4 _bin/cxx-opt+nopool/osh mut+alloc
14 10 3 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 11 0 1.6 dash -
30 30 0 3.0 bash -
24 19 4 3.3 zsh -
20 4 16 32.1 bumpleak/osh mut
26 26 0 32.9 _bin/cxx-opt+bumproot/osh mut
28 23 5 32.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.1 osh-native mut+alloc
39 31 8 26.5 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
29 28 0 7.9 osh-native mut+alloc+free+gc+exit
55 35 19 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 37 0 9.4 _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
74 70 4 3.0 bash -
168 124 44 54.4 bumpleak/osh mut
179 127 52 55.0 _bin/cxx-opt+bumproot/osh mut
191 134 57 55.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 162 51 46.9 osh-native mut+alloc
219 138 81 48.7 osh-native mut+alloc+free
184 136 48 8.8 osh-native mut+alloc+free+gc
182 129 53 8.8 osh-native mut+alloc+free+gc+exit
233 152 80 62.6 _bin/cxx-opt+nopool/osh mut+alloc
213 172 40 9.9 _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 9 1 3.4 dash -
20 10 10 4.3 bash -
19 9 10 3.5 zsh -
20 7 14 12.8 bumpleak/osh mut
21 16 4 12.3 _bin/cxx-opt+bumproot/osh mut
22 16 7 13.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 16 6 10.6 osh-native mut+alloc
23 17 6 11.0 osh-native mut+alloc+free
23 20 3 9.0 osh-native mut+alloc+free+gc
23 11 12 8.9 osh-native mut+alloc+free+gc+exit
26 16 10 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 14 12 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc