Merge lp:~mdcallag/perconatools/tpcc-mysql into lp:~percona-dev/perconatools/tpcc-mysql
Status: | Needs review |
---|---|
Proposed branch: | lp:~mdcallag/perconatools/tpcc-mysql |
Merge into: | lp:~percona-dev/perconatools/tpcc-mysql |
Diff against target: |
545 lines (+132/-120) 4 files modified
src/driver.c (+47/-37) src/main.c (+59/-57) src/rthist.c (+24/-24) src/rthist.h (+2/-2) |
To merge this branch: | bzr merge lp:~mdcallag/perconatools/tpcc-mysql |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Percona developers | Pending | ||
Review via email: mp+73893@code.launchpad.net |
Description of the change
Do you have any interest in this change?
I don't mind maintaining this as a separate branch but I think the changes will be useful to you too.
The benefits are:
1) it uses millisecond granularity rather than 10 millisecond granularity for response time buckets
2) it uses double instead of float (this will reduce some rounding errors, but probably isn't a big deal)
3) it uses gettimeofday rather than times to count clock ticks. The granularity from times is too coarse -- it provides at best 10 millisecond granularity. I don't know if this is used for portability, but it is too coarse.
Unmerged revisions
- 27. By Mark Callaghan
-
Use millisecond granularity instead of 10 millisecond granularity.
Use gettimeofday to count ticks instead of times
Use double instead of float