NHyDBrun4
R
u
v
Version of 1
lane
NLOverview

Benchmarks

How fast is NHyDB – and where is it not? We measure with a fixed, open procedure and show the results as they are. The numbers are meant to give context, not to set up a ranking.

The KQ10M procedure

The public benchmark KQ10M writes ten million records with eleven numeric fields each, builds three indexes and then reads in different ways. Every result is verified.

  • Writing: in batches of 10,000 records, with exactly one commit at the end.
  • Indexes: on three fields with very different distributions.
  • Reading: counting, hit lists, full records for scattered hits and contiguous ranges.

Generating the test data does not count towards the measured time; the final commit does. The benchmark is part of the project and can be repeated on your own hardware.

Results on six machines

0.543 s10 million records written
18.42 M/srecords per second
4.335 sthree indexes built

MacBook Pro, Apple M1 Max, macOS · NHyDB 0.28.2

Machine Write 10 million Throughput 3 indexes
MacBook Pro, Apple M1 Max, macOS 0.543 s 18.42 M/s 4.335 s
MacBook Air, Apple M2, macOS 0.569 s 17.74 M/s 4.254 s
ThinkPad T16 Gen 2, Intel i7-1365U, Windows 11 0.863 s 11.59 M/s 3.674 s
ThinkPad X1 Carbon Gen 9, Intel i5-1135G7, Windows 10 1.129 s 8.87 M/s 7.870 s
ThinkPad P52, Intel i7-8850H, Ubuntu (virtual machine) 1.188 s 8.42 M/s 6.539 s
ThinkPad P52, Intel i7-8850H, Windows 11 1.295 s 7.72 M/s 7.077 s

Averages of three runs each with NHyDB 0.28.2, all results fully verified and valid.

Context: SQLite and DuckDB

The same procedure with SQLite and DuckDB, on the same machine on the same day, with the same data. SQLite is the widely used embedded database, DuckDB a modern, column-oriented analytical database. Both are strong yardsticks – which is exactly why the comparison is worthwhile.

NHyDB 0.28.2 SQLite 3.50.4 DuckDB 2.0.0
Write 10 million 0.53 s 10.56 s 1.82 s
File after writing 252 MB 397 MB 80 MB
Build 3 indexes 4.21 s 5.69 s 2.64 s (0.60 s with all cores)
Size of the indexes 43 MB 306 MB 22 MB
Count 5 million hits 0.02 ms 89 ms 6 ms
List of 5 million hits 129 ms 1,268 ms 64 ms
988 scattered records, all fields 15.1 ms 2.1 ms 25.8 ms
12,002 contiguous records, all fields 2.2 ms 16.1 ms 2.0 ms

Read times in each case on the first access after opening (“cold”). MacBook Pro M1 Max, average of three runs; the exact conditions are on the right.

What the numbers show

  • NHyDB is strong at writing large volumes, at counting and finding via indexes and at reading contiguous ranges.
  • DuckDB needs considerably less space, builds indexes very quickly with all cores and reads columns very efficiently.
  • SQLite reads full records for scattered hits fastest when the database has just been opened.

Every technology has its strengths. The measurement shows where NHyDB stands today with its address space.

How to read these numbers

The values apply to exactly this procedure on these machines, not to every conceivable application. Other data, other queries or other settings give other numbers. If you want to know exactly, measure for yourself: the benchmark is freely available.

# Benchmarks How fast is NHyDB – and where is it not? We measure with a fixed, open procedure and show the results as they are. The numbers are meant to give context, not to set up a ranking. ## The KQ10M procedure The public benchmark **KQ10M** writes ten million records with eleven numeric fields each, builds three indexes and then reads in different ways. Every result is verified. - **Writing:** in batches of 10,000 records, with exactly one commit at the end.- **Indexes:** on three fields with very different distributions.- **Reading:** counting, hit lists, full records for scattered hits and contiguous ranges. Generating the test data does not count towards the measured time; the final commit does. The benchmark is part of the project and can be repeated on your own hardware. ## Results on six machines {{kq10m}} | Machine | Write 10 million | Throughput | 3 indexes ||---|---:|---:|---:|| MacBook Pro, Apple M1 Max, macOS | 0.543 s | 18.42 M/s | 4.335 s || MacBook Air, Apple M2, macOS | 0.569 s | 17.74 M/s | 4.254 s || ThinkPad T16 Gen 2, Intel i7-1365U, Windows 11 | 0.863 s | 11.59 M/s | 3.674 s || ThinkPad X1 Carbon Gen 9, Intel i5-1135G7, Windows 10 | 1.129 s | 8.87 M/s | 7.870 s || ThinkPad P52, Intel i7-8850H, Ubuntu (virtual machine) | 1.188 s | 8.42 M/s | 6.539 s || ThinkPad P52, Intel i7-8850H, Windows 11 | 1.295 s | 7.72 M/s | 7.077 s | Averages of three runs each with NHyDB 0.28.2, all results fully verified and valid. ## Context: SQLite and DuckDB The same procedure with SQLite and DuckDB, on the same machine on the same day, with the same data. SQLite is the widely used embedded database, DuckDB a modern, column-oriented analytical database. Both are strong yardsticks – which is exactly why the comparison is worthwhile. | | NHyDB 0.28.2 | SQLite 3.50.4 | DuckDB 2.0.0 ||---|---:|---:|---:|| Write 10 million | 0.53 s | 10.56 s | 1.82 s || File after writing | 252 MB | 397 MB | 80 MB || Build 3 indexes | 4.21 s | 5.69 s | 2.64 s (0.60 s with all cores) || Size of the indexes | 43 MB | 306 MB | 22 MB || Count 5 million hits | 0.02 ms | 89 ms | 6 ms || List of 5 million hits | 129 ms | 1,268 ms | 64 ms || 988 scattered records, all fields | 15.1 ms | 2.1 ms | 25.8 ms || 12,002 contiguous records, all fields | 2.2 ms | 16.1 ms | 2.0 ms | Read times in each case on the first access after opening (“cold”). MacBook Pro M1 Max, average of three runs; the exact conditions are on the right. ## What the numbers show - **NHyDB** is strong at writing large volumes, at counting and finding via indexes and at reading contiguous ranges.- **DuckDB** needs considerably less space, builds indexes very quickly with all cores and reads columns very efficiently.- **SQLite** reads full records for scattered hits fastest when the database has just been opened. > Every technology has its strengths. The measurement shows where NHyDB stands today with its address space. ## How to read these numbers The values apply to exactly this procedure on these machines, not to every conceivable application. Other data, other queries or other settings give other numbers. If you want to know exactly, measure for yourself: the benchmark is freely available.