SLOPDB / DOCUMENTATION / INSERT PERFORMANCE WITH 100 ROWS PER TRANSACTION

INSERT performance with 100 rows per transaction

Matched median transactions/s

Keys Writers Before Concurrent skip list Change Current rows/s
random 96 4,328 3,433 -20.7% 343,312
random 200 4,443 3,719 -16.3% 371,863
sequential 96 4,350 3,480 -20.0% 347,974
sequential 200 4,131 3,786 -8.3% 378,621

The concurrent skip list reduces the median rate in all four 100-row cases. The faster first interval does not carry through later intervals. The one-row gains in the previous report do not apply to these transactions.

Individual intervals

Keys Writers Build Three intervals, transactions/s Mean busy cores Transactions/group Verified rows, including warm-up
random 96 before 6,333 / 4,328 / 2,542 49.97 15.6 46,426,300
random 96 after 7,411 / 3,433 / 2,322 62.83 5.8 49,101,800
random 200 before 7,295 / 4,443 / 2,478 61.23 53.7 49,843,900
random 200 after 7,680 / 3,719 / 2,405 70.26 34.4 51,497,300
sequential 96 before 8,977 / 4,350 / 1,392 20.73 22.2 55,131,700
sequential 96 after 10,332 / 3,480 / 702 27.33 4.9 56,206,300
sequential 200 before 9,322 / 4,131 / 720 21.33 61.8 53,448,800
sequential 200 after 9,924 / 3,786 / 2,558 31.95 24.6 61,927,900

Each case starts empty and grows throughout timing. The builds reach different row counts during the same elapsed time. These comparisons do not establish a steady rate at a fixed database size. The last 200-writer sequential interval is much faster with the new build, although its three-interval median is lower.

Single-writer controls

These shorter controls use two 10-second intervals after 3 seconds of warm-up. They are excluded from the primary table.

Keys Before transactions/s Current transactions/s Change
random 1,184 1,166 -1.5%
sequential 2,179 2,108 -3.3%

Interpretation

The parallel installer searches from the head for each row. The old group path sorts mutations and reuses predecessors. The new path can lose this batch benefit and adds link CAS operations. The measurements also show more CPU use and smaller publication groups in the new build. These runs do not isolate the cost of each change; there is no CPU profile or separate experiment with predecessor reuse enabled.

A single writer keeps the sorted batch path. Its short controls show a smaller loss. A useful next experiment is sorted private insertion with predecessor reuse inside each parallel transaction, compared with serial sorted group installation.

Settings and verification

Reproduce

These measurements predate the option. The after build used parallel installation by default. It is now off by default; add --parallel-memtable-writes to reproduce the after mode. Omit it for serial installation. Saved commands and hashes describe the original measured builds.

GOGC=200 GOMAXPROCS=16 go build -o /tmp/slopdb-write-bench ./cmd/write-bench
GOGC=200 /tmp/slopdb-write-bench --db /tmp/fresh-batch100-random \
  --workload insert-random --rows-per-tx 100 --writers 200 --procs 96 \
  --parallel-memtable-writes --no-wal --mem-mib 8 --warmup 10 --seconds 30 --samples 3

Use --workload insert-sequential for sequential explicit keys. Use a new database for each case. The tool now supports --rows-per-tx, sequential INSERT, rows/s, and full multirow verification. Engine code remains unchanged.

Raw results, commands, source and binary hashes, and runner scripts.

Rendered from the project documentation · e5e2eb2View source on GitHub ↗