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 2 connections per client (1 for queries, 1 for inserts). The benchmark loads 20M rows without secondary indexes, creates secondary indexes, loads another 20M rows then does 3 read+write tests for one hour each that do queries as fast as possible with 100, 500 and then 1000 writes/second/client concurrent with the queries. 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:

fbmy5635_rel_withdbg.cay9c fbmy5635_rel_o2.cay9c fbmy5635_rel.cay9c

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_withdbg.cay9c 766288072329240256825372508
20m.fbmy5635_rel_o2.cay9c 763367230229070269425622505
20m.fbmy5635_rel.cay9c 763368237729498277926112559

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_withdbg.cay9c100499998
fbmy5635_rel_o2.cay9c100499998
fbmy5635_rel.cay9c100499998
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_withdbg.cay9c99.8650.1310.0040.057
fbmy5635_rel_o2.cay9c99.8650.1310.0040.058
fbmy5635_rel.cay9c99.8660.1300.0040.0010.071

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	35.0	13.0	0.000	0.000	0.000	0.173	7497	22.5	0.098	23	0.7	1.8	0.3	0.057	77205	69151	20m.fbmy5635_rel_withdbg.cay9c
76336	0	0	0.0	34.4	12.8	0.000	0.000	0.000	0.172	7460	22.3	0.098	23	0.7	1.8	0.2	0.058	76550	70520	20m.fbmy5635_rel_o2.cay9c
76336	0	0	0.0	34.6	13.0	0.000	0.000	0.000	0.174	7523	22.7	0.099	24	0.7	1.8	0.2	0.071	77212	70422	20m.fbmy5635_rel.cay9c

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.0	12.2	0.000	0.000	0.000	0.155	230	12.7	0.003	13	1.5	2.5	1.3	0.008	NA	NA	20m.fbmy5635_rel_withdbg.cay9c
72302	0	0	0.0	28.7	11.0	0.000	0.000	0.000	0.155	210	12.7	0.003	14	1.5	2.5	1.3	0.006	NA	NA	20m.fbmy5635_rel_o2.cay9c
82377	0	0	0.0	31.6	12.5	0.000	0.000	0.000	0.155	254	12.7	0.003	12	1.5	2.5	1.3	0.008	NA	NA	20m.fbmy5635_rel.cay9c

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_withdbg.cay9c99.8280.1700.002nonzero0.073
fbmy5635_rel_o2.cay9c99.8260.1710.0030.062
fbmy5635_rel.cay9c99.8290.1690.003nonzero0.064

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
29240	0	9	1.1	72.7	29.5	0.000	0.038	0.002	1.034	6162	28.7	0.211	79	2.9	4.7	1.9	0.073	28968	26146	20m.fbmy5635_rel_withdbg.cay9c
29070	0	9	1.1	71.5	29.0	0.000	0.038	0.002	1.021	6131	29.0	0.211	80	3.0	4.7	1.9	0.062	28766	25920	20m.fbmy5635_rel_o2.cay9c
29498	0	9	1.1	73.7	29.9	0.000	0.038	0.002	1.038	6179	28.9	0.209	78	2.8	4.6	1.9	0.064	29118	26182	20m.fbmy5635_rel.cay9c

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_withdbg.cay9c1.43398.567nonzerononzero0.032
fbmy5635_rel_o2.cay9c0.57599.425nonzerononzero0.030
fbmy5635_rel.cay9c2.71497.286nonzero0.002

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_withdbg.cay9c99.4720.5280.013
fbmy5635_rel_o2.cay9c99.6670.3330.008
fbmy5635_rel.cay9c99.6110.3890.008

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	2568	0	0.0	3.6	0.2	0.000	0.000	0.036	1.648	9926	12.8	3.865	399	2.8	4.6	3.6	0.032	2541	2365	20m.fbmy5635_rel_withdbg.cay9c
100	2694	0	0.0	4.4	0.5	0.000	0.000	0.044	4.833	10410	13.2	3.865	392	2.8	4.5	3.8	0.030	2701	2381	20m.fbmy5635_rel_o2.cay9c
100	2779	0	0.0	4.1	0.3	0.000	0.000	0.041	3.268	10725	12.9	3.860	371	2.8	4.6	3.8	0.002	2765	2541	20m.fbmy5635_rel.cay9c

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_withdbg.cay9c0.51799.4820.0010.002
fbmy5635_rel_o2.cay9c1.64398.3560.0010.003
fbmy5635_rel.cay9c2.05497.946nonzero0.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_withdbg.cay9c99.7560.2440.009
fbmy5635_rel_o2.cay9c99.7060.2940.009
fbmy5635_rel.cay9c99.7170.2830.009

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
499	2537	0	0.0	3.6	0.2	0.000	0.000	0.007	0.486	9873	13.2	3.891	416	2.9	4.8	3.8	0.002	2525	2381	20m.fbmy5635_rel_withdbg.cay9c
499	2562	0	0.0	3.5	0.2	0.000	0.000	0.007	0.406	9963	13.1	3.889	409	2.9	4.8	3.9	0.003	2557	2381	20m.fbmy5635_rel_o2.cay9c
499	2611	0	0.0	3.5	0.2	0.000	0.000	0.007	0.407	10155	13.1	3.889	401	2.9	4.8	3.9	0.003	2605	2413	20m.fbmy5635_rel.cay9c

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_withdbg.cay9c0.53599.4640.0010.004
fbmy5635_rel_o2.cay9c1.36198.6390.0010.003
fbmy5635_rel.cay9c1.16298.838nonzero0.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_withdbg.cay9c99.6810.3190.009
fbmy5635_rel_o2.cay9c99.7580.2420.009
fbmy5635_rel.cay9c99.7420.2580.015

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
998	2508	0	0.0	5.1	0.9	0.000	0.000	0.005	0.928	9859	14.0	3.931	447	3.1	3.2	4.4	0.004	2479	2365	20m.fbmy5635_rel_withdbg.cay9c
998	2505	0	0.0	5.1	0.9	0.000	0.000	0.005	0.891	9844	13.9	3.930	444	3.1	3.2	4.5	0.003	2493	2318	20m.fbmy5635_rel_o2.cay9c
998	2559	0	0.0	5.4	1.0	0.000	0.000	0.005	1.010	10059	14.0	3.931	438	3.1	3.2	4.5	0.003	2541	2381	20m.fbmy5635_rel.cay9c

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	35.0	13.0	0.000	0.000	0.000	0.173	7497	22.5	0.098	23	0.7	1.8	0.3	0.057	77205	69151	20m.fbmy5635_rel_withdbg.cay9c
76336	0	0	0.0	34.4	12.8	0.000	0.000	0.000	0.172	7460	22.3	0.098	23	0.7	1.8	0.2	0.058	76550	70520	20m.fbmy5635_rel_o2.cay9c
76336	0	0	0.0	34.6	13.0	0.000	0.000	0.000	0.174	7523	22.7	0.099	24	0.7	1.8	0.2	0.071	77212	70422	20m.fbmy5635_rel.cay9c

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.0	12.2	0.000	0.000	0.000	0.155	230	12.7	0.003	13	1.5	2.5	1.3	0.008	NA	NA	20m.fbmy5635_rel_withdbg.cay9c
72302	0	0	0.0	28.7	11.0	0.000	0.000	0.000	0.155	210	12.7	0.003	14	1.5	2.5	1.3	0.006	NA	NA	20m.fbmy5635_rel_o2.cay9c
82377	0	0	0.0	31.6	12.5	0.000	0.000	0.000	0.155	254	12.7	0.003	12	1.5	2.5	1.3	0.008	NA	NA	20m.fbmy5635_rel.cay9c

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
29240	0	9	1.1	72.7	29.5	0.000	0.038	0.002	1.034	6162	28.7	0.211	79	2.9	4.7	1.9	0.073	28968	26146	20m.fbmy5635_rel_withdbg.cay9c
29070	0	9	1.1	71.5	29.0	0.000	0.038	0.002	1.021	6131	29.0	0.211	80	3.0	4.7	1.9	0.062	28766	25920	20m.fbmy5635_rel_o2.cay9c
29498	0	9	1.1	73.7	29.9	0.000	0.038	0.002	1.038	6179	28.9	0.209	78	2.8	4.6	1.9	0.064	29118	26182	20m.fbmy5635_rel.cay9c

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	2568	0	0.0	3.6	0.2	0.000	0.000	0.036	1.648	9926	12.8	3.865	399	2.8	4.6	3.6	0.032	2541	2365	20m.fbmy5635_rel_withdbg.cay9c
100	2694	0	0.0	4.4	0.5	0.000	0.000	0.044	4.833	10410	13.2	3.865	392	2.8	4.5	3.8	0.030	2701	2381	20m.fbmy5635_rel_o2.cay9c
100	2779	0	0.0	4.1	0.3	0.000	0.000	0.041	3.268	10725	12.9	3.860	371	2.8	4.6	3.8	0.002	2765	2541	20m.fbmy5635_rel.cay9c

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
499	2537	0	0.0	3.6	0.2	0.000	0.000	0.007	0.486	9873	13.2	3.891	416	2.9	4.8	3.8	0.002	2525	2381	20m.fbmy5635_rel_withdbg.cay9c
499	2562	0	0.0	3.5	0.2	0.000	0.000	0.007	0.406	9963	13.1	3.889	409	2.9	4.8	3.9	0.003	2557	2381	20m.fbmy5635_rel_o2.cay9c
499	2611	0	0.0	3.5	0.2	0.000	0.000	0.007	0.407	10155	13.1	3.889	401	2.9	4.8	3.9	0.003	2605	2413	20m.fbmy5635_rel.cay9c

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
998	2508	0	0.0	5.1	0.9	0.000	0.000	0.005	0.928	9859	14.0	3.931	447	3.1	3.2	4.4	0.004	2479	2365	20m.fbmy5635_rel_withdbg.cay9c
998	2505	0	0.0	5.1	0.9	0.000	0.000	0.005	0.891	9844	13.9	3.930	444	3.1	3.2	4.5	0.003	2493	2318	20m.fbmy5635_rel_o2.cay9c
998	2559	0	0.0	5.4	1.0	0.000	0.000	0.005	1.010	10059	14.0	3.931	438	3.1	3.2	4.5	0.003	2541	2381	20m.fbmy5635_rel.cay9c

l.i0

Insert response time histogram

256us	1ms	4ms	16ms	64ms	256ms	1s	4s	16s	gt	max	tag
0.000	0.000	99.865	0.131	0.004	0.000	0.000	0.000	0.000	0.000	0.057	fbmy5635_rel_withdbg.cay9c
0.000	0.000	99.865	0.131	0.004	0.000	0.000	0.000	0.000	0.000	0.058	fbmy5635_rel_o2.cay9c
0.000	0.000	99.866	0.130	0.004	0.001	0.000	0.000	0.000	0.000	0.071	fbmy5635_rel.cay9c

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.828	0.170	0.002	nonzero	0.000	0.000	0.000	0.000	0.073	fbmy5635_rel_withdbg.cay9c
0.000	0.000	99.826	0.171	0.003	0.000	0.000	0.000	0.000	0.000	0.062	fbmy5635_rel_o2.cay9c
0.000	0.000	99.829	0.169	0.003	nonzero	0.000	0.000	0.000	0.000	0.064	fbmy5635_rel.cay9c

q100.1

Query response time histogram

256us	1ms	4ms	16ms	64ms	256ms	1s	4s	16s	gt	max	tag
1.433	98.567	nonzero	0.000	nonzero	0.000	0.000	0.000	0.000	0.000	0.032	fbmy5635_rel_withdbg.cay9c
0.575	99.425	nonzero	0.000	nonzero	0.000	0.000	0.000	0.000	0.000	0.030	fbmy5635_rel_o2.cay9c
2.714	97.286	nonzero	0.000	0.000	0.000	0.000	0.000	0.000	0.000	0.002	fbmy5635_rel.cay9c

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.013	fbmy5635_rel_withdbg.cay9c
0.000	0.000	99.667	0.333	0.000	0.000	0.000	0.000	0.000	0.000	0.008	fbmy5635_rel_o2.cay9c
0.000	0.000	99.611	0.389	0.000	0.000	0.000	0.000	0.000	0.000	0.008	fbmy5635_rel.cay9c

q500.1

Query response time histogram

256us	1ms	4ms	16ms	64ms	256ms	1s	4s	16s	gt	max	tag
0.517	99.482	0.001	0.000	0.000	0.000	0.000	0.000	0.000	0.000	0.002	fbmy5635_rel_withdbg.cay9c
1.643	98.356	0.001	0.000	0.000	0.000	0.000	0.000	0.000	0.000	0.003	fbmy5635_rel_o2.cay9c
2.054	97.946	nonzero	0.000	0.000	0.000	0.000	0.000	0.000	0.000	0.003	fbmy5635_rel.cay9c

Insert response time histogram

256us	1ms	4ms	16ms	64ms	256ms	1s	4s	16s	gt	max	tag
0.000	0.000	99.756	0.244	0.000	0.000	0.000	0.000	0.000	0.000	0.009	fbmy5635_rel_withdbg.cay9c
0.000	0.000	99.706	0.294	0.000	0.000	0.000	0.000	0.000	0.000	0.009	fbmy5635_rel_o2.cay9c
0.000	0.000	99.717	0.283	0.000	0.000	0.000	0.000	0.000	0.000	0.009	fbmy5635_rel.cay9c

q1000.1

Query response time histogram

256us	1ms	4ms	16ms	64ms	256ms	1s	4s	16s	gt	max	tag
0.535	99.464	0.001	0.000	0.000	0.000	0.000	0.000	0.000	0.000	0.004	fbmy5635_rel_withdbg.cay9c
1.361	98.639	0.001	0.000	0.000	0.000	0.000	0.000	0.000	0.000	0.003	fbmy5635_rel_o2.cay9c
1.162	98.838	nonzero	0.000	0.000	0.000	0.000	0.000	0.000	0.000	0.003	fbmy5635_rel.cay9c

Insert response time histogram

256us	1ms	4ms	16ms	64ms	256ms	1s	4s	16s	gt	max	tag
0.000	0.000	99.681	0.319	0.000	0.000	0.000	0.000	0.000	0.000	0.009	fbmy5635_rel_withdbg.cay9c
0.000	0.000	99.758	0.242	0.000	0.000	0.000	0.000	0.000	0.000	0.009	fbmy5635_rel_o2.cay9c
0.000	0.000	99.742	0.258	0.000	0.000	0.000	0.000	0.000	0.000	0.015	fbmy5635_rel.cay9c