Skip to content

About

Companion code for the GopherCon 2024 talk Lightning-Fast Database Tests.

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Repository files navigation

Lightning-Fast Database Tests

Lint

This repository contains the demonstration code and test suite used in the "Lightning-Fast Database Tests" presentation at Gophercon 2024. It showcases the performance improvements achieved using pgtestdb, a tool for creating ephemeral Postgres databases for testing.

The test suite creates and lists 1000 products under various configurations: sequentially, in parallel using pgtestdb, and with additional optimizations like disabling fsync and using tmpfs.

By running these tests, you can observe the speed improvements possible in database testing, potentially leading to faster development cycles and more efficient CI/CD pipelines. To get started, clone this repo, ensure you have Go, Docker and Postgres installed, and run go test ./... to see the comparisons in action.

About

Companion code for the GopherCon 2024 talk Lightning-Fast Database Tests.

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages