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 37 5 10 12.0 18.0 476,676 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 168 27 80 46.1 51.4 1,653,264 4,764 12 1,069,110 6 798,636 osh-native
parse.abuild 9 1 1 2.6 8.4 101,867 180 2 75,086 1 37,543 osh-native
ex.compute-fib 28 0 1 2.6 8.0 584,132 31,810 12 50,000 0 2,819 osh-native
ex.bashcomp-parse-help 183 0 3 10.6 8.7 995,209 27,376 21 50,000 0 3,815 osh-native
ex.abuild-print-help 23 1 2 2.8 9.0 116,276 478 3 85,322 1 42,661 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 3 3 1.6 dash -
23 23 0 3.0 bash -
106 58 54 3.3 zsh -
16 8 8 28.0 bumpleak/osh mut
19 14 5 29.2 _bin/cxx-opt+bumproot/osh mut
22 15 7 29.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 24.9 osh-native mut+alloc
32 16 16 25.4 osh-native mut+alloc+free
37 29 8 18.0 osh-native mut+alloc+free+gc
37 26 11 18.1 osh-native mut+alloc+free+gc+exit
44 12 31 32.5 _bin/cxx-opt+nopool/osh mut+alloc
51 35 16 22.1 _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 74 4 3.3 bash -
381 234 168 3.5 zsh -
50 34 15 85.9 bumpleak/osh mut
60 44 16 84.5 _bin/cxx-opt+bumproot/osh mut
73 65 8 86.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 73 24 73.6 osh-native mut+alloc
106 82 24 75.2 osh-native mut+alloc+free
168 144 23 51.4 osh-native mut+alloc+free+gc
170 146 24 52.3 osh-native mut+alloc+free+gc+exit
138 91 47 97.8 _bin/cxx-opt+nopool/osh mut+alloc
232 188 44 73.0 _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 0 2 1.3 dash -
6 3 3 3.0 bash -
8 0 7 3.4 zsh -
7 0 7 11.6 bumpleak/osh mut
7 0 7 12.6 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 0 9 10.0 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 6 3 8.4 osh-native mut+alloc+free+gc
10 6 3 8.5 osh-native mut+alloc+free+gc+exit
11 6 6 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.5 _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.4 dash -
29 25 4 3.0 bash -
24 12 12 3.1 zsh -
19 14 5 31.8 bumpleak/osh mut
25 25 0 33.2 _bin/cxx-opt+bumproot/osh mut
28 24 4 31.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 28 8 26.5 osh-native mut+alloc
39 23 15 26.6 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
28 20 8 8.0 osh-native mut+alloc+free+gc+exit
54 37 16 35.7 _bin/cxx-opt+nopool/osh mut+alloc
37 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 74 0 3.1 bash -
169 116 52 54.1 bumpleak/osh mut
181 120 60 56.2 _bin/cxx-opt+bumproot/osh mut
196 131 64 57.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 146 63 46.9 osh-native mut+alloc
217 117 101 48.8 osh-native mut+alloc+free
183 122 61 8.7 osh-native mut+alloc+free+gc
183 139 44 8.7 osh-native mut+alloc+free+gc+exit
234 146 87 63.4 _bin/cxx-opt+nopool/osh mut+alloc
212 168 44 10.2 _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 1 3.4 dash -
19 16 4 4.5 bash -
18 17 2 3.5 zsh -
20 15 5 12.3 bumpleak/osh mut
22 12 10 12.9 _bin/cxx-opt+bumproot/osh mut
21 11 10 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 12 10 10.7 osh-native mut+alloc
24 21 3 10.9 osh-native mut+alloc+free
23 16 8 9.0 osh-native mut+alloc+free+gc
23 15 9 8.9 osh-native mut+alloc+free+gc+exit
25 11 14 12.6 _bin/cxx-opt+nopool/osh mut+alloc
26 20 6 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc