]> git.ipfire.org Git - thirdparty/bind9.git/commit
Modify the way we benchmark mem_{get,put}
authorOndřej Surý <ondrej@sury.org>
Fri, 5 Feb 2021 09:25:07 +0000 (10:25 +0100)
committerOndřej Surý <ondrej@sury.org>
Thu, 18 Feb 2021 18:33:54 +0000 (19:33 +0100)
commit549e5b693a58c243bf779d37726c5d8fc6b981ea
tree77d317d482fba704e4e03feec203c82bfad5ad5c
parentf34f943b167573c0829dead547e4faafc5f6e6fc
Modify the way we benchmark mem_{get,put}

Previously, the mem_{get,put} benchmark would pass the allocation size
as thread_create argument.  This has been now changed, so the allocation
size is stored and decremented (divided) in atomic variable and the
thread create routing is given a memory context.  This will allow to
write tests where each thread is given different memory context and do
the same for mempool benchmarking.
lib/isc/tests/mem_test.c