[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Effectiveness of String Cache?
From: |
Jon Forrest |
Subject: |
Re: Effectiveness of String Cache? |
Date: |
Sun, 9 Jan 2022 10:01:18 -0800 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 |
I'll answer my own question.
I saw the 44 strings number by running gmake 3.81 on
i386-apple-darwin11.3.0. Updating this to 4.3 on
x86_64-apple-darwin20.1.0 showed much different
results, e.g.
# strcache buffers: 8 (6) / strings = 3165 / storage = 59951 B / avg = 18 B
# current buf: size = 8162 B / used = 2889 B / count = 97 / avg = 29 B
# other used: total = 57062 B / count = 3068 / avg = 18 B
# other free: total = 72 B / max = 21 B / min = 1 B / avg = 10 B
# strcache performance: lookups = 18571 / hit rate = 82%
# hash-table stats:
# Load=3165/8192=39%, Rehash=0, Collisions=1755/18571=9%
I'd say this answers my question by showing that the
string cache is indeed effective.
Jon