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 Jun 15, 2024
1 parent f44d398 commit 9afc1e4
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-06-03
- date: 2024-06-06

> 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/9350984997)).
> 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/9399013373)).
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 | 1153284 | 17557 | 224 |
| BenchmarkScopingQueries/Create/WithTenantSchema-4 | 871816 | 16227 | 209 |
| BenchmarkScopingQueries/Find/SetSearchPath-4 | 944979 | 6377 | 102 |
| BenchmarkScopingQueries/Find/WithTenantSchema-4 | 667537 | 5076 | 87 |
| BenchmarkScopingQueries/Update/SetSearchPath-4 | 1601039 | 14720 | 209 |
| BenchmarkScopingQueries/Update/WithTenantSchema-4 | 1315298 | 13656 | 205 |
| BenchmarkScopingQueries/Delete/SetSearchPath-4 | 1615386 | 12235 | 190 |
| BenchmarkScopingQueries/Delete/WithTenantSchema-4 | 1419866 | 11300 | 185 |
| BenchmarkScopingQueries/Create/SetSearchPath-4 | 1184112 | 17552 | 224 |
| BenchmarkScopingQueries/Create/WithTenantSchema-4 | 918555 | 16224 | 209 |
| BenchmarkScopingQueries/Find/SetSearchPath-4 | 951405 | 6377 | 102 |
| BenchmarkScopingQueries/Find/WithTenantSchema-4 | 667583 | 5076 | 87 |
| BenchmarkScopingQueries/Update/SetSearchPath-4 | 1665855 | 14720 | 209 |
| BenchmarkScopingQueries/Update/WithTenantSchema-4 | 1387175 | 13657 | 205 |
| BenchmarkScopingQueries/Delete/SetSearchPath-4 | 1701148 | 12234 | 190 |
| BenchmarkScopingQueries/Delete/WithTenantSchema-4 | 1503335 | 11303 | 185 |


## Basic Example
Expand Down
20 changes: 10 additions & 10 deletions drivers/postgres/docs/0002_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-06-03
- date: 2024-06-06

> 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/9350984997)).
> 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/9399013373)).
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 | 1153284 | 17557 | 224 |
| BenchmarkScopingQueries/Create/WithTenantSchema-4 | 871816 | 16227 | 209 |
| BenchmarkScopingQueries/Find/SetSearchPath-4 | 944979 | 6377 | 102 |
| BenchmarkScopingQueries/Find/WithTenantSchema-4 | 667537 | 5076 | 87 |
| BenchmarkScopingQueries/Update/SetSearchPath-4 | 1601039 | 14720 | 209 |
| BenchmarkScopingQueries/Update/WithTenantSchema-4 | 1315298 | 13656 | 205 |
| BenchmarkScopingQueries/Delete/SetSearchPath-4 | 1615386 | 12235 | 190 |
| BenchmarkScopingQueries/Delete/WithTenantSchema-4 | 1419866 | 11300 | 185 |
| BenchmarkScopingQueries/Create/SetSearchPath-4 | 1184112 | 17552 | 224 |
| BenchmarkScopingQueries/Create/WithTenantSchema-4 | 918555 | 16224 | 209 |
| BenchmarkScopingQueries/Find/SetSearchPath-4 | 951405 | 6377 | 102 |
| BenchmarkScopingQueries/Find/WithTenantSchema-4 | 667583 | 5076 | 87 |
| BenchmarkScopingQueries/Update/SetSearchPath-4 | 1665855 | 14720 | 209 |
| BenchmarkScopingQueries/Update/WithTenantSchema-4 | 1387175 | 13657 | 205 |
| BenchmarkScopingQueries/Delete/SetSearchPath-4 | 1701148 | 12234 | 190 |
| BenchmarkScopingQueries/Delete/WithTenantSchema-4 | 1503335 | 11303 | 185 |

0 comments on commit 9afc1e4

Please sign in to comment.