Skip to content

Commit

Permalink
docs(README): Update benchmark results [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and bartventer committed May 23, 2024
1 parent 465d3bc commit 918fa96
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions drivers/postgres/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ The benchmarks were run with the following configuration:
- pkg: github.com/bartventer/gorm-multitenancy/v6/drivers/postgres/schema
- cpu: AMD EPYC 7763 64-Core Processor
- go version: 1.22.3
- date: 2024-05-19
- date: 2024-05-23

> 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/9147472445)).
> 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/9210493943)).
The following table shows the benchmark results, obtained by running:
```bash
Expand All @@ -238,14 +238,14 @@ go test -bench=^BenchmarkScopingQueries$ -run=^$ -benchmem -benchtime=2s github.
| Benchmark | ns/op | B/op | allocs/op |
|-----------|-------|------|-----------|
| BenchmarkScopingQueries/Create/SetSearchPath-4 | 1177237 | 17552 | 224 |
| BenchmarkScopingQueries/Create/WithTenantSchema-4 | 922331 | 16073 | 208 |
| BenchmarkScopingQueries/Find/SetSearchPath-4 | 942923 | 6376 | 102 |
| BenchmarkScopingQueries/Find/WithTenantSchema-4 | 663937 | 4916 | 86 |
| BenchmarkScopingQueries/Update/SetSearchPath-4 | 1641535 | 14717 | 209 |
| BenchmarkScopingQueries/Update/WithTenantSchema-4 | 1389254 | 13496 | 204 |
| BenchmarkScopingQueries/Delete/SetSearchPath-4 | 1677159 | 12240 | 190 |
| BenchmarkScopingQueries/Delete/WithTenantSchema-4 | 1469835 | 10979 | 183 |
| BenchmarkScopingQueries/Create/SetSearchPath-4 | 1164208 | 17552 | 224 |
| BenchmarkScopingQueries/Create/WithTenantSchema-4 | 900001 | 16233 | 209 |
| BenchmarkScopingQueries/Find/SetSearchPath-4 | 960629 | 6377 | 102 |
| BenchmarkScopingQueries/Find/WithTenantSchema-4 | 682504 | 5076 | 87 |
| BenchmarkScopingQueries/Update/SetSearchPath-4 | 1706675 | 14719 | 209 |
| BenchmarkScopingQueries/Update/WithTenantSchema-4 | 1450658 | 13657 | 205 |
| BenchmarkScopingQueries/Delete/SetSearchPath-4 | 1769880 | 12240 | 190 |
| BenchmarkScopingQueries/Delete/WithTenantSchema-4 | 1537189 | 11303 | 185 |


## Basic Example
Expand Down
20 changes: 10 additions & 10 deletions drivers/postgres/docs/benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ The benchmarks were run with the following configuration:
- pkg: github.com/bartventer/gorm-multitenancy/v6/drivers/postgres/schema
- cpu: AMD EPYC 7763 64-Core Processor
- go version: 1.22.3
- date: 2024-05-19
- date: 2024-05-23

> 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/9147472445)).
> 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/9210493943)).
The following table shows the benchmark results, obtained by running:
```bash
Expand All @@ -19,11 +19,11 @@ go test -bench=^BenchmarkScopingQueries$ -run=^$ -benchmem -benchtime=2s github.
| Benchmark | ns/op | B/op | allocs/op |
|-----------|-------|------|-----------|
| BenchmarkScopingQueries/Create/SetSearchPath-4 | 1177237 | 17552 | 224 |
| BenchmarkScopingQueries/Create/WithTenantSchema-4 | 922331 | 16073 | 208 |
| BenchmarkScopingQueries/Find/SetSearchPath-4 | 942923 | 6376 | 102 |
| BenchmarkScopingQueries/Find/WithTenantSchema-4 | 663937 | 4916 | 86 |
| BenchmarkScopingQueries/Update/SetSearchPath-4 | 1641535 | 14717 | 209 |
| BenchmarkScopingQueries/Update/WithTenantSchema-4 | 1389254 | 13496 | 204 |
| BenchmarkScopingQueries/Delete/SetSearchPath-4 | 1677159 | 12240 | 190 |
| BenchmarkScopingQueries/Delete/WithTenantSchema-4 | 1469835 | 10979 | 183 |
| BenchmarkScopingQueries/Create/SetSearchPath-4 | 1164208 | 17552 | 224 |
| BenchmarkScopingQueries/Create/WithTenantSchema-4 | 900001 | 16233 | 209 |
| BenchmarkScopingQueries/Find/SetSearchPath-4 | 960629 | 6377 | 102 |
| BenchmarkScopingQueries/Find/WithTenantSchema-4 | 682504 | 5076 | 87 |
| BenchmarkScopingQueries/Update/SetSearchPath-4 | 1706675 | 14719 | 209 |
| BenchmarkScopingQueries/Update/WithTenantSchema-4 | 1450658 | 13657 | 205 |
| BenchmarkScopingQueries/Delete/SetSearchPath-4 | 1769880 | 12240 | 190 |
| BenchmarkScopingQueries/Delete/WithTenantSchema-4 | 1537189 | 11303 | 185 |

0 comments on commit 918fa96

Please sign in to comment.