def cpu():
 max_primes = [500, 1000, 2500, 5000]
 test_command = 'sysbench --test=cpu --cpu-max-prime={0} run'
 result = None
 ret_val = {}
 for primes in max_primes:
  key = 'Prime numbers limit: {0}'.format(primes)
  run_command = test_command.format(primes)
  result = __salt__['cmd.run'](run_command)
  ret_val[key] = _parser(result)
 return ret_val

def cpu ( ) : max_primes = [ 500 , 1000 , 2500 , 5000 ] test_command = 'sysbench --test=cpu --cpu-max-prime={0} run' result = None ret_val = { } for primes in max_primes : key = 'Prime numbers limit: {0}' . format ( primes ) run_command = test_command . format ( primes ) result = __salt__ [ 'cmd.run' ] ( run_command ) ret_val [ key ] = _parser ( result ) return ret_val
tests for the cpu performance of minions .