Introduction

This is a report for the insert benchmark with 20M docs and 1 client(s). It is generated by scripts (bash, awk, sed) and Tufte might not be impressed. An overview of the insert benchmark is here and a short update is here. Below, by DBMS, I mean DBMS+version.config. An example is my8020.c10b40 where my means MySQL, 8020 is version 8.0.20 and c10b40 is the name for the configuration file.

The test server has 8 AMD cores, 16G RAM and an NVMe SSD. It is described here as the Beelink. The benchmark was run with 1 client and there were 1 or 3 connections per client (1 for queries or inserts without rate limits, 1+1 for rate limited inserts+deletes). It uses 1 table. It loads 20M rows per table without secondary indexes, creates secondary indexes, then inserts 50M rows per table with a delete per insert to avoid growing the table. It then does 3 read+write tests for 1800s each that do queries as fast as possible with 100, 500 and then 1000 inserts/second/client concurrent with the queries and 1000 deletes/second to avoid growing the table. The database is cached by the storage engine and the only IO is for writes. Clients and the DBMS share one server. The per-database configs are in the per-database subdirectories here.

The tested DBMS are:


Contents


Summary

The numbers are inserts/s for l.i0 and l.i1, indexed docs (or rows) /s for l.x and queries/s for q*.2. The values are the average rate over the entire test for inserts (IPS) and queries (QPS). The range of values for IPS and QPS is split into 3 parts: bottom 25%, middle 50%, top 25%. Values in the bottom 25% have a red background, values in the top 25% have a green background and values in the middle have no color. A gray background is used for values that can be ignored because the DBMS did not sustain the target insert rate. Red backgrounds are not used when the minimum value is within 80% of the max value.

dbmsl.i0l.xl.i1q100.1q500.1q1000.1
20m.fbmy5635_rel.cy10_bee 766288072326667270326342595
20m.fbmy8028_rel_native_lto.cy10_bee 611627701123866250124232387

This table has relative throughput, throughput for the DBMS relative to the DBMS in the first line, using the absolute throughput from the previous table.

dbmsl.i0l.xl.i1q100.1q500.1q1000.1
20m.fbmy5635_rel.cy10_bee 1.001.001.001.001.001.00
20m.fbmy8028_rel_native_lto.cy10_bee 0.800.950.890.930.920.92

This lists the average rate of inserts/s for the tests that do inserts concurrent with queries. For such tests the query rate is listed in the table above. The read+write tests are setup so that the insert rate should match the target rate every second. Cells that are not at least 95% of the target have a red background to indicate a failure to satisfy the target.

dbmsq100.1q500.1q1000.1
fbmy5635_rel.cy10_bee100498997
fbmy8028_rel_native_lto.cy10_bee99498996
target1005001000

l.i0

l.i0: load without secondary indexes. Graphs for performance per 1-second interval are here.

Average throughput:

Image

Insert response time histogram: each cell has the percentage of responses that take <= the time in the header and max is the max response time in seconds. For the max column values in the top 25% of the range have a red background and in the bottom 25% of the range have a green background. The red background is not used when the min value is within 80% of the max value.

dbms256us1ms4ms16ms64ms256ms1s4s16sgtmax
fbmy5635_rel.cy10_bee99.8660.1300.0040.0010.071
fbmy8028_rel_native_lto.cy10_bee99.7320.1940.0720.0020.084

Performance metrics for the DBMS listed above. Some are normalized by throughput, others are not. Legend for results is here.

ips	qps	rps	rmbps	wps	wmbps	rpq	rkbpq	wpi	wkbpi	csps	cpups	cspq	cpupq	dbgb1	dbgb2	rss	maxop	p50	p99	tag
76628	0	0	0.0	36.6	13.0	0.000	0.000	0.000	0.174	7565	21.8	0.099	23	0.7	1.8	0.2	0.071	77312	70419	20m.fbmy5635_rel.cy10_bee
61162	0	0	0.0	37.4	11.9	0.000	0.000	0.001	0.199	6323	21.5	0.103	28	0.7	1.9	0.6	0.084	61430	55163	20m.fbmy8028_rel_native_lto.cy10_bee

l.x

l.x: create secondary indexes.

Average throughput:

Image

Performance metrics for the DBMS listed above. Some are normalized by throughput, others are not. Legend for results is here.

ips	qps	rps	rmbps	wps	wmbps	rpq	rkbpq	wpi	wkbpi	csps	cpups	cspq	cpupq	dbgb1	dbgb2	rss	maxop	p50	p99	tag
80723	0	0	0.0	31.7	12.3	0.000	0.000	0.000	0.156	252	11.6	0.003	11	1.5	2.5	1.3	0.009	NA	NA	20m.fbmy5635_rel.cy10_bee
77011	0	0	0.0	29.9	11.7	0.000	0.000	0.000	0.156	427	11.6	0.006	12	1.4	2.7	1.9	0.010	NA	NA	20m.fbmy8028_rel_native_lto.cy10_bee

l.i1

l.i1: continue load after secondary indexes created. Graphs for performance per 1-second interval are here.

Average throughput:

Image

Insert response time histogram: each cell has the percentage of responses that take <= the time in the header and max is the max response time in seconds. For the max column values in the top 25% of the range have a red background and in the bottom 25% of the range have a green background. The red background is not used when the min value is within 80% of the max value.

dbms256us1ms4ms16ms64ms256ms1s4s16sgtmax
fbmy5635_rel.cy10_bee99.8070.1880.0030.0020.077
fbmy8028_rel_native_lto.cy10_bee99.6800.2550.0610.0030.103

Delete response time histogram: each cell has the percentage of responses that take <= the time in the header and max is the max response time in seconds. For the max column values in the top 25% of the range have a red background and in the bottom 25% of the range have a green background. The red background is not used when the min value is within 80% of the max value.

dbms256us1ms4ms16ms64ms256ms1s4s16sgtmax
fbmy5635_rel.cy10_bee99.8000.1920.0070.0020.077
fbmy8028_rel_native_lto.cy10_bee99.6700.2600.0670.0030.111

Performance metrics for the DBMS listed above. Some are normalized by throughput, others are not. Legend for results is here.

ips	qps	rps	rmbps	wps	wmbps	rpq	rkbpq	wpi	wkbpi	csps	cpups	cspq	cpupq	dbgb1	dbgb2	rss	maxop	p50	p99	tag
26667	0	18	0.5	101.2	39.2	0.001	0.019	0.004	1.507	11177	44.0	0.419	132	2.4	4.2	5.3	0.077	26620	23973	20m.fbmy5635_rel.cy10_bee
23866	0	18	0.4	98.8	36.4	0.001	0.019	0.004	1.562	10354	43.1	0.434	144	2.3	4.3	5.7	0.103	23786	21433	20m.fbmy8028_rel_native_lto.cy10_bee

q100.1

q100.1: range queries with 100 insert/s per client. Graphs for performance per 1-second interval are here.

Average throughput:

Image

Query response time histogram: each cell has the percentage of responses that take <= the time in the header and max is the max response time in seconds. For max values in the top 25% of the range have a red background and in the bottom 25% of the range have a green background. The red background is not used when the min value is within 80% of the max value.

dbms256us1ms4ms16ms64ms256ms1s4s16sgtmax
fbmy5635_rel.cy10_bee2.51397.4850.0020.003
fbmy8028_rel_native_lto.cy10_bee3.05396.9450.0020.003

Insert response time histogram: each cell has the percentage of responses that take <= the time in the header and max is the max response time in seconds. For max values in the top 25% of the range have a red background and in the bottom 25% of the range have a green background. The red background is not used when the min value is within 80% of the max value.

dbms256us1ms4ms16ms64ms256ms1s4s16sgtmax
fbmy5635_rel.cy10_bee99.4720.5280.015
fbmy8028_rel_native_lto.cy10_bee99.3610.5830.0560.023

Delete response time histogram: each cell has the percentage of responses that take <= the time in the header and max is the max response time in seconds. For max values in the top 25% of the range have a red background and in the bottom 25% of the range have a green background. The red background is not used when the min value is within 80% of the max value.

dbms256us1ms4ms16ms64ms256ms1s4s16sgtmax
fbmy5635_rel.cy10_bee71.94427.6390.4170.023
fbmy8028_rel_native_lto.cy10_bee99.0560.9170.0280.018

Performance metrics for the DBMS listed above. Some are normalized by throughput, others are not. Legend for results is here.

ips	qps	rps	rmbps	wps	wmbps	rpq	rkbpq	wpi	wkbpi	csps	cpups	cspq	cpupq	dbgb1	dbgb2	rss	maxop	p50	p99	tag
100	2703	2	0.2	5.2	0.8	0.001	0.062	0.052	7.924	10483	13.1	3.878	388	1.8	3.6	7.1	0.003	2701	2253	20m.fbmy5635_rel.cy10_bee
99	2501	1	0.2	4.7	0.5	0.000	0.091	0.047	5.414	9856	12.9	3.941	413	1.8	3.9	7.4	0.003	2477	2253	20m.fbmy8028_rel_native_lto.cy10_bee

q500.1

q500.1: range queries with 500 insert/s per client. Graphs for performance per 1-second interval are here.

Average throughput:

Image

Query response time histogram: each cell has the percentage of responses that take <= the time in the header and max is the max response time in seconds. For max values in the top 25% of the range have a red background and in the bottom 25% of the range have a green background. The red background is not used when the min value is within 80% of the max value.

dbms256us1ms4ms16ms64ms256ms1s4s16sgtmax
fbmy5635_rel.cy10_bee1.90398.097nonzero0.002
fbmy8028_rel_native_lto.cy10_bee1.92498.0750.0010.003

Insert response time histogram: each cell has the percentage of responses that take <= the time in the header and max is the max response time in seconds. For max values in the top 25% of the range have a red background and in the bottom 25% of the range have a green background. The red background is not used when the min value is within 80% of the max value.

dbms256us1ms4ms16ms64ms256ms1s4s16sgtmax
fbmy5635_rel.cy10_bee99.5560.4440.009
fbmy8028_rel_native_lto.cy10_bee99.4780.5110.0110.017

Delete response time histogram: each cell has the percentage of responses that take <= the time in the header and max is the max response time in seconds. For max values in the top 25% of the range have a red background and in the bottom 25% of the range have a green background. The red background is not used when the min value is within 80% of the max value.

dbms256us1ms4ms16ms64ms256ms1s4s16sgtmax
fbmy5635_rel.cy10_bee90.9568.9060.1390.018
fbmy8028_rel_native_lto.cy10_bee91.3788.5060.1170.018

Performance metrics for the DBMS listed above. Some are normalized by throughput, others are not. Legend for results is here.

ips	qps	rps	rmbps	wps	wmbps	rpq	rkbpq	wpi	wkbpi	csps	cpups	cspq	cpupq	dbgb1	dbgb2	rss	maxop	p50	p99	tag
498	2634	3	0.0	5.2	0.9	0.001	0.014	0.010	1.768	10322	13.5	3.919	410	1.7	1.8	8.4	0.002	2637	2429	20m.fbmy5635_rel.cy10_bee
498	2423	3	0.0	5.8	1.1	0.001	0.006	0.012	2.168	9672	13.9	3.992	459	1.8	2.1	8.9	0.003	2413	2221	20m.fbmy8028_rel_native_lto.cy10_bee

q1000.1

q1000.1: range queries with 1000 insert/s per client. Graphs for performance per 1-second interval are here.

Average throughput:

Image

Query response time histogram: each cell has the percentage of responses that take <= the time in the header and max is the max response time in seconds. For max values in the top 25% of the range have a red background and in the bottom 25% of the range have a green background. The red background is not used when the min value is within 80% of the max value.

dbms256us1ms4ms16ms64ms256ms1s4s16sgtmax
fbmy5635_rel.cy10_bee1.73698.2510.0020.0110.010
fbmy8028_rel_native_lto.cy10_bee2.34297.6490.0020.0070.010

Insert response time histogram: each cell has the percentage of responses that take <= the time in the header and max is the max response time in seconds. For max values in the top 25% of the range have a red background and in the bottom 25% of the range have a green background. The red background is not used when the min value is within 80% of the max value.

dbms256us1ms4ms16ms64ms256ms1s4s16sgtmax
fbmy5635_rel.cy10_bee99.6830.3140.0030.045
fbmy8028_rel_native_lto.cy10_bee99.5580.4360.0060.052

Delete response time histogram: each cell has the percentage of responses that take <= the time in the header and max is the max response time in seconds. For max values in the top 25% of the range have a red background and in the bottom 25% of the range have a green background. The red background is not used when the min value is within 80% of the max value.

dbms256us1ms4ms16ms64ms256ms1s4s16sgtmax
fbmy5635_rel.cy10_bee95.6584.3030.0390.045
fbmy8028_rel_native_lto.cy10_bee95.3364.5970.0640.0030.067

Performance metrics for the DBMS listed above. Some are normalized by throughput, others are not. Legend for results is here.

ips	qps	rps	rmbps	wps	wmbps	rpq	rkbpq	wpi	wkbpi	csps	cpups	cspq	cpupq	dbgb1	dbgb2	rss	maxop	p50	p99	tag
997	2595	9	0.3	7.7	1.9	0.004	0.107	0.008	1.911	10375	14.8	3.998	456	1.7	2.2	10.5	0.010	2590	2397	20m.fbmy5635_rel.cy10_bee
996	2387	8	0.2	7.5	1.7	0.003	0.097	0.008	1.766	9770	14.8	4.093	496	1.7	2.3	10.7	0.010	2349	2173	20m.fbmy8028_rel_native_lto.cy10_bee

l.i0

l.i0: load without secondary indexes

Performance metrics for all DBMS, not just the ones listed above. Some are normalized by throughput, others are not. Legend for results is here.

ips	qps	rps	rmbps	wps	wmbps	rpq	rkbpq	wpi	wkbpi	csps	cpups	cspq	cpupq	dbgb1	dbgb2	rss	maxop	p50	p99	tag
76628	0	0	0.0	36.6	13.0	0.000	0.000	0.000	0.174	7565	21.8	0.099	23	0.7	1.8	0.2	0.071	77312	70419	20m.fbmy5635_rel.cy10_bee
61162	0	0	0.0	37.4	11.9	0.000	0.000	0.001	0.199	6323	21.5	0.103	28	0.7	1.9	0.6	0.084	61430	55163	20m.fbmy8028_rel_native_lto.cy10_bee

l.x

l.x: create secondary indexes

Performance metrics for all DBMS, not just the ones listed above. Some are normalized by throughput, others are not. Legend for results is here.

ips	qps	rps	rmbps	wps	wmbps	rpq	rkbpq	wpi	wkbpi	csps	cpups	cspq	cpupq	dbgb1	dbgb2	rss	maxop	p50	p99	tag
80723	0	0	0.0	31.7	12.3	0.000	0.000	0.000	0.156	252	11.6	0.003	11	1.5	2.5	1.3	0.009	NA	NA	20m.fbmy5635_rel.cy10_bee
77011	0	0	0.0	29.9	11.7	0.000	0.000	0.000	0.156	427	11.6	0.006	12	1.4	2.7	1.9	0.010	NA	NA	20m.fbmy8028_rel_native_lto.cy10_bee

l.i1

l.i1: continue load after secondary indexes created

Performance metrics for all DBMS, not just the ones listed above. Some are normalized by throughput, others are not. Legend for results is here.

ips	qps	rps	rmbps	wps	wmbps	rpq	rkbpq	wpi	wkbpi	csps	cpups	cspq	cpupq	dbgb1	dbgb2	rss	maxop	p50	p99	tag
26667	0	18	0.5	101.2	39.2	0.001	0.019	0.004	1.507	11177	44.0	0.419	132	2.4	4.2	5.3	0.077	26620	23973	20m.fbmy5635_rel.cy10_bee
23866	0	18	0.4	98.8	36.4	0.001	0.019	0.004	1.562	10354	43.1	0.434	144	2.3	4.3	5.7	0.103	23786	21433	20m.fbmy8028_rel_native_lto.cy10_bee

q100.1

q100.1: range queries with 100 insert/s per client

Performance metrics for all DBMS, not just the ones listed above. Some are normalized by throughput, others are not. Legend for results is here.

ips	qps	rps	rmbps	wps	wmbps	rpq	rkbpq	wpi	wkbpi	csps	cpups	cspq	cpupq	dbgb1	dbgb2	rss	maxop	p50	p99	tag
100	2703	2	0.2	5.2	0.8	0.001	0.062	0.052	7.924	10483	13.1	3.878	388	1.8	3.6	7.1	0.003	2701	2253	20m.fbmy5635_rel.cy10_bee
99	2501	1	0.2	4.7	0.5	0.000	0.091	0.047	5.414	9856	12.9	3.941	413	1.8	3.9	7.4	0.003	2477	2253	20m.fbmy8028_rel_native_lto.cy10_bee

q500.1

q500.1: range queries with 500 insert/s per client

Performance metrics for all DBMS, not just the ones listed above. Some are normalized by throughput, others are not. Legend for results is here.

ips	qps	rps	rmbps	wps	wmbps	rpq	rkbpq	wpi	wkbpi	csps	cpups	cspq	cpupq	dbgb1	dbgb2	rss	maxop	p50	p99	tag
498	2634	3	0.0	5.2	0.9	0.001	0.014	0.010	1.768	10322	13.5	3.919	410	1.7	1.8	8.4	0.002	2637	2429	20m.fbmy5635_rel.cy10_bee
498	2423	3	0.0	5.8	1.1	0.001	0.006	0.012	2.168	9672	13.9	3.992	459	1.8	2.1	8.9	0.003	2413	2221	20m.fbmy8028_rel_native_lto.cy10_bee

q1000.1

q1000.1: range queries with 1000 insert/s per client

Performance metrics for all DBMS, not just the ones listed above. Some are normalized by throughput, others are not. Legend for results is here.

ips	qps	rps	rmbps	wps	wmbps	rpq	rkbpq	wpi	wkbpi	csps	cpups	cspq	cpupq	dbgb1	dbgb2	rss	maxop	p50	p99	tag
997	2595	9	0.3	7.7	1.9	0.004	0.107	0.008	1.911	10375	14.8	3.998	456	1.7	2.2	10.5	0.010	2590	2397	20m.fbmy5635_rel.cy10_bee
996	2387	8	0.2	7.5	1.7	0.003	0.097	0.008	1.766	9770	14.8	4.093	496	1.7	2.3	10.7	0.010	2349	2173	20m.fbmy8028_rel_native_lto.cy10_bee

l.i0

Insert response time histogram

256us	1ms	4ms	16ms	64ms	256ms	1s	4s	16s	gt	max	tag
0.000	0.000	99.866	0.130	0.004	0.001	0.000	0.000	0.000	0.000	0.071	fbmy5635_rel.cy10_bee
0.000	0.000	99.732	0.194	0.072	0.002	0.000	0.000	0.000	0.000	0.084	fbmy8028_rel_native_lto.cy10_bee

l.x

TODO - determine whether there is data for create index response time


l.i1

Insert response time histogram

256us	1ms	4ms	16ms	64ms	256ms	1s	4s	16s	gt	max	tag
0.000	0.000	99.807	0.188	0.003	0.002	0.000	0.000	0.000	0.000	0.077	fbmy5635_rel.cy10_bee
0.000	0.000	99.680	0.255	0.061	0.003	0.000	0.000	0.000	0.000	0.103	fbmy8028_rel_native_lto.cy10_bee

Delete response time histogram

256us	1ms	4ms	16ms	64ms	256ms	1s	4s	16s	gt	max	tag
0.000	0.000	99.800	0.192	0.007	0.002	0.000	0.000	0.000	0.000	0.077	fbmy5635_rel.cy10_bee
0.000	0.000	99.670	0.260	0.067	0.003	0.000	0.000	0.000	0.000	0.111	fbmy8028_rel_native_lto.cy10_bee

q100.1

Query response time histogram

256us	1ms	4ms	16ms	64ms	256ms	1s	4s	16s	gt	max	tag
2.513	97.485	0.002	0.000	0.000	0.000	0.000	0.000	0.000	0.000	0.003	fbmy5635_rel.cy10_bee
3.053	96.945	0.002	0.000	0.000	0.000	0.000	0.000	0.000	0.000	0.003	fbmy8028_rel_native_lto.cy10_bee

Insert response time histogram

256us	1ms	4ms	16ms	64ms	256ms	1s	4s	16s	gt	max	tag
0.000	0.000	99.472	0.528	0.000	0.000	0.000	0.000	0.000	0.000	0.015	fbmy5635_rel.cy10_bee
0.000	0.000	99.361	0.583	0.056	0.000	0.000	0.000	0.000	0.000	0.023	fbmy8028_rel_native_lto.cy10_bee

Delete response time histogram

256us	1ms	4ms	16ms	64ms	256ms	1s	4s	16s	gt	max	tag
0.000	0.000	71.944	27.639	0.417	0.000	0.000	0.000	0.000	0.000	0.023	fbmy5635_rel.cy10_bee
0.000	0.000	99.056	0.917	0.028	0.000	0.000	0.000	0.000	0.000	0.018	fbmy8028_rel_native_lto.cy10_bee

q500.1

Query response time histogram

256us	1ms	4ms	16ms	64ms	256ms	1s	4s	16s	gt	max	tag
1.903	98.097	nonzero	0.000	0.000	0.000	0.000	0.000	0.000	0.000	0.002	fbmy5635_rel.cy10_bee
1.924	98.075	0.001	0.000	0.000	0.000	0.000	0.000	0.000	0.000	0.003	fbmy8028_rel_native_lto.cy10_bee

Insert response time histogram

256us	1ms	4ms	16ms	64ms	256ms	1s	4s	16s	gt	max	tag
0.000	0.000	99.556	0.444	0.000	0.000	0.000	0.000	0.000	0.000	0.009	fbmy5635_rel.cy10_bee
0.000	0.000	99.478	0.511	0.011	0.000	0.000	0.000	0.000	0.000	0.017	fbmy8028_rel_native_lto.cy10_bee

Delete response time histogram

256us	1ms	4ms	16ms	64ms	256ms	1s	4s	16s	gt	max	tag
0.000	0.000	90.956	8.906	0.139	0.000	0.000	0.000	0.000	0.000	0.018	fbmy5635_rel.cy10_bee
0.000	0.000	91.378	8.506	0.117	0.000	0.000	0.000	0.000	0.000	0.018	fbmy8028_rel_native_lto.cy10_bee

q1000.1

Query response time histogram

256us	1ms	4ms	16ms	64ms	256ms	1s	4s	16s	gt	max	tag
1.736	98.251	0.002	0.011	0.000	0.000	0.000	0.000	0.000	0.000	0.010	fbmy5635_rel.cy10_bee
2.342	97.649	0.002	0.007	0.000	0.000	0.000	0.000	0.000	0.000	0.010	fbmy8028_rel_native_lto.cy10_bee

Insert response time histogram

256us	1ms	4ms	16ms	64ms	256ms	1s	4s	16s	gt	max	tag
0.000	0.000	99.683	0.314	0.003	0.000	0.000	0.000	0.000	0.000	0.045	fbmy5635_rel.cy10_bee
0.000	0.000	99.558	0.436	0.006	0.000	0.000	0.000	0.000	0.000	0.052	fbmy8028_rel_native_lto.cy10_bee

Delete response time histogram

256us	1ms	4ms	16ms	64ms	256ms	1s	4s	16s	gt	max	tag
0.000	0.000	95.658	4.303	0.039	0.000	0.000	0.000	0.000	0.000	0.045	fbmy5635_rel.cy10_bee
0.000	0.000	95.336	4.597	0.064	0.003	0.000	0.000	0.000	0.000	0.067	fbmy8028_rel_native_lto.cy10_bee