1NAME = 'System Evaluation Benchmark' 2AUTHOR = 'Anton Blanchard <anton@samba.org>' 3TIME = 'MEDIUM' 4TEST_CLASS = 'IO' 5TEST_CATEGORY = 'Benchmark' 6TEST_TYPE = 'client' 7 8DOC = """ 9The idea is to quickly get an impression about system performance for MySQL 10usage without setting up complex benchmark and even without installing MySQL. 11In some cases this is very helpful. This is also the reason for having 12everything in simple file not depending on any external libraries. 13""" 14 15build = 1 16for 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 21build = 1 22for 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 26