ldb: perf test for pack format
authorAaron Haslett <aaronhaslett@catalyst.net.nz>
Tue, 30 Apr 2019 04:10:26 +0000 (16:10 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 15 May 2019 04:03:36 +0000 (04:03 +0000)
commita36e20c40cfcbced07962fcc72b26edd33f2ad3a
treef7657f5f34e2d8a517fbefd14201b31a9c03e279
parentea7fd52a78d90f54c8b0f2583c72827971ddea6a
ldb: perf test for pack format

Performance test for pack function and unpack function run with flag
LDB_UNPACK_DATA_FLAG_NO_DATA_ALLOC. Run this test before and after
forthcoming pack format changes to test throughput improvement. On my
machine, the unpack improvement is around 50%.
The test doesn't really belong in LDB torture but it's the only place
where all the required functions are available.

Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source4/torture/ldb/ldb.c