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 35 3 9 12.0 18.0 476,720 1,282 6 408,808 5 204,404 osh-native
parse.configure-coreutils 155 24 68 44.6 50.0 1,653,308 4,764 12 1,030,692 6 769,430 osh-native
parse.abuild 9 1 1 2.6 8.4 101,911 180 2 75,150 1 37,575 osh-native
ex.compute-fib 28 0 1 2.4 7.9 584,176 31,810 12 50,000 0 2,851 osh-native
ex.bashcomp-parse-help 180 0 3 10.3 8.8 995,253 27,376 21 50,000 0 3,839 osh-native
ex.abuild-print-help 23 1 2 2.8 9.2 116,320 478 3 85,386 1 42,693 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 19 4 3.0 bash -
105 57 54 3.4 zsh -
17 10 7 28.5 bumpleak/osh mut
20 16 4 30.1 _bin/cxx-opt+bumproot/osh mut
22 22 0 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 25 4 24.9 osh-native mut+alloc
31 23 8 25.4 osh-native mut+alloc+free
35 23 12 18.0 osh-native mut+alloc+free+gc
36 28 8 17.8 osh-native mut+alloc+free+gc+exit
43 39 4 32.8 _bin/cxx-opt+nopool/osh mut+alloc
48 44 4 22.2 _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 21 0 1.6 dash -
78 74 4 3.1 bash -
384 222 182 3.7 zsh -
49 40 8 85.5 bumpleak/osh mut
61 61 0 84.7 _bin/cxx-opt+bumproot/osh mut
72 60 12 85.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 71 27 73.3 osh-native mut+alloc
106 82 23 75.3 osh-native mut+alloc+free
155 127 28 50.0 osh-native mut+alloc+free+gc
156 140 16 50.4 osh-native mut+alloc+free+gc+exit
139 94 45 98.4 _bin/cxx-opt+nopool/osh mut+alloc
229 201 28 66.5 _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 6 0 3.0 bash -
8 4 4 3.3 zsh -
6 6 0 12.2 bumpleak/osh mut
7 3 3 11.7 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 6 10.0 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 6 3 8.4 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 12 0 11.3 _bin/cxx-opt+nopool/osh mut+alloc
11 4 8 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 5 5 1.4 dash -
29 28 0 2.9 bash -
24 20 4 3.3 zsh -
19 19 0 31.5 bumpleak/osh mut
27 19 8 33.1 _bin/cxx-opt+bumproot/osh mut
27 20 8 32.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.1 osh-native mut+alloc
39 23 15 26.3 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
29 22 7 7.9 osh-native mut+alloc+free+gc+exit
55 39 16 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 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
73 73 0 3.1 bash -
168 104 64 53.7 bumpleak/osh mut
183 88 96 55.8 _bin/cxx-opt+bumproot/osh mut
194 137 56 56.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 139 72 47.0 osh-native mut+alloc
215 159 56 48.6 osh-native mut+alloc+free
180 132 48 8.8 osh-native mut+alloc+free+gc
182 146 35 8.7 osh-native mut+alloc+free+gc+exit
232 168 64 63.8 _bin/cxx-opt+nopool/osh mut+alloc
208 168 40 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 6 5 3.4 dash -
20 15 6 4.5 bash -
18 10 9 3.5 zsh -
18 15 3 11.5 bumpleak/osh mut
21 11 10 13.1 _bin/cxx-opt+bumproot/osh mut
20 15 6 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 6 16 11.0 osh-native mut+alloc
22 15 8 11.0 osh-native mut+alloc+free
23 16 7 9.2 osh-native mut+alloc+free+gc
23 16 7 9.0 osh-native mut+alloc+free+gc+exit
25 5 20 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 15 11 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc