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 32 3 9 12.0 17.4 476,689 1,282 6 408,626 5 204,313 osh-native
parse.configure-coreutils 144 20 69 41.0 45.5 1,653,277 4,764 12 1,591,678 7 795,839 osh-native
parse.abuild 9 1 2 2.4 8.1 101,880 180 3 87,194 1 43,597 osh-native
ex.compute-fib 23 0 1 2.6 7.5 584,145 31,810 12 50,000 0 2,764 osh-native
ex.bashcomp-parse-help 175 0 3 10.6 8.3 995,222 27,376 21 50,000 0 3,751 osh-native
ex.abuild-print-help 22 1 2 2.8 8.7 116,289 478 3 85,210 1 42,605 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 3 3 1.4 dash -
23 19 4 2.9 bash -
105 60 53 3.4 zsh -
16 12 4 27.9 bumpleak/osh mut
17 17 0 29.2 _bin/cxx-opt+bumproot/osh mut
20 19 0 29.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 22 4 24.9 osh-native mut+alloc
28 16 12 25.3 osh-native mut+alloc+free
32 32 0 17.4 osh-native mut+alloc+free+gc
33 29 4 17.6 osh-native mut+alloc+free+gc+exit
40 20 20 31.6 _bin/cxx-opt+nopool/osh mut+alloc
46 27 19 21.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
22 22 0 1.6 dash -
78 78 0 3.3 bash -
376 233 163 3.7 zsh -
47 35 12 85.3 bumpleak/osh mut
51 39 12 85.6 _bin/cxx-opt+bumproot/osh mut
61 42 19 84.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
87 59 28 73.0 osh-native mut+alloc
95 63 32 74.8 osh-native mut+alloc+free
144 120 24 45.5 osh-native mut+alloc+free+gc
147 131 16 45.6 osh-native mut+alloc+free+gc+exit
127 71 55 98.7 _bin/cxx-opt+nopool/osh mut+alloc
207 167 40 61.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 2.9 bash -
8 0 7 3.4 zsh -
6 0 6 10.8 bumpleak/osh mut
6 6 0 10.3 _bin/cxx-opt+bumproot/osh mut
7 3 3 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 9.7 osh-native mut+alloc
8 4 4 9.8 osh-native mut+alloc+free
9 4 4 8.1 osh-native mut+alloc+free+gc
9 9 0 8.0 osh-native mut+alloc+free+gc+exit
11 11 0 11.0 _bin/cxx-opt+nopool/osh mut+alloc
12 11 0 8.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
10 10 0 1.6 dash -
29 28 0 3.0 bash -
24 16 8 3.1 zsh -
19 19 0 32.8 bumpleak/osh mut
21 17 4 32.6 _bin/cxx-opt+bumproot/osh mut
23 18 5 32.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 19 12 26.1 osh-native mut+alloc
34 8 25 26.3 osh-native mut+alloc+free
23 19 4 7.5 osh-native mut+alloc+free+gc
23 23 0 7.5 osh-native mut+alloc+free+gc+exit
49 36 12 36.1 _bin/cxx-opt+nopool/osh mut+alloc
33 32 0 9.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
73 73 0 3.1 bash -
168 112 56 54.8 bumpleak/osh mut
172 124 48 54.8 _bin/cxx-opt+bumproot/osh mut
189 100 88 55.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
204 132 72 46.7 osh-native mut+alloc
212 156 56 48.5 osh-native mut+alloc+free
175 113 61 8.3 osh-native mut+alloc+free+gc
175 109 65 8.3 osh-native mut+alloc+free+gc+exit
227 134 93 63.2 _bin/cxx-opt+nopool/osh mut+alloc
205 148 56 9.8 _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 8 2 3.5 dash -
20 12 8 4.5 bash -
18 12 7 3.4 zsh -
18 12 6 11.3 bumpleak/osh mut
19 13 6 11.6 _bin/cxx-opt+bumproot/osh mut
21 14 7 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 13 8 10.6 osh-native mut+alloc
22 15 7 10.7 osh-native mut+alloc+free
22 14 8 8.7 osh-native mut+alloc+free+gc
22 12 10 8.4 osh-native mut+alloc+free+gc+exit
24 16 8 12.3 _bin/cxx-opt+nopool/osh mut+alloc
24 17 7 9.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc