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 38 5 11 12.0 18.0 476,681 1,282 6 408,790 5 204,395 osh-native
parse.configure-cpython 33 4 10 12.0 17.7 476,681 1,282 6 408,660 5 204,330 osh-native-souffle
parse.configure-coreutils 173 28 84 46.1 51.6 1,653,269 4,764 12 1,069,156 6 798,659 osh-native
parse.configure-coreutils 154 28 76 46.1 51.0 1,653,268 4,764 12 1,069,026 6 798,594 osh-native-souffle
parse.abuild 9 1 1 2.6 8.4 101,872 180 2 75,132 1 37,566 osh-native
parse.abuild 8 1 1 2.6 8.3 101,872 180 2 75,002 1 37,501 osh-native-souffle
ex.compute-fib 28 0 2 2.4 8.1 584,140 22,608 12 50,000 0 2,844 osh-native
ex.compute-fib 22 0 2 2.4 7.5 584,140 22,608 12 50,000 0 2,782 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 10.3 8.7 995,218 12,911 21 50,000 0 3,826 osh-native
ex.bashcomp-parse-help 175 0 4 10.3 8.4 995,217 12,911 21 50,000 0 3,773 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 8.9 116,287 270 3 85,368 1 42,684 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,287 270 3 85,244 1 42,622 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.4 dash -
24 23 0 3.0 bash -
105 57 54 3.4 zsh -
17 12 4 29.3 bumpleak/osh mut
20 15 5 28.5 _bin/cxx-opt+bumproot/osh mut
23 19 4 30.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 21 9 25.2 osh-native mut+alloc
33 25 8 25.6 osh-native mut+alloc+free
38 34 4 18.0 osh-native mut+alloc+free+gc
37 26 11 18.1 osh-native mut+alloc+free+gc+exit
44 16 28 33.0 _bin/cxx-opt+nopool/osh mut+alloc
53 45 8 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 12 15 24.8 osh-native-souffle mut+alloc
30 21 8 25.3 osh-native-souffle mut+alloc+free
33 18 14 17.7 osh-native-souffle mut+alloc+free+gc
35 23 11 17.6 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
21 18 4 1.6 dash -
78 74 4 3.3 bash -
383 202 205 3.5 zsh -
49 41 8 85.7 bumpleak/osh mut
61 48 12 85.9 _bin/cxx-opt+bumproot/osh mut
70 47 23 86.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 75 24 73.6 osh-native mut+alloc
106 86 20 75.3 osh-native mut+alloc+free
173 141 32 51.6 osh-native mut+alloc+free+gc
179 159 20 52.3 osh-native mut+alloc+free+gc+exit
141 100 40 98.6 _bin/cxx-opt+nopool/osh mut+alloc
250 210 40 73.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
90 47 43 73.0 osh-native-souffle mut+alloc
97 62 35 75.0 osh-native-souffle mut+alloc+free
154 131 24 51.0 osh-native-souffle mut+alloc+free+gc
156 140 16 51.9 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 2 0 1.3 dash -
6 6 0 3.0 bash -
9 9 0 3.3 zsh -
7 7 0 11.5 bumpleak/osh mut
7 7 0 12.0 _bin/cxx-opt+bumproot/osh mut
8 4 4 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 8 0 10.0 osh-native mut+alloc
9 9 0 10.2 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 12 0 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.7 osh-native-souffle mut+alloc
8 4 4 9.6 osh-native-souffle mut+alloc+free
8 4 4 8.3 osh-native-souffle mut+alloc+free+gc
9 3 6 8.1 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
11 10 0 1.6 dash -
29 25 4 3.0 bash -
24 12 12 3.3 zsh -
18 18 0 31.0 bumpleak/osh mut
26 22 4 32.5 _bin/cxx-opt+bumproot/osh mut
29 24 4 33.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 36 0 26.3 osh-native mut+alloc
39 27 12 26.6 osh-native mut+alloc+free
28 20 8 8.1 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
54 37 17 36.4 _bin/cxx-opt+nopool/osh mut+alloc
39 31 8 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 17 13 25.8 osh-native-souffle mut+alloc
33 22 11 26.2 osh-native-souffle mut+alloc+free
22 18 4 7.5 osh-native-souffle mut+alloc+free+gc
22 22 0 7.6 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
73 61 11 3.1 bash -
170 114 55 54.1 bumpleak/osh mut
182 138 44 56.2 _bin/cxx-opt+bumproot/osh mut
195 127 68 56.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 112 100 47.1 osh-native mut+alloc
220 180 40 48.8 osh-native mut+alloc+free
182 134 47 8.7 osh-native mut+alloc+free+gc
182 121 61 8.8 osh-native mut+alloc+free+gc+exit
233 126 106 63.8 _bin/cxx-opt+nopool/osh mut+alloc
211 163 48 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 134 71 46.6 osh-native-souffle mut+alloc
214 129 85 48.4 osh-native-souffle mut+alloc+free
175 111 64 8.4 osh-native-souffle mut+alloc+free+gc
177 110 67 8.4 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 9 2 3.4 dash -
20 18 3 4.3 bash -
18 5 13 3.4 zsh -
18 13 6 11.7 bumpleak/osh mut
22 13 9 13.2 _bin/cxx-opt+bumproot/osh mut
22 11 12 13.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 11 12 11.0 osh-native mut+alloc
23 16 7 11.1 osh-native mut+alloc+free
23 14 9 8.9 osh-native mut+alloc+free+gc
24 16 8 9.0 osh-native mut+alloc+free+gc+exit
25 10 16 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 20 7 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 19 2 10.5 osh-native-souffle mut+alloc
22 17 5 10.7 osh-native-souffle mut+alloc+free
21 17 5 8.7 osh-native-souffle mut+alloc+free+gc
23 16 7 8.7 osh-native-souffle mut+alloc+free+gc+exit