add SQLite concurrency tests and bench task

BenchRepo for isolated concurrency testing against temp DB files.
Correctness tests prove WAL concurrent reads, IMMEDIATE transaction
mode vs DEFERRED upgrade failures, and PRAGMA application. Benchmark
tests (tagged :benchmark, excluded by default) measure throughput.

mix bench.sqlite runs HTTP load scenarios against the full Phoenix
stack with --prod, --scale, --pool-size, and --busy-timeout options.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jamey
2026-02-22 09:23:36 +00:00
parent 04cdb62a8d
commit 162bf4ca53
4 changed files with 779 additions and 1 deletions

View File

@@ -1,2 +1,2 @@
ExUnit.start()
ExUnit.start(exclude: [:benchmark])
Ecto.Adapters.SQL.Sandbox.mode(Berrypod.Repo, :manual)