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 35 3 9 12.0 18.0 476,760 1,282 6 406,606 5 203,303 osh-native
parse.configure-cpython 33 4 10 12.0 17.4 476,760 1,282 6 406,322 5 203,161 osh-native-souffle
parse.configure-coreutils 152 26 66 44.5 49.8 1,653,348 4,764 12 1,025,528 6 764,307 osh-native
parse.configure-coreutils 152 26 76 44.5 49.4 1,653,347 4,764 12 1,025,518 6 764,302 osh-native-souffle
parse.abuild 9 1 1 2.6 8.4 101,951 180 2 75,032 1 37,516 osh-native
parse.abuild 8 1 1 2.6 8.4 101,951 180 2 75,022 1 37,511 osh-native-souffle
ex.compute-fib 28 0 1 2.2 7.9 579,715 22,608 12 50,000 0 2,920 osh-native
ex.compute-fib 22 0 2 2.2 7.6 579,715 22,608 12 50,000 0 2,915 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 11.1 8.8 1,021,030 15,258 22 50,000 0 3,909 osh-native
ex.bashcomp-parse-help 173 0 4 11.1 8.4 1,021,029 15,258 22 50,000 0 3,914 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,334 277 3 85,250 1 42,625 osh-native
ex.abuild-print-help 21 1 2 2.8 8.4 116,334 277 3 85,240 1 42,620 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 5 1 1.6 dash -
23 21 2 3.0 bash -
100 46 60 3.4 zsh -
16 13 3 29.5 bumpleak/osh mut
20 19 1 30.1 _bin/cxx-opt+bumproot/osh mut
22 16 6 28.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 21 9 25.2 osh-native mut+alloc
32 20 12 25.7 osh-native mut+alloc+free
35 27 8 18.0 osh-native mut+alloc+free+gc
36 31 5 18.1 osh-native mut+alloc+free+gc+exit
42 31 11 32.5 _bin/cxx-opt+nopool/osh mut+alloc
55 47 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 17 9 24.8 osh-native-souffle mut+alloc
29 19 9 25.0 osh-native-souffle mut+alloc+free
33 23 10 17.4 osh-native-souffle mut+alloc+free+gc
36 27 9 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 20 1 1.6 dash -
80 77 3 3.1 bash -
364 201 184 3.5 zsh -
49 36 13 84.5 bumpleak/osh mut
62 52 10 85.4 _bin/cxx-opt+bumproot/osh mut
78 65 13 85.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
95 62 33 73.7 osh-native mut+alloc
103 75 28 75.4 osh-native mut+alloc+free
152 128 24 49.8 osh-native mut+alloc+free+gc
157 134 23 50.5 osh-native mut+alloc+free+gc+exit
139 92 47 98.8 _bin/cxx-opt+nopool/osh mut+alloc
217 191 26 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 47 42 73.0 osh-native-souffle mut+alloc
97 60 37 75.0 osh-native-souffle mut+alloc+free
152 131 22 49.4 osh-native-souffle mut+alloc+free+gc
155 135 19 50.1 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 1 1 1.4 dash -
5 5 1 2.9 bash -
7 3 4 3.4 zsh -
6 5 1 10.4 bumpleak/osh mut
7 5 2 11.9 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 5 10.0 osh-native mut+alloc
9 7 2 10.1 osh-native mut+alloc+free
9 7 2 8.4 osh-native mut+alloc+free+gc
9 7 2 8.4 osh-native mut+alloc+free+gc+exit
12 8 3 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 3 5 9.7 osh-native-souffle mut+alloc
8 5 3 9.7 osh-native-souffle mut+alloc+free
8 7 2 8.4 osh-native-souffle mut+alloc+free+gc
9 4 5 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.4 dash -
28 27 1 2.9 bash -
23 16 7 3.3 zsh -
18 15 3 31.0 bumpleak/osh mut
27 21 6 32.4 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 25 12 26.3 osh-native mut+alloc
39 28 10 26.6 osh-native mut+alloc+free
28 26 2 7.9 osh-native mut+alloc+free+gc
28 26 2 8.0 osh-native mut+alloc+free+gc+exit
54 39 15 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 34 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 25.8 osh-native-souffle mut+alloc
31 17 14 26.3 osh-native-souffle mut+alloc+free
22 18 4 7.6 osh-native-souffle mut+alloc+free+gc
22 19 3 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
74 72 2 3.1 bash -
167 111 56 57.7 bumpleak/osh mut
181 120 60 56.4 _bin/cxx-opt+bumproot/osh mut
196 134 62 58.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
215 157 58 49.0 osh-native mut+alloc
220 152 69 50.7 osh-native mut+alloc+free
183 130 52 8.8 osh-native mut+alloc+free+gc
183 125 58 8.8 osh-native mut+alloc+free+gc+exit
234 155 79 64.6 _bin/cxx-opt+nopool/osh mut+alloc
215 161 54 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 146 59 48.6 osh-native-souffle mut+alloc
212 134 77 50.4 osh-native-souffle mut+alloc+free
173 107 66 8.4 osh-native-souffle mut+alloc+free+gc
174 126 48 8.5 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 6 3.4 dash -
20 8 12 4.5 bash -
17 6 12 3.4 zsh -
20 6 14 13.1 bumpleak/osh mut
19 9 11 13.8 _bin/cxx-opt+bumproot/osh mut
20 12 8 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 8 13 11.1 osh-native mut+alloc
23 8 15 11.0 osh-native mut+alloc+free
22 12 11 9.2 osh-native mut+alloc+free+gc
23 13 10 8.9 osh-native mut+alloc+free+gc+exit
24 12 13 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 16 10 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 8 12 10.6 osh-native-souffle mut+alloc
21 9 13 10.9 osh-native-souffle mut+alloc+free
21 11 10 8.4 osh-native-souffle mut+alloc+free+gc
21 12 10 8.7 osh-native-souffle mut+alloc+free+gc+exit