DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • Discrepancies Between Test and FastAPI App Data
  • Mastering Database Unit Testing: A Full Guide and 5 Essential Tools
  • The Magic Testing Challenge: Part 2
  • How We Solved an OOM Issue in TiDB with GOMEMLIMIT

Trending

  • Send Your Logs to Loki
  • Effective Tips for Debugging Complex Code in Java
  • How To Verify Database Connection From a Spring Boot Application
  • Java Parallel GC Tuning
  1. DZone
  2. Data Engineering
  3. Databases
  4. Setting the Baseline for Performance Testing

Setting the Baseline for Performance Testing

Oren Eini user avatar by
Oren Eini
·
Nov. 15, 13 · Interview
Like (0)
Save
Tweet
Share
9.57K Views

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:

image

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:

image

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:

image

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:

image

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:

image

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.



Testing Database Baseline (budgeting)

Published at DZone with permission of Oren Eini, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Discrepancies Between Test and FastAPI App Data
  • Mastering Database Unit Testing: A Full Guide and 5 Essential Tools
  • The Magic Testing Challenge: Part 2
  • How We Solved an OOM Issue in TiDB with GOMEMLIMIT

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: