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,699 1,282 6 408,772 5 204,386 osh-native
parse.configure-coreutils 145 24 59 44.6 49.8 1,653,287 4,764 12 1,030,656 6 769,412 osh-native
parse.abuild 9 1 1 2.6 8.4 101,890 180 2 75,114 1 37,557 osh-native
ex.compute-fib 28 0 1 2.4 7.9 584,155 31,810 12 50,000 0 2,833 osh-native
ex.bashcomp-parse-help 178 0 3 10.3 8.5 995,232 27,376 21 50,000 0 3,824 osh-native
ex.abuild-print-help 22 1 2 2.8 9.0 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
7 3 3 1.6 dash -
25 24 0 3.1 bash -
105 69 42 3.3 zsh -
16 12 4 27.8 bumpleak/osh mut
19 15 4 29.8 _bin/cxx-opt+bumproot/osh mut
22 18 4 30.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 24.9 osh-native mut+alloc
31 23 8 25.6 osh-native mut+alloc+free
35 23 11 18.0 osh-native mut+alloc+free+gc
36 28 8 18.0 osh-native mut+alloc+free+gc+exit
43 43 0 32.8 _bin/cxx-opt+nopool/osh mut+alloc
47 38 8 22.3 _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 17 4 1.6 dash -
77 77 0 3.1 bash -
377 194 204 3.5 zsh -
49 41 7 85.9 bumpleak/osh mut
61 44 16 84.9 _bin/cxx-opt+bumproot/osh mut
70 61 8 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 72 24 73.5 osh-native mut+alloc
106 65 41 75.3 osh-native mut+alloc+free
145 129 16 49.8 osh-native mut+alloc+free+gc
150 133 16 50.6 osh-native mut+alloc+free+gc+exit
139 95 44 98.0 _bin/cxx-opt+nopool/osh mut+alloc
205 168 36 68.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.4 dash -
6 3 3 3.0 bash -
8 4 4 3.3 zsh -
6 3 3 11.4 bumpleak/osh mut
6 3 3 12.7 _bin/cxx-opt+bumproot/osh mut
7 7 0 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 8 0 10.0 osh-native mut+alloc
8 4 4 10.1 osh-native mut+alloc+free
9 3 6 8.4 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.3 _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
11 10 0 1.6 dash -
29 25 4 3.0 bash -
23 12 12 3.4 zsh -
19 19 0 31.4 bumpleak/osh mut
26 15 11 32.6 _bin/cxx-opt+bumproot/osh mut
29 18 11 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.1 osh-native mut+alloc
38 29 8 26.6 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
54 31 23 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _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 68 4 3.0 bash -
167 122 45 54.5 bumpleak/osh mut
183 139 44 55.9 _bin/cxx-opt+bumproot/osh mut
192 120 72 56.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 119 92 47.0 osh-native mut+alloc
216 128 88 48.7 osh-native mut+alloc+free
178 134 45 8.5 osh-native mut+alloc+free+gc
182 129 53 8.7 osh-native mut+alloc+free+gc+exit
230 135 95 63.9 _bin/cxx-opt+nopool/osh mut+alloc
207 135 72 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.5 dash -
20 19 2 4.5 bash -
18 10 8 3.5 zsh -
18 12 7 13.0 bumpleak/osh mut
21 18 3 12.9 _bin/cxx-opt+bumproot/osh mut
21 14 8 13.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 14 8 11.0 osh-native mut+alloc
21 17 5 11.0 osh-native mut+alloc+free
22 15 7 9.0 osh-native mut+alloc+free+gc
23 13 10 9.0 osh-native mut+alloc+free+gc+exit
24 11 13 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 18 7 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc