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 92 0 0 20.8 27.5 570,041 1,282 6 684,716 5 342,358 osh-native
parse.configure-coreutils 351 0 0 73.4 81.1 1,965,553 4,764 8 1,828,702 7 914,351 osh-native
parse.abuild 17 0 0 4.5 10.7 120,866 180 3 145,138 2 72,569 osh-native
ex.compute-fib 105 0 0 12.6 8.3 1,263,213 31,810 27 50,000 0 3,547 osh-native
ex.bashcomp-parse-help 362 0 0 22.7 8.9 1,747,294 27,375 38 50,000 0 4,923 osh-native
ex.abuild-print-help 34 0 0 5.0 11.0 144,126 477 3 132,502 2 66,251 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 3 3 1.8 dash -
54 44 0 3.6 bash -
141 93 54 4.2 zsh -
43 31 12 32.6 bumpleak/osh mut
57 36 20 32.9 _bin/cxx-opt+bumproot/osh mut
64 59 4 34.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
68 48 20 33.8 osh-native mut+alloc
83 75 8 38.1 osh-native mut+alloc+free
92 76 16 27.5 osh-native mut+alloc+free+gc
98 90 8 30.4 osh-native mut+alloc+free+gc+exit
74 62 12 37.0 _bin/cxx-opt+nopool/osh mut+alloc
113 113 0 30.6 _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
25 25 0 1.8 dash -
150 140 0 3.7 bash -
554 341 230 4.3 zsh -
149 129 20 100.0 bumpleak/osh mut
204 175 28 100.3 _bin/cxx-opt+bumproot/osh mut
237 197 40 107.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
231 203 28 104.8 osh-native mut+alloc
280 240 40 120.1 osh-native mut+alloc+free
351 315 36 81.1 osh-native mut+alloc+free+gc
406 374 32 92.3 osh-native mut+alloc+free+gc+exit
263 231 32 115.8 _bin/cxx-opt+nopool/osh mut+alloc
365 329 36 94.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.8 dash -
22 12 0 3.5 bash -
12 8 4 4.3 zsh -
10 10 0 11.5 bumpleak/osh mut
12 12 0 11.7 _bin/cxx-opt+bumproot/osh mut
15 11 4 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
13 13 0 12.1 osh-native mut+alloc
16 12 4 12.9 osh-native mut+alloc+free
17 14 3 10.7 osh-native mut+alloc+free+gc
19 16 4 11.5 osh-native mut+alloc+free+gc+exit
16 12 4 12.7 _bin/cxx-opt+nopool/osh mut+alloc
20 15 5 11.2 _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 11 0 1.7 dash -
43 43 0 3.4 bash -
30 26 4 4.2 zsh -
77 56 20 53.1 bumpleak/osh mut
108 100 8 53.4 _bin/cxx-opt+bumproot/osh mut
131 107 24 55.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
136 128 8 53.8 osh-native mut+alloc
139 111 28 60.3 osh-native mut+alloc+free
105 105 0 8.3 osh-native mut+alloc+free+gc
114 113 0 8.2 osh-native mut+alloc+free+gc+exit
176 149 27 63.2 _bin/cxx-opt+nopool/osh mut+alloc
146 146 0 9.0 _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
232 231 0 3.8 bash -
376 324 52 76.1 bumpleak/osh mut
359 287 72 76.4 _bin/cxx-opt+bumproot/osh mut
437 377 60 79.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
397 337 60 78.4 osh-native mut+alloc
442 374 68 85.7 osh-native mut+alloc+free
362 350 12 8.9 osh-native mut+alloc+free+gc
399 355 44 8.9 osh-native mut+alloc+free+gc+exit
431 348 84 90.4 _bin/cxx-opt+nopool/osh mut+alloc
461 441 20 9.7 _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
6 6 1 3.9 dash -
76 35 7 5.2 bash -
20 12 8 4.4 zsh -
20 20 1 13.0 bumpleak/osh mut
23 17 7 13.2 _bin/cxx-opt+bumproot/osh mut
24 23 0 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
23 12 11 13.4 osh-native mut+alloc
32 28 5 14.5 osh-native mut+alloc+free
34 31 4 11.0 osh-native mut+alloc+free+gc
39 32 8 11.9 osh-native mut+alloc+free+gc+exit
26 22 5 14.0 _bin/cxx-opt+nopool/osh mut+alloc
30 23 8 11.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc