GitHub - duckdblabs/db-benchmark: reproducible benchmark of database-like ops (original) (raw)

Forked from h2oai/db-benchmark

Repository for reproducible benchmarking of database-like operations in single-node environment.
Benchmark report is available at duckdblabs.github.io/db-benchmark.
We focused mainly on portability and reproducibility. Benchmark is routinely re-run to present up-to-date timings. Most of solutions used are automatically upgraded to their stable or development versions.
This benchmark is meant to compare scalability both in data volume and data complexity.
Contribution and feedback are very welcome!

Tasks

Solutions

If you would like your solution to be included, feel free to file a PR with the necessary setup-solution/ver-solution/groupby-solution/join-solution scripts. If the team at DuckDB Labs approves the PR it will be merged. In the interest of transparency and fairness, only results from open-source data-science tools will be merged.

Reproduce

Batch benchmark run

Single solution benchmark

Running script interactively

Updating the benchmark.

The benchmark will now be updated upon request. A request can be made by creating a PR with a combination of the following.

The PR must include

The PR must include one of the following

To facilitate creating an instance identical to the one with the current results, the script _utils/format_and_mount.sh was created. The script does the following

  1. Formats and mounts an nvme drive so that solutions have access to instance storage
  2. Creates a new directory db-benchmark-metal on the nvme drive. This directory is a clone of the repository. Having a clone of the benchmark on the nvme drive enables the solutions to load the data faster (assuming you follow the steps to copy the data onto the nvme mount).

Once the db-benchmark-metal directory is created, you will need to

  1. Create or generate all the datasets. The benchmark will not be updated if only a subset of datasets are tested.
  1. Install the solutions you wish to have updated. The {{solution}}/setup-{{solution}}.sh should have everything you need
  2. Update the solution(s) groupby or join scripts with any desired changes
  3. Benchmark on your solution against all datasets.
  4. Generate the report to see how the results compare to other solutions. The report should be automatically generated. You can find it in public.
  5. Create your PR! Include the updates to the time.csv and logs.csv files

The PR will then be reviewed by the DuckDB Labs team where we will run the benchmark again ourselves to validate the new results. If there aren't any questions, we will merge the PR and publish a new report!

Example environment

Acknowledgment

Timings for solutions from before the fork have been deleted. You can still view them on the original h2oai/db-benchmark fork. Including these timings in report generation resulted in errors, and since all libraries have been updated and benchmarked using new hardware, the decision was made to start a new results file. Timings for some solutions might be missing for particular data sizes or questions. Some functions are not yet implemented in all solutions so we were unable to answer all questions in all solutions. Some solutions might also run out of memory when running benchmark script which results the process to be killed by OS. There is also a timeout for single benchmark script to run, once the timeout value is reached script is terminated. Please check exceptions label in the original h2oai repository for a list of issues/defects in solutions, that makes us unable to provide all timings. There is also no documentation label that lists issues that are blocked by missing documentation in solutions we are benchmarking.

Notice

In the interest of transparency and fairness, only results from open-source data-science tools will be included in the benchmark.