benchmark/

directory
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT

README

Benchmark Suite

This directory contains production-style benchmarks for the ORM.

Run them with:

go test ./benchmark -run '^$' -bench=. -benchmem

Benchmark philosophy:

  • measure the ORM, not the network
  • keep setup deterministic
  • reuse the same PostgreSQL-backed fixture for comparable runs
  • separate SQL generation from SQL execution
  • keep the numbers useful for regression detection rather than ORM-to-ORM comparisons

To compare future runs:

go test ./benchmark -run '^$' -bench=. -benchmem > before.txt
go test ./benchmark -run '^$' -bench=. -benchmem > after.txt
benchstat before.txt after.txt

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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