From 1e766b10c981c6a2238a1f137450379456f135b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Matczuk?= Date: Fri, 17 Apr 2020 11:55:33 +0200 Subject: [PATCH] Update benchmark results in README MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MichaƂ Matczuk --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ad1d7a5..a3496bf 100644 --- a/README.md +++ b/README.md @@ -98,15 +98,15 @@ See more examples in [example_test.go](https://github.com/scylladb/gocqlx/blob/m ## Performance With regards to performance `gocqlx` package is comparable to the raw `gocql` baseline. -Below benchmark results running on a local machine. +Below benchmark results running on my laptop. ``` -BenchmarkBaseGocqlInsert 1840 586579 ns/op 7803 B/op 39 allocs/op -BenchmarkGocqlxInsert 2107 665080 ns/op 7803 B/op 39 allocs/op -BenchmarkBaseGocqlGet 2124 579242 ns/op 7311 B/op 35 allocs/op -BenchmarkGocqlxGet 2206 529855 ns/op 7647 B/op 38 allocs/op -BenchmarkBaseGocqlSelect 418 3051462 ns/op 49428 B/op 927 allocs/op -BenchmarkGocqlxSelect 357 3492430 ns/op 42632 B/op 933 allocs/op +BenchmarkBaseGocqlInsert 2392 427491 ns/op 7804 B/op 39 allocs/op +BenchmarkGocqlxInsert 2479 435995 ns/op 7803 B/op 39 allocs/op +BenchmarkBaseGocqlGet 2853 452384 ns/op 7309 B/op 35 allocs/op +BenchmarkGocqlxGet 2706 442645 ns/op 7646 B/op 38 allocs/op +BenchmarkBaseGocqlSelect 747 1664365 ns/op 49415 B/op 927 allocs/op +BenchmarkGocqlxSelect 667 1877859 ns/op 42521 B/op 932 allocs/op ``` See the benchmark in [benchmark_test.go](https://github.com/scylladb/gocqlx/blob/master/benchmark_test.go).