From a5c3db21ca29e0812883ea612e20e9435a1956c9 Mon Sep 17 00:00:00 2001 From: Suresh Kumar Date: Mon, 14 Mar 2022 17:56:48 +0530 Subject: [PATCH 1/2] Update benchmark --- README.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 734e6a3..2abff27 100644 --- a/README.md +++ b/README.md @@ -76,12 +76,16 @@ Output should look like: # Benchmarks ``` go test -bench=. -benchmem - BenchmarkSQLite3/Without_Hooks-4 200000 8572 ns/op 627 B/op 16 allocs/op - BenchmarkSQLite3/With_Hooks-4 200000 10231 ns/op 738 B/op 18 allocs/op - BenchmarkMySQL/Without_Hooks-4 10000 108421 ns/op 437 B/op 10 allocs/op - BenchmarkMySQL/With_Hooks-4 10000 226085 ns/op 597 B/op 13 allocs/op - BenchmarkPostgres/Without_Hooks-4 10000 125718 ns/op 649 B/op 17 allocs/op - BenchmarkPostgres/With_Hooks-4 5000 354831 ns/op 1122 B/op 27 allocs/op + goos: linux + goarch: amd64 + pkg: github.com/qustavo/sqlhooks/v2 + cpu: Intel(R) Xeon(R) W-10885M CPU @ 2.40GHz + BenchmarkSQLite3/Without_Hooks-16 191196 6163 ns/op 456 B/op 14 allocs/op + BenchmarkSQLite3/With_Hooks-16 189997 6329 ns/op 456 B/op 14 allocs/op + BenchmarkMySQL/Without_Hooks-16 13278 83462 ns/op 309 B/op 7 allocs/op + BenchmarkMySQL/With_Hooks-16 13460 87331 ns/op 309 B/op 7 allocs/op + BenchmarkPostgres/Without_Hooks-16 13016 91421 ns/op 401 B/op 10 allocs/op + BenchmarkPostgres/With_Hooks-16 12339 94033 ns/op 401 B/op 10 allocs/op PASS - ok github.com/qustavo/sqlhooks 11.713s + ok github.com/qustavo/sqlhooks/v2 10.294s ``` From 41d5e47dd6487ff07c009d0adc87ed7329f710e1 Mon Sep 17 00:00:00 2001 From: Suresh Kumar Date: Thu, 31 Mar 2022 10:40:39 +0530 Subject: [PATCH 2/2] Fix indentation --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2abff27..5ac3aa1 100644 --- a/README.md +++ b/README.md @@ -80,12 +80,12 @@ Output should look like: goarch: amd64 pkg: github.com/qustavo/sqlhooks/v2 cpu: Intel(R) Xeon(R) W-10885M CPU @ 2.40GHz - BenchmarkSQLite3/Without_Hooks-16 191196 6163 ns/op 456 B/op 14 allocs/op - BenchmarkSQLite3/With_Hooks-16 189997 6329 ns/op 456 B/op 14 allocs/op - BenchmarkMySQL/Without_Hooks-16 13278 83462 ns/op 309 B/op 7 allocs/op - BenchmarkMySQL/With_Hooks-16 13460 87331 ns/op 309 B/op 7 allocs/op - BenchmarkPostgres/Without_Hooks-16 13016 91421 ns/op 401 B/op 10 allocs/op - BenchmarkPostgres/With_Hooks-16 12339 94033 ns/op 401 B/op 10 allocs/op + BenchmarkSQLite3/Without_Hooks-16 191196 6163 ns/op 456 B/op 14 allocs/op + BenchmarkSQLite3/With_Hooks-16 189997 6329 ns/op 456 B/op 14 allocs/op + BenchmarkMySQL/Without_Hooks-16 13278 83462 ns/op 309 B/op 7 allocs/op + BenchmarkMySQL/With_Hooks-16 13460 87331 ns/op 309 B/op 7 allocs/op + BenchmarkPostgres/Without_Hooks-16 13016 91421 ns/op 401 B/op 10 allocs/op + BenchmarkPostgres/With_Hooks-16 12339 94033 ns/op 401 B/op 10 allocs/op PASS ok github.com/qustavo/sqlhooks/v2 10.294s ```