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 34 3 9 12.0 18.0 476,698 1,282 6 408,770 5 204,385 osh-native
parse.configure-coreutils 140 21 55 44.6 49.9 1,653,286 4,764 12 1,030,654 6 769,411 osh-native
parse.abuild 9 1 1 2.6 8.3 101,889 180 2 75,112 1 37,556 osh-native
ex.compute-fib 27 0 1 2.4 7.7 584,154 31,810 12 50,000 0 2,832 osh-native
ex.bashcomp-parse-help 180 0 3 10.3 8.4 995,231 27,376 21 50,000 0 3,823 osh-native
ex.abuild-print-help 22 1 2 2.8 9.0 116,298 478 3 85,348 1 42,674 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 23 0 3.1 bash -
104 56 54 3.4 zsh -
16 12 4 29.2 bumpleak/osh mut
19 15 4 29.8 _bin/cxx-opt+bumproot/osh mut
22 13 9 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 12 16 25.0 osh-native mut+alloc
30 23 8 25.6 osh-native mut+alloc+free
34 34 0 18.0 osh-native mut+alloc+free+gc
35 35 0 18.0 osh-native mut+alloc+free+gc+exit
42 29 13 32.0 _bin/cxx-opt+nopool/osh mut+alloc
46 46 0 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 21 0 1.4 dash -
77 73 4 3.3 bash -
376 199 197 3.5 zsh -
49 45 4 84.9 bumpleak/osh mut
60 55 4 85.1 _bin/cxx-opt+bumproot/osh mut
68 56 12 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
95 55 40 73.3 osh-native mut+alloc
104 88 16 75.3 osh-native mut+alloc+free
140 112 28 49.9 osh-native mut+alloc+free+gc
144 120 24 50.6 osh-native mut+alloc+free+gc+exit
136 96 40 97.7 _bin/cxx-opt+nopool/osh mut+alloc
196 164 32 67.9 _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.4 dash -
6 6 0 2.9 bash -
8 8 0 3.3 zsh -
6 6 0 10.9 bumpleak/osh mut
7 7 0 12.0 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.1 osh-native mut+alloc
8 4 4 10.1 osh-native mut+alloc+free
9 9 0 8.3 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
11 7 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 7 4 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
10 10 0 1.4 dash -
28 24 4 2.9 bash -
24 20 4 3.1 zsh -
18 18 0 30.9 bumpleak/osh mut
25 21 4 31.6 _bin/cxx-opt+bumproot/osh mut
27 23 4 32.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
35 31 4 26.0 osh-native mut+alloc
37 37 0 26.5 osh-native mut+alloc+free
27 27 0 7.7 osh-native mut+alloc+free+gc
27 23 4 7.9 osh-native mut+alloc+free+gc+exit
53 49 4 36.2 _bin/cxx-opt+nopool/osh mut+alloc
36 32 4 9.3 _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
72 72 0 3.1 bash -
170 123 47 54.2 bumpleak/osh mut
179 98 82 54.2 _bin/cxx-opt+bumproot/osh mut
192 108 84 55.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
207 135 72 46.9 osh-native mut+alloc
213 122 91 48.7 osh-native mut+alloc+free
180 116 64 8.4 osh-native mut+alloc+free+gc
179 134 45 8.5 osh-native mut+alloc+free+gc+exit
228 128 100 64.0 _bin/cxx-opt+nopool/osh mut+alloc
206 153 52 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 7 3 3.5 dash -
19 10 10 4.3 bash -
17 11 7 3.4 zsh -
17 11 7 11.0 bumpleak/osh mut
20 16 4 12.6 _bin/cxx-opt+bumproot/osh mut
21 18 4 13.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 15 6 11.0 osh-native mut+alloc
22 19 3 11.0 osh-native mut+alloc+free
22 10 12 9.0 osh-native mut+alloc+free+gc
22 13 10 8.9 osh-native mut+alloc+free+gc+exit
24 15 9 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 18 7 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc