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 4 10 12.0 17.4 476,689 1,282 6 408,626 5 204,313 osh-native
parse.configure-coreutils 143 20 67 41.0 45.4 1,653,277 4,764 12 1,591,678 7 795,839 osh-native
parse.abuild 9 1 2 2.4 7.7 101,880 180 3 87,194 1 43,597 osh-native
ex.compute-fib 23 0 2 2.6 7.5 584,145 31,810 12 50,000 0 2,764 osh-native
ex.bashcomp-parse-help 175 0 4 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.4 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
6 6 0 1.4 dash -
23 23 0 3.0 bash -
104 65 45 3.5 zsh -
16 16 0 29.5 bumpleak/osh mut
17 13 4 29.9 _bin/cxx-opt+bumproot/osh mut
20 16 4 28.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
27 19 8 24.5 osh-native mut+alloc
28 12 16 25.0 osh-native mut+alloc+free
32 28 4 17.4 osh-native mut+alloc+free+gc
34 26 9 17.4 osh-native mut+alloc+free+gc+exit
40 20 20 32.9 _bin/cxx-opt+nopool/osh mut+alloc
44 29 15 21.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
22 21 0 1.4 dash -
77 74 4 3.1 bash -
377 211 187 3.5 zsh -
50 41 8 84.2 bumpleak/osh mut
52 40 12 84.3 _bin/cxx-opt+bumproot/osh mut
65 52 12 85.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
90 53 37 73.0 osh-native mut+alloc
96 52 44 75.1 osh-native mut+alloc+free
143 119 24 45.4 osh-native mut+alloc+free+gc
144 112 32 45.7 osh-native mut+alloc+free+gc+exit
130 93 36 97.0 _bin/cxx-opt+nopool/osh mut+alloc
227 191 36 61.4 _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 -
7 3 3 11.5 bumpleak/osh mut
6 6 0 10.4 _bin/cxx-opt+bumproot/osh mut
6 6 0 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 0 8 9.7 osh-native mut+alloc
8 4 4 9.7 osh-native mut+alloc+free
9 9 0 7.7 osh-native mut+alloc+free+gc
9 5 5 7.9 osh-native mut+alloc+free+gc+exit
11 4 7 11.2 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 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.3 dash -
29 29 0 3.0 bash -
31 27 4 3.1 zsh -
20 16 4 32.5 bumpleak/osh mut
20 12 8 32.9 _bin/cxx-opt+bumproot/osh mut
24 24 0 31.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
32 16 16 26.1 osh-native mut+alloc
34 30 4 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
48 19 30 35.6 _bin/cxx-opt+nopool/osh mut+alloc
45 45 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 69 4 3.1 bash -
168 112 56 55.1 bumpleak/osh mut
174 109 65 54.5 _bin/cxx-opt+bumproot/osh mut
189 122 67 55.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
208 143 64 46.7 osh-native mut+alloc
214 131 83 48.5 osh-native mut+alloc+free
175 120 56 8.3 osh-native mut+alloc+free+gc
175 107 67 8.1 osh-native mut+alloc+free+gc+exit
223 142 81 62.8 _bin/cxx-opt+nopool/osh mut+alloc
201 154 47 9.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
10 7 3 3.5 dash -
20 14 6 4.3 bash -
18 9 10 3.4 zsh -
19 13 6 11.1 bumpleak/osh mut
21 18 2 12.4 _bin/cxx-opt+bumproot/osh mut
21 11 11 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 16 6 10.5 osh-native mut+alloc
22 16 6 10.5 osh-native mut+alloc+free
22 20 3 8.4 osh-native mut+alloc+free+gc
23 17 6 8.7 osh-native mut+alloc+free+gc+exit
25 22 3 12.1 _bin/cxx-opt+nopool/osh mut+alloc
25 18 8 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc