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 36 4 10 12.0 17.8 476,689 1,282 6 408,756 5 204,378 osh-native
parse.configure-coreutils 161 27 73 46.1 51.4 1,653,277 4,764 12 1,069,122 6 798,642 osh-native
parse.abuild 9 1 1 2.6 8.5 101,880 180 2 75,098 1 37,549 osh-native
ex.compute-fib 28 0 1 2.6 7.9 584,145 31,810 12 50,000 0 2,826 osh-native
ex.bashcomp-parse-help 181 0 3 10.6 8.7 995,222 27,376 21 50,000 0 3,821 osh-native
ex.abuild-print-help 25 1 2 2.8 8.9 116,289 478 3 85,334 1 42,667 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 -
24 23 0 3.1 bash -
106 50 62 3.4 zsh -
17 13 3 29.7 bumpleak/osh mut
20 16 4 30.2 _bin/cxx-opt+bumproot/osh mut
23 22 0 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 22 7 25.2 osh-native mut+alloc
32 28 4 25.3 osh-native mut+alloc+free
36 28 8 17.8 osh-native mut+alloc+free+gc
37 37 0 18.1 osh-native mut+alloc+free+gc+exit
44 20 24 32.0 _bin/cxx-opt+nopool/osh mut+alloc
53 45 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 22 0 1.6 dash -
78 78 0 3.1 bash -
381 239 163 3.5 zsh -
49 40 8 85.3 bumpleak/osh mut
61 52 8 84.9 _bin/cxx-opt+bumproot/osh mut
70 61 8 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 77 20 73.6 osh-native mut+alloc
108 92 16 75.3 osh-native mut+alloc+free
161 149 12 51.4 osh-native mut+alloc+free+gc
160 127 32 52.2 osh-native mut+alloc+free+gc+exit
143 99 44 98.6 _bin/cxx-opt+nopool/osh mut+alloc
242 214 28 72.6 _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 2.9 bash -
8 4 4 3.3 zsh -
6 3 3 12.1 bumpleak/osh mut
7 7 0 11.4 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 0 9 10.0 osh-native mut+alloc
9 9 0 9.8 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
10 10 0 8.5 osh-native mut+alloc+free+gc+exit
12 0 12 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.6 _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 2.9 bash -
24 20 4 3.3 zsh -
19 15 4 32.7 bumpleak/osh mut
25 21 4 32.0 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
39 30 9 26.3 osh-native mut+alloc
39 23 15 26.6 osh-native mut+alloc+free
28 20 8 7.9 osh-native mut+alloc+free+gc
29 29 0 7.9 osh-native mut+alloc+free+gc+exit
55 39 15 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 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
74 66 8 3.3 bash -
171 135 36 53.9 bumpleak/osh mut
179 131 48 54.6 _bin/cxx-opt+bumproot/osh mut
199 143 56 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 103 107 46.9 osh-native mut+alloc
219 155 64 48.9 osh-native mut+alloc+free
181 113 68 8.7 osh-native mut+alloc+free+gc
183 138 45 8.7 osh-native mut+alloc+free+gc+exit
233 153 80 62.9 _bin/cxx-opt+nopool/osh mut+alloc
209 145 64 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 9 1 3.5 dash -
20 14 6 4.5 bash -
19 17 2 3.4 zsh -
20 19 2 12.2 bumpleak/osh mut
21 15 6 12.3 _bin/cxx-opt+bumproot/osh mut
22 11 11 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
23 13 10 10.9 osh-native mut+alloc
24 16 9 11.0 osh-native mut+alloc+free
25 19 6 8.9 osh-native mut+alloc+free+gc
24 22 2 8.9 osh-native mut+alloc+free+gc+exit
26 20 7 12.7 _bin/cxx-opt+nopool/osh mut+alloc
27 17 10 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc