Skip to content

Commit 7875602

Browse files
authored
Update benchmark (#50)
Update benchmark
1 parent 988df7d commit 7875602

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,16 @@ Output should look like:
7676
# Benchmarks
7777
```
7878
go test -bench=. -benchmem
79-
BenchmarkSQLite3/Without_Hooks-4 200000 8572 ns/op 627 B/op 16 allocs/op
80-
BenchmarkSQLite3/With_Hooks-4 200000 10231 ns/op 738 B/op 18 allocs/op
81-
BenchmarkMySQL/Without_Hooks-4 10000 108421 ns/op 437 B/op 10 allocs/op
82-
BenchmarkMySQL/With_Hooks-4 10000 226085 ns/op 597 B/op 13 allocs/op
83-
BenchmarkPostgres/Without_Hooks-4 10000 125718 ns/op 649 B/op 17 allocs/op
84-
BenchmarkPostgres/With_Hooks-4 5000 354831 ns/op 1122 B/op 27 allocs/op
79+
goos: linux
80+
goarch: amd64
81+
pkg: github.com/qustavo/sqlhooks/v2
82+
cpu: Intel(R) Xeon(R) W-10885M CPU @ 2.40GHz
83+
BenchmarkSQLite3/Without_Hooks-16 191196 6163 ns/op 456 B/op 14 allocs/op
84+
BenchmarkSQLite3/With_Hooks-16 189997 6329 ns/op 456 B/op 14 allocs/op
85+
BenchmarkMySQL/Without_Hooks-16 13278 83462 ns/op 309 B/op 7 allocs/op
86+
BenchmarkMySQL/With_Hooks-16 13460 87331 ns/op 309 B/op 7 allocs/op
87+
BenchmarkPostgres/Without_Hooks-16 13016 91421 ns/op 401 B/op 10 allocs/op
88+
BenchmarkPostgres/With_Hooks-16 12339 94033 ns/op 401 B/op 10 allocs/op
8589
PASS
86-
ok github.com/qustavo/sqlhooks 11.713s
90+
ok github.com/qustavo/sqlhooks/v2 10.294s
8791
```

0 commit comments

Comments
 (0)