Skip to content

volatiletech/boilbench

Folders and files

NameName
Last commit message
Last commit date
Sep 26, 2020
Sep 26, 2020
Sep 26, 2020
Sep 26, 2020
Dec 10, 2021
Sep 26, 2020
Sep 26, 2020
Sep 26, 2020
Jul 31, 2017
Sep 26, 2020
Apr 23, 2017
Dec 10, 2021
Mar 13, 2023
Mar 13, 2023
Dec 10, 2021
Dec 10, 2021
Oct 6, 2020
Dec 10, 2021
Sep 4, 2016
Dec 10, 2021
Sep 26, 2020
Dec 10, 2021
Dec 10, 2021

Repository files navigation

SQLBoiler Benchmarks

Requirements

This repo requires Go 1.14+ to run.

To regenerate models, a running docker daemon is required.

Instructions

To run the benchmarks, run: go test -bench . -benchmem

To generate the models, run: ./scripts/gen-models

To benchmark using a different version of SQLBoiler, you can use a module replacement that points at a local checkout. For example:

go mod edit -replace github.com/volatiletech/sqlboiler/v4=/home/user/sqlboiler

Regenerate the models as needed. The model generation script and the code in this repo will use the replaced SQLBoiler. The same can be done for any other dependency as needed.

Note: There are some ruby and python scripts for generating graphs from many runs of these benchmarks. They can be used to help update the sqlboiler README with new graphs.

Graphs can be found in the SQLBoiler readme.

The homepage for the SQLBoiler is located at: https://github.com/volatiletech/sqlboiler