benchmark: longer benchmark with reduced allocations

This commit is contained in:
Michał Matczuk
2017-08-03 13:50:34 +02:00
parent 257c06efb4
commit 91cb873025

View File

@@ -91,12 +91,12 @@ For query binding gocqlx is faster as it does not require parameter rewriting
while binding. For get and insert the performance is comparable. while binding. For get and insert the performance is comparable.
``` ```
BenchmarkE2EGocqlInsert-4 10000 227031 ns/op 2628 B/op 59 allocs/op BenchmarkE2EGocqlInsert-4 500000 258434 ns/op 2627 B/op 59 allocs/op
BenchmarkE2EGocqlxInsert-4 10000 115548 ns/op 1556 B/op 34 allocs/op BenchmarkE2EGocqlxInsert-4 1000000 120257 ns/op 1555 B/op 34 allocs/op
BenchmarkE2EGocqlGet-4 10000 135755 ns/op 1970 B/op 55 allocs/op BenchmarkE2EGocqlGet-4 1000000 131424 ns/op 1970 B/op 55 allocs/op
BenchmarkE2EGocqlxGet-4 10000 123814 ns/op 2323 B/op 58 allocs/op BenchmarkE2EGocqlxGet-4 1000000 131981 ns/op 2322 B/op 58 allocs/op
BenchmarkE2EGocqlSelect-4 500 2462437 ns/op 34627 B/op 946 allocs/op BenchmarkE2EGocqlSelect-4 30000 2588562 ns/op 34605 B/op 946 allocs/op
BenchmarkE2EGocqlxSelect-4 500 2561537 ns/op 28875 B/op 957 allocs/op BenchmarkE2EGocqlxSelect-4 30000 2637187 ns/op 27718 B/op 951 allocs/op
``` ```
Gocqlx comes with automatic snake case support for field names and does not Gocqlx comes with automatic snake case support for field names and does not