A simple benchmark

7 views
Skip to first unread message

Phil Bayfield

unread,
Jan 27, 2011, 6:02:36 PM1/27/11
to GoMySQL
I've added a connect benchmark to the test file, it simply benchmarks
the connect phase (handshake + authenticate) in the dev branch:

./8.out -v -benchmarks="BenchmarkDialTCP|BenchmarkDialUnix"

mysql.BenchmarkDialTCP 1000 1823016 ns/op
mysql.BenchmarkDialUnix 2000 814905 ns/op

This was from a N280 Atom netbook, 0.8ms isn't too shabby really.

Phil Bayfield

unread,
Jan 28, 2011, 1:41:55 PM1/28/11
to GoMySQL
Benchmark took 0.3ms on a Core2 Duo laptop (x64)
Reply all
Reply to author
Forward
0 new messages