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 11 12.1 17.8 476,742 1,282 6 409,294 5 204,647 osh-native
parse.configure-cpython 34 3 9 12.0 17.7 476,742 1,282 6 408,794 5 204,397 osh-native-souffle
parse.configure-coreutils 159 22 76 41.1 45.9 1,653,330 4,764 12 1,591,976 7 795,988 osh-native
parse.configure-coreutils 138 24 61 44.6 49.7 1,653,329 4,764 12 1,030,678 6 769,423 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,933 180 2 75,266 1 37,633 osh-native
parse.abuild 8 1 1 2.6 8.1 101,933 180 2 75,136 1 37,568 osh-native-souffle
ex.compute-fib 28 0 2 2.4 8.1 584,198 22,608 12 50,000 0 2,910 osh-native
ex.compute-fib 23 0 2 2.4 7.5 584,198 22,608 12 50,000 0 2,848 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 10.3 8.8 995,279 14,629 21 50,000 0 3,898 osh-native
ex.bashcomp-parse-help 175 0 3 10.3 8.3 995,278 14,629 21 50,000 0 3,838 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,348 276 3 85,502 1 42,751 osh-native
ex.abuild-print-help 21 1 2 2.8 8.4 116,348 276 3 85,378 1 42,689 osh-native-souffle

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 -
23 23 0 3.1 bash -
105 57 55 3.4 zsh -
17 13 4 28.0 bumpleak/osh mut
18 11 7 29.0 _bin/cxx-opt+bumproot/osh mut
23 19 4 30.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 17 12 25.0 osh-native mut+alloc
31 18 13 25.6 osh-native mut+alloc+free
37 24 12 17.8 osh-native mut+alloc+free+gc
36 32 4 18.1 osh-native mut+alloc+free+gc+exit
44 24 20 32.0 _bin/cxx-opt+nopool/osh mut+alloc
49 37 12 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
28 24 4 24.9 osh-native-souffle mut+alloc
29 22 7 25.3 osh-native-souffle mut+alloc+free
34 19 15 17.7 osh-native-souffle mut+alloc+free+gc
34 21 13 17.7 osh-native-souffle mut+alloc+free+gc+exit

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 18 4 1.6 dash -
78 78 0 3.3 bash -
377 185 214 3.5 zsh -
49 41 8 85.7 bumpleak/osh mut
59 51 8 84.6 _bin/cxx-opt+bumproot/osh mut
70 62 8 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 60 36 73.4 osh-native mut+alloc
104 56 48 75.4 osh-native mut+alloc+free
159 139 20 45.9 osh-native mut+alloc+free+gc
166 146 20 46.0 osh-native mut+alloc+free+gc+exit
139 81 57 98.7 _bin/cxx-opt+nopool/osh mut+alloc
249 233 16 61.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 36 52 73.3 osh-native-souffle mut+alloc
99 62 37 75.0 osh-native-souffle mut+alloc+free
138 125 12 49.7 osh-native-souffle mut+alloc+free+gc
148 128 20 50.3 osh-native-souffle mut+alloc+free+gc+exit

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.4 dash -
6 6 0 3.0 bash -
8 8 0 3.1 zsh -
6 6 0 10.3 bumpleak/osh mut
7 7 0 12.5 _bin/cxx-opt+bumproot/osh mut
7 3 3 10.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.0 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
9 0 9 8.7 osh-native mut+alloc+free+gc+exit
12 12 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 8 4 9.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.8 osh-native-souffle mut+alloc
8 8 0 9.8 osh-native-souffle mut+alloc+free
8 4 4 8.1 osh-native-souffle mut+alloc+free+gc
8 4 4 8.3 osh-native-souffle mut+alloc+free+gc+exit

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 25 4 2.9 bash -
23 19 4 3.1 zsh -
19 14 5 31.9 bumpleak/osh mut
26 22 4 33.2 _bin/cxx-opt+bumproot/osh mut
28 20 8 33.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 32 4 26.3 osh-native mut+alloc
38 15 23 26.3 osh-native mut+alloc+free
28 24 4 8.1 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
54 39 16 36.0 _bin/cxx-opt+nopool/osh mut+alloc
36 32 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 23 8 26.1 osh-native-souffle mut+alloc
32 31 0 26.3 osh-native-souffle mut+alloc+free
23 18 4 7.5 osh-native-souffle mut+alloc+free+gc
23 19 4 7.5 osh-native-souffle mut+alloc+free+gc+exit

ex.bashcomp-parse-help

A realistic bash-completion workload.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
74 69 4 3.0 bash -
168 92 76 55.4 bumpleak/osh mut
181 110 71 56.1 _bin/cxx-opt+bumproot/osh mut
197 137 59 55.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 151 60 47.1 osh-native mut+alloc
220 156 64 48.8 osh-native mut+alloc+free
183 138 45 8.8 osh-native mut+alloc+free+gc
185 132 52 8.8 osh-native mut+alloc+free+gc+exit
237 122 115 62.7 _bin/cxx-opt+nopool/osh mut+alloc
212 172 40 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
238 147 91 46.8 osh-native-souffle mut+alloc
212 122 89 48.3 osh-native-souffle mut+alloc+free
175 135 40 8.3 osh-native-souffle mut+alloc+free+gc
177 133 44 8.3 osh-native-souffle mut+alloc+free+gc+exit

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 1 3.4 dash -
20 14 7 4.5 bash -
18 11 7 3.5 zsh -
20 9 11 12.9 bumpleak/osh mut
19 14 5 12.4 _bin/cxx-opt+bumproot/osh mut
21 13 9 13.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 16 6 11.0 osh-native mut+alloc
22 11 12 11.1 osh-native mut+alloc+free
22 12 11 9.0 osh-native mut+alloc+free+gc
23 21 3 8.8 osh-native mut+alloc+free+gc+exit
24 21 4 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 15 10 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 15 6 10.6 osh-native-souffle mut+alloc
21 21 1 10.6 osh-native-souffle mut+alloc+free
21 15 7 8.4 osh-native-souffle mut+alloc+free+gc
21 15 7 8.7 osh-native-souffle mut+alloc+free+gc+exit