Setting the Baseline for Performance Testing
Join the DZone community and get the full member experience.Join For Free
after finishing up the major change of moving voron to a write ahead journal, it was time to actually start doing some performance testing.
to make things interesting, i decided that we shouldn’t just compare this in isolation, but we should actually compare it to its peers.
those are early results, and we are going to have to do a lot more work to make sure that everything works faster .
we have run those tests on the following machine:
all the tests were run on a freshly formatted 512gb ssd drive. note that we are currently showing only the fast runs, we also have a set of tests for much larger data sets (tens of gb) and another for performance over time, but we will deal with those separately. all of the current tests are for writing of 1 million items. consisting of a 4 bytes integer and a 128 bytes value.
we have tested: sqlite, sql ce, lmdb, esent and voron.
for lmdb, because it needed a fixed file size, we set the initial file size to be 64 gb. all the databases were run using the default configuration options, no secondary indexes were used. all the tests were done using a single thread.
note that in all cases we used managed code to run the test. this may impact some of the results because some of those engines are native, and there might be some overhead there.
the first test was to see how it performs with sequential writes:
esent really shines in this, probably because this is pretty much the sweat spot for it. voron is the second best, but the reason that we do those sorts of tests is to see where we have problems, and i think that we have a problem here, we are supposed to be much better here. in fact, we have earlier tests that show much better performance, so we appear to have a regression. we’ll work on that next.
next, let us look at sequential reads:
here, lmdb eclipses everyone else by far, this is its sweet spot. i am pretty happy about voron’s performance here, especially since it appears to be close to twice as fast as esent is for this scenario.
next, we have random writes:
surprisingly, voron is doing pretty badly here, even though it is doing much better than lmdb (this is its weak spot) or sqlite.
for random reads, however, the situation is nicer to us:
so, we have our baseline. and i want to see how we can do better. expect the future posts to focus on what exactly is slowing our writes down.
in the meantime, we do have some really good news, we tested voron with and without concurrent flushing to the data file, and there isn’t any meaningful difference between the performance of the two options in our current test run.
Published at DZone with permission of Oren Eini, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.