CodSpeedHQ
go-gin-benchmarks-example
BlogDocsChangelog

Replace in-memory database with Turso (libSQL)

#2Closed
Comparing
feature/turso-integration
(
a87b887
) with
main
(
769218c
)
CodSpeed Performance Gauge
-99%
Regressions
3
Untouched
3

Benchmarks

Failed

BenchmarkGetAlbumByIDNotFound
api_test.go
Regression
CodSpeed Performance Gauge
-99%
10.1 µs1,585.7 µs
BenchmarkGetAlbums
api_test.go
Regression
CodSpeed Performance Gauge
-99%
15.7 µs1,569.8 µs
BenchmarkGetAlbumByIDExists
api_test.go
Regression
CodSpeed Performance Gauge
-99%
10.9 µs1,581 µs

Passed

BenchmarkPostAlbumsEmptyBody
api_test.go
CodSpeed Performance Gauge
+2%
6.3 µs6.1 µs
BenchmarkPostAlbumsValid
api_test.go
CodSpeed Performance Gauge
+1%
6.3 µs6.2 µs
BenchmarkPostAlbumsInvalidJSON
api_test.go
CodSpeed Performance Gauge
+1%
6.3 µs6.3 µs

Commits

Click on a commit to change the comparison range
Base
main
769218c
-99.36%
Replace in-memory database with Turso (libSQL) - Add Turso libSQL client dependency (github.com/tursodatabase/libsql-client-go) - Add SQLite driver for local file support (github.com/mattn/go-sqlite3) - Replace in-memory slice with libSQL database connection - Support both local file and remote Turso database via environment variables - Update all API handlers to use SQL queries instead of in-memory operations - Maintain backward compatibility with existing API endpoints - Database file: albums.db stores persistent album data locally Environment variables: - TURSO_DATABASE_URL: Database URL (defaults to file:./albums.db) - TURSO_AUTH_TOKEN: Authentication token for remote Turso database (optional) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
a87b887
23 days ago
by art049
© 2025 CodSpeed Technology
Home Terms Privacy Docs