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 3 9 12.0 17.7 476,689 1,282 6 408,756 5 204,378 osh-native
parse.configure-coreutils 155 25 68 46.1 51.6 1,653,277 4,764 12 1,069,122 6 798,642 osh-native
parse.abuild 9 1 1 2.6 8.7 101,880 180 2 75,098 1 37,549 osh-native
ex.compute-fib 28 0 1 2.6 7.7 584,145 31,810 12 50,000 0 2,826 osh-native
ex.bashcomp-parse-help 182 0 3 10.6 8.8 995,222 27,376 21 50,000 0 3,821 osh-native
ex.abuild-print-help 23 1 2 2.8 9.0 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 3 3 1.4 dash -
23 23 0 3.0 bash -
116 68 54 3.4 zsh -
16 16 0 29.1 bumpleak/osh mut
20 16 4 28.4 _bin/cxx-opt+bumproot/osh mut
23 22 0 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.0 osh-native mut+alloc
32 27 4 25.7 osh-native mut+alloc+free
36 28 8 17.7 osh-native mut+alloc+free+gc
36 32 4 18.1 osh-native mut+alloc+free+gc+exit
44 24 20 32.9 _bin/cxx-opt+nopool/osh mut+alloc
49 41 8 22.2 _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 -
77 77 0 3.1 bash -
376 198 198 3.7 zsh -
49 37 12 84.9 bumpleak/osh mut
59 55 4 85.9 _bin/cxx-opt+bumproot/osh mut
69 61 8 86.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 56 40 73.4 osh-native mut+alloc
105 77 28 75.4 osh-native mut+alloc+free
155 139 16 51.6 osh-native mut+alloc+free+gc
157 137 20 52.2 osh-native mut+alloc+free+gc+exit
141 92 48 98.4 _bin/cxx-opt+nopool/osh mut+alloc
218 181 36 71.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.3 dash -
6 6 0 2.9 bash -
8 4 4 3.3 zsh -
6 0 6 11.3 bumpleak/osh mut
7 0 7 11.1 _bin/cxx-opt+bumproot/osh mut
8 8 0 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.0 osh-native mut+alloc
9 3 6 10.1 osh-native mut+alloc+free
9 9 0 8.7 osh-native mut+alloc+free+gc
9 4 4 8.5 osh-native mut+alloc+free+gc+exit
12 4 8 11.2 _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
10 10 0 1.4 dash -
29 29 0 3.0 bash -
24 24 0 3.1 zsh -
19 15 4 30.9 bumpleak/osh mut
25 25 0 32.2 _bin/cxx-opt+bumproot/osh mut
28 27 0 32.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 25 11 26.3 osh-native mut+alloc
39 27 11 26.7 osh-native mut+alloc+free
28 28 0 7.7 osh-native mut+alloc+free+gc
28 24 4 7.6 osh-native mut+alloc+free+gc+exit
54 29 25 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 32 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
76 67 8 3.0 bash -
168 108 60 54.0 bumpleak/osh mut
179 135 44 56.3 _bin/cxx-opt+bumproot/osh mut
192 138 53 56.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 130 79 46.9 osh-native mut+alloc
218 131 87 48.9 osh-native mut+alloc+free
182 130 53 8.8 osh-native mut+alloc+free+gc
181 120 60 8.8 osh-native mut+alloc+free+gc+exit
232 112 120 62.5 _bin/cxx-opt+nopool/osh mut+alloc
208 132 76 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 8 2 3.4 dash -
19 19 1 4.3 bash -
18 9 9 3.5 zsh -
19 8 11 11.5 bumpleak/osh mut
20 17 3 13.4 _bin/cxx-opt+bumproot/osh mut
22 16 6 13.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 14 9 10.7 osh-native mut+alloc
23 16 7 11.0 osh-native mut+alloc+free
23 18 5 9.0 osh-native mut+alloc+free+gc
23 15 8 8.8 osh-native mut+alloc+free+gc+exit
26 12 14 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 14 12 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc