Help us shape the future of Go! Take the 2026 Go Developer Survey

mwbench

command
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

mwbench compares the engine with stock SQLite (WAL, synchronous=FULL), both through modernc.org/sqlite.

go run ./cmd/mwbench -workload bulk -writers 1,4,16 -seconds 5

Variants: sqlite (stock, WAL, BEGIN IMMEDIATE and a busy timeout), mw (the engine), mwr (the engine with the rebase), mwp and mwpr (the engine in multi-process mode, without and with the rebase).

-procs P spreads the writers over P processes (each one runs writers/P of them); the variants that cannot be shared by several processes (mw, mwr) are skipped then. Workloads: bulk (each writer inserts 100 rows per transaction into its own table), groups (each writer updates its own row; the rows share pages), hot (every writer increments one of 4 rows: true conflicts).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL