Friday, February 27, 2009

Code for benchmarking

I published some of the code I use for performance testing at code.google.com:
  • ibench.py - this implements the insert benchmark from Tokutek. It optionally runs concurrent query threads to simulate the load on a busy replica. This workload can generate a lot of IO for stress testing or to understand the limits of a storage engine.
  • mstat.py - this collects performance data from iostat, vmstat and SHOW STATUS. A sample config file, mstat.ds, is also provided. It can be used to understand the load on a server during benchmarks or any other time you need to explain performance.

5 comments:

  1. i think that must exist a table or list of hardware/configuration - results for compare with our own results to know if we are on the right way based on applications like sysbench.

    ReplyDelete
  2. Great code, I love python! Cheers.

    ReplyDelete
  3. Result comparison is especially hard in this case because not many people have run ibench and I have modified it. Hopefully people will publish numbers.

    ReplyDelete
  4. Is there some specific reason why you don't use the parameter substitution that is built into cursor.execute()? (in ibench.py)

    ReplyDelete
  5. No. I will look at that soon. Thanks.

    ReplyDelete

 
Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.