mbligh | 74d51af | 2008-07-09 01:56:10 +0000 | [diff] [blame] | 1 | NAME = 'System Evaluation Benchmark' |
| 2 | AUTHOR = 'Anton Blanchard <anton@samba.org>' |
| 3 | TIME = 'MEDIUM' |
| 4 | TEST_CLASS = 'IO' |
| 5 | TEST_CATEGORY = 'Benchmark' |
| 6 | TEST_TYPE = 'client' |
mbligh | 74d51af | 2008-07-09 01:56:10 +0000 | [diff] [blame] | 7 | |
| 8 | DOC = """ |
| 9 | The idea is to quickly get an impression about system performance for MySQL |
| 10 | usage without setting up complex benchmark and even without installing MySQL. |
| 11 | In some cases this is very helpful. This is also the reason for having |
| 12 | everything in simple file not depending on any external libraries. |
| 13 | """ |
| 14 | |
mbligh | afce103 | 2007-10-31 21:29:29 +0000 | [diff] [blame] | 15 | build = 1 |
| 16 | for threads in range(1, count_cpus()+1): |
| 17 | job.run_test('sysbench', db_type='pgsql', build=build, \ |
| 18 | num_threads=threads, read_only=1, tag='pgsql.' + str(threads)) |
| 19 | build = 0 |
| 20 | |
| 21 | build = 1 |
| 22 | for threads in range(1, count_cpus()+1): |
| 23 | job.run_test('sysbench', db_type='mysql', build=build, \ |
| 24 | num_threads=threads, read_only=1, tag='mysql.' + str(threads)) |
| 25 | build = 0 |