]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEBUG: lru: use a xorshift generator in the testing code
authorWilly Tarreau <w@1wt.eu>
Wed, 26 Jan 2022 10:06:07 +0000 (11:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 27 Jan 2022 15:28:10 +0000 (16:28 +0100)
commit8e92738ffde650a819f6bb05cb637dea50af9b70
treec6c24d0d063dddb5d48b79e62f3db9647d84a371
parentbf9c07fd91d6d0930361e7fedcb9055c7d776d47
DEBUG: lru: use a xorshift generator in the testing code

The standalone testing code used to rely on rand(), but switching to a
xorshift generator speeds up the test by 7% which is important to
accurately measure the real impact of the LRU code itself.
src/lru.c