diff --git a/drivers/postgres/README.md b/drivers/postgres/README.md index efd3cf7..0abf8b8 100644 --- a/drivers/postgres/README.md +++ b/drivers/postgres/README.md @@ -224,11 +224,11 @@ The benchmarks were run with the following configuration: - goos: linux - goarch: amd64 - pkg: github.com/bartventer/gorm-multitenancy/v6/drivers/postgres/schema -- cpu: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz +- cpu: AMD EPYC 7763 64-Core Processor - go version: 1.22.3 - date: 2024-05-16 - +> The benchmark results were generated during a GitHub Actions workflow run on a Linux runner ([view workflow](https://github.com/bartventer/gorm-multitenancy/actions/runs/9113233960)). The following table shows the benchmark results, obtained by running: ```bash @@ -238,14 +238,14 @@ go test -bench=^BenchmarkScopingQueries$ -run=^$ -benchmem -benchtime=2s github. | Benchmark | ns/op | B/op | allocs/op | |-----------|-------|------|-----------| -| BenchmarkScopingQueries/Create/SetSearchPath-4 | 43935165 | 17795 | 225 | -| BenchmarkScopingQueries/Create/WithTenantSchema-4 | 48148485 | 16101 | 208 | -| BenchmarkScopingQueries/Find/SetSearchPath-4 | 485293 | 6374 | 102 | -| BenchmarkScopingQueries/Find/WithTenantSchema-4 | 159456 | 4917 | 86 | -| BenchmarkScopingQueries/Update/SetSearchPath-4 | 44431652 | 14847 | 210 | -| BenchmarkScopingQueries/Update/WithTenantSchema-4 | 47528565 | 13601 | 205 | -| BenchmarkScopingQueries/Delete/SetSearchPath-4 | 45509287 | 12320 | 187 | -| BenchmarkScopingQueries/Delete/WithTenantSchema-4 | 47675177 | 11057 | 180 | +| BenchmarkScopingQueries/Create/SetSearchPath-4 | 1132556 | 17560 | 224 | +| BenchmarkScopingQueries/Create/WithTenantSchema-4 | 866528 | 16074 | 208 | +| BenchmarkScopingQueries/Find/SetSearchPath-4 | 951361 | 6377 | 102 | +| BenchmarkScopingQueries/Find/WithTenantSchema-4 | 679585 | 4916 | 86 | +| BenchmarkScopingQueries/Update/SetSearchPath-4 | 1639658 | 14717 | 209 | +| BenchmarkScopingQueries/Update/WithTenantSchema-4 | 1328368 | 13495 | 204 | +| BenchmarkScopingQueries/Delete/SetSearchPath-4 | 1645932 | 12233 | 190 | +| BenchmarkScopingQueries/Delete/WithTenantSchema-4 | 1428971 | 10979 | 183 | ## Basic Example diff --git a/drivers/postgres/docs/benchmarks.md b/drivers/postgres/docs/benchmarks.md index ee44356..e401dd9 100644 --- a/drivers/postgres/docs/benchmarks.md +++ b/drivers/postgres/docs/benchmarks.md @@ -5,11 +5,11 @@ The benchmarks were run with the following configuration: - goos: linux - goarch: amd64 - pkg: github.com/bartventer/gorm-multitenancy/v6/drivers/postgres/schema -- cpu: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz +- cpu: AMD EPYC 7763 64-Core Processor - go version: 1.22.3 - date: 2024-05-16 - +> The benchmark results were generated during a GitHub Actions workflow run on a Linux runner ([view workflow](https://github.com/bartventer/gorm-multitenancy/actions/runs/9113233960)). The following table shows the benchmark results, obtained by running: ```bash @@ -19,11 +19,11 @@ go test -bench=^BenchmarkScopingQueries$ -run=^$ -benchmem -benchtime=2s github. | Benchmark | ns/op | B/op | allocs/op | |-----------|-------|------|-----------| -| BenchmarkScopingQueries/Create/SetSearchPath-4 | 43935165 | 17795 | 225 | -| BenchmarkScopingQueries/Create/WithTenantSchema-4 | 48148485 | 16101 | 208 | -| BenchmarkScopingQueries/Find/SetSearchPath-4 | 485293 | 6374 | 102 | -| BenchmarkScopingQueries/Find/WithTenantSchema-4 | 159456 | 4917 | 86 | -| BenchmarkScopingQueries/Update/SetSearchPath-4 | 44431652 | 14847 | 210 | -| BenchmarkScopingQueries/Update/WithTenantSchema-4 | 47528565 | 13601 | 205 | -| BenchmarkScopingQueries/Delete/SetSearchPath-4 | 45509287 | 12320 | 187 | -| BenchmarkScopingQueries/Delete/WithTenantSchema-4 | 47675177 | 11057 | 180 | +| BenchmarkScopingQueries/Create/SetSearchPath-4 | 1132556 | 17560 | 224 | +| BenchmarkScopingQueries/Create/WithTenantSchema-4 | 866528 | 16074 | 208 | +| BenchmarkScopingQueries/Find/SetSearchPath-4 | 951361 | 6377 | 102 | +| BenchmarkScopingQueries/Find/WithTenantSchema-4 | 679585 | 4916 | 86 | +| BenchmarkScopingQueries/Update/SetSearchPath-4 | 1639658 | 14717 | 209 | +| BenchmarkScopingQueries/Update/WithTenantSchema-4 | 1328368 | 13495 | 204 | +| BenchmarkScopingQueries/Delete/SetSearchPath-4 | 1645932 | 12233 | 190 | +| BenchmarkScopingQueries/Delete/WithTenantSchema-4 | 1428971 | 10979 | 183 |