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 4 10 12.0 17.7 476,699 1,282 6 408,772 5 204,386 osh-native
parse.configure-coreutils 154 26 66 44.6 49.9 1,653,287 4,764 12 1,030,656 6 769,412 osh-native
parse.abuild 9 1 1 2.6 8.5 101,890 180 2 75,114 1 37,557 osh-native
ex.compute-fib 29 0 2 2.4 7.7 584,155 31,810 12 50,000 0 2,833 osh-native
ex.bashcomp-parse-help 180 0 3 10.3 8.4 995,232 27,376 21 50,000 0 3,824 osh-native
ex.abuild-print-help 23 1 2 2.8 8.9 116,299 478 3 85,350 1 42,675 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 -
24 24 0 3.1 bash -
104 64 46 3.4 zsh -
16 8 8 28.6 bumpleak/osh mut
19 11 8 29.3 _bin/cxx-opt+bumproot/osh mut
23 13 9 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 18 11 24.9 osh-native mut+alloc
32 24 8 25.6 osh-native mut+alloc+free
37 24 12 17.7 osh-native mut+alloc+free+gc
36 36 0 18.1 osh-native mut+alloc+free+gc+exit
44 32 12 32.1 _bin/cxx-opt+nopool/osh mut+alloc
49 37 12 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 -
78 74 4 3.1 bash -
375 189 207 3.5 zsh -
50 41 8 85.1 bumpleak/osh mut
60 48 12 84.2 _bin/cxx-opt+bumproot/osh mut
71 54 17 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 67 31 73.6 osh-native mut+alloc
108 83 24 75.3 osh-native mut+alloc+free
154 123 32 49.9 osh-native mut+alloc+free+gc
154 137 16 50.6 osh-native mut+alloc+free+gc+exit
139 95 44 99.1 _bin/cxx-opt+nopool/osh mut+alloc
207 171 36 68.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 2 0 1.3 dash -
6 6 0 3.0 bash -
8 4 4 3.3 zsh -
6 6 0 10.6 bumpleak/osh mut
6 6 0 12.3 _bin/cxx-opt+bumproot/osh mut
8 8 0 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
9 0 9 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 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 7 3 1.4 dash -
29 28 0 3.0 bash -
24 23 0 3.3 zsh -
19 11 8 31.6 bumpleak/osh mut
26 26 0 32.8 _bin/cxx-opt+bumproot/osh mut
28 17 10 31.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 16 20 26.3 osh-native mut+alloc
38 29 8 26.5 osh-native mut+alloc+free
29 28 0 7.7 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
53 30 23 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 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
72 68 4 3.1 bash -
167 135 32 55.1 bumpleak/osh mut
182 130 51 54.8 _bin/cxx-opt+bumproot/osh mut
194 115 79 56.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
209 124 84 47.0 osh-native mut+alloc
216 136 80 48.6 osh-native mut+alloc+free
180 139 40 8.4 osh-native mut+alloc+free+gc
180 128 52 8.7 osh-native mut+alloc+free+gc+exit
229 156 72 63.3 _bin/cxx-opt+nopool/osh mut+alloc
209 152 56 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 4 6 3.4 dash -
20 13 7 4.5 bash -
18 12 7 3.5 zsh -
19 13 7 12.1 bumpleak/osh mut
20 17 3 12.2 _bin/cxx-opt+bumproot/osh mut
20 16 4 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 12 9 10.9 osh-native mut+alloc
22 6 17 11.1 osh-native mut+alloc+free
23 18 5 8.9 osh-native mut+alloc+free+gc
23 19 4 8.9 osh-native mut+alloc+free+gc+exit
25 5 20 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 18 8 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc