[Rpm-maint] Rpm database backend benchmarks

Michael Schroeder mls at suse.de
Thu Oct 17 10:02:58 UTC 2019


On Wed, Oct 16, 2019 at 06:12:45PM +0300, Panu Matilainen wrote:
> Can you share this benchmark tool?

Sure. It's just 400 lines so I've attached it to this mail.
It uses some internal rpm API functions mainly to be able to
enable/disable fsync.

Cheers,
  Michael.

-- 
Michael Schroeder                                   mls at suse.de
SUSE LINUX GmbH,           GF Jeff Hawn, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rpmdbbench.c
Type: text/x-c
Size: 8716 bytes
Desc: not available
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20191017/9c1a7753/attachment.c>
-------------- next part --------------
RPMDIR=/rpmtest

rpmdbbench: rpmdbbench.c $(RPMDIR)/lib/.libs/librpm.so  $(RPMDIR)/rpmio/.libs/librpmio.so
	cc -Wall -g rpmdbbench.c -o rpmdbbench -I$(RPMDIR) -I$(RPMDIR)/include $(RPMDIR)/lib/.libs/*.o $(RPMDIR)/lib/backend/.libs/*.o $(RPMDIR)/lib/backend/ndb/.libs/*.o $(RPMDIR)/lib/.libs/librpm.so  $(RPMDIR)/rpmio/.libs/librpmio.so -lpopt -llua -ldl -lpthread -ldb -llmdb -lsqlite3 -Wl,-rpath=$(RPMDIR)/lib/.libs -Wl,-rpath=$(RPMDIR)/rpmio/.libs


More information about the Rpm-maint mailing list