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.1 18.0 476,708 1,282 6 409,064 5 204,532 osh-native
parse.configure-cpython 32 3 9 12.0 17.7 476,708 1,282 6 408,722 5 204,361 osh-native-souffle
parse.configure-coreutils 147 24 59 44.7 49.9 1,653,296 4,764 12 1,030,978 6 769,626 osh-native
parse.configure-coreutils 139 25 62 46.1 51.0 1,653,295 4,764 12 1,069,088 6 798,625 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,899 180 2 75,194 1 37,597 osh-native
parse.abuild 8 1 1 2.6 8.0 101,899 180 2 75,064 1 37,532 osh-native-souffle
ex.compute-fib 32 0 1 2.4 8.0 584,164 22,608 12 50,000 0 2,875 osh-native
ex.compute-fib 22 0 1 2.4 7.6 584,164 22,608 12 50,000 0 2,813 osh-native-souffle
ex.bashcomp-parse-help 180 0 3 10.3 8.7 995,245 12,911 21 50,000 0 3,865 osh-native
ex.bashcomp-parse-help 175 0 3 10.3 8.4 995,244 12,911 21 50,000 0 3,795 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,314 270 3 85,430 1 42,715 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,314 270 3 85,306 1 42,653 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 -
24 23 0 3.1 bash -
103 47 62 3.4 zsh -
16 8 8 28.8 bumpleak/osh mut
19 19 0 29.7 _bin/cxx-opt+bumproot/osh mut
22 22 0 29.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.3 osh-native mut+alloc
31 27 4 25.6 osh-native mut+alloc+free
36 24 12 18.0 osh-native mut+alloc+free+gc
36 28 8 18.1 osh-native mut+alloc+free+gc+exit
44 39 4 33.3 _bin/cxx-opt+nopool/osh mut+alloc
48 28 20 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 11 15 24.9 osh-native-souffle mut+alloc
29 20 8 25.2 osh-native-souffle mut+alloc+free
32 31 0 17.7 osh-native-souffle mut+alloc+free+gc
32 28 4 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 22 0 1.6 dash -
78 78 0 3.1 bash -
376 201 196 3.5 zsh -
49 36 12 84.4 bumpleak/osh mut
60 52 8 84.4 _bin/cxx-opt+bumproot/osh mut
70 62 8 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 64 32 73.4 osh-native mut+alloc
106 55 51 75.3 osh-native mut+alloc+free
147 123 24 49.9 osh-native mut+alloc+free+gc
147 127 20 50.6 osh-native mut+alloc+free+gc+exit
139 94 45 99.1 _bin/cxx-opt+nopool/osh mut+alloc
207 167 40 68.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 47 40 73.0 osh-native-souffle mut+alloc
97 64 32 75.0 osh-native-souffle mut+alloc+free
139 107 32 51.0 osh-native-souffle mut+alloc+free+gc
143 114 29 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.4 dash -
6 6 0 3.0 bash -
7 8 0 3.3 zsh -
6 3 3 11.0 bumpleak/osh mut
7 3 3 11.2 _bin/cxx-opt+bumproot/osh mut
8 4 4 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.1 osh-native mut+alloc
8 4 4 10.1 osh-native mut+alloc+free
9 4 4 8.7 osh-native mut+alloc+free+gc
9 6 3 8.7 osh-native mut+alloc+free+gc+exit
11 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 8 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 7 0 9.8 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
8 8 0 8.0 osh-native-souffle mut+alloc+free+gc
8 8 0 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
10 10 0 1.6 dash -
29 29 0 3.0 bash -
24 16 8 3.3 zsh -
18 14 5 31.9 bumpleak/osh mut
26 21 4 32.4 _bin/cxx-opt+bumproot/osh mut
28 27 0 31.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 32 4 26.2 osh-native mut+alloc
38 26 11 26.5 osh-native mut+alloc+free
32 32 0 8.0 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
53 40 12 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 15 15 25.8 osh-native-souffle mut+alloc
31 19 12 26.2 osh-native-souffle mut+alloc+free
22 17 4 7.6 osh-native-souffle mut+alloc+free+gc
22 18 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
73 69 4 3.0 bash -
167 96 72 55.9 bumpleak/osh mut
181 133 48 56.4 _bin/cxx-opt+bumproot/osh mut
200 140 60 55.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 150 61 47.0 osh-native mut+alloc
217 157 60 48.8 osh-native mut+alloc+free
180 148 32 8.7 osh-native mut+alloc+free+gc
183 107 75 8.8 osh-native mut+alloc+free+gc+exit
230 145 85 63.2 _bin/cxx-opt+nopool/osh mut+alloc
209 132 76 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 123 79 46.6 osh-native-souffle mut+alloc
210 121 89 48.3 osh-native-souffle mut+alloc+free
175 110 65 8.4 osh-native-souffle mut+alloc+free+gc
173 121 52 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
9 4 5 3.5 dash -
20 13 7 4.3 bash -
18 13 5 3.4 zsh -
19 11 8 12.5 bumpleak/osh mut
19 18 2 13.7 _bin/cxx-opt+bumproot/osh mut
20 13 8 13.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 19 3 11.0 osh-native mut+alloc
22 14 8 11.1 osh-native mut+alloc+free
23 17 6 9.0 osh-native mut+alloc+free+gc
22 13 9 8.9 osh-native mut+alloc+free+gc+exit
25 17 8 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 16 9 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 19 1 10.4 osh-native-souffle mut+alloc
21 16 5 10.7 osh-native-souffle mut+alloc+free
21 20 1 8.7 osh-native-souffle mut+alloc+free+gc
21 13 8 8.5 osh-native-souffle mut+alloc+free+gc+exit