Commit Graph

3 Commits

Author SHA1 Message Date
89650ca556 tidb: add insert benchmark. 2016-04-03 13:09:27 +08:00
9773d33354 tidb: add some simple select benchmark. 2016-03-29 15:10:12 +08:00
f1aa215808 tidb: set session variable when load from global variable.
When autocommit is not set by session, we use global variable.
Currently it is loaded in every statement, which means we execute a select statement for every statements.
The behaviour not only hurts performance, but also is wrong.
In MySQL, autocommit is determined when session is created, and it will not be affected when global variable updates.

Also added a basic benchmark method to test basic performace test.
2015-11-18 19:30:00 +08:00