示例#1
0
 def __init__(self, target: Target, **kwargs):
     threads = int(target.n_cpus() / target.n_nodes())
     command = 'sysbench cpu --threads={} --cpu-max-prime=10000 run'.format(
         threads)
     super().__init__(command)
示例#2
0
    def __init__(self, target: Target, **kwargs):
        threads = min(int(target.n_cpus() / target.n_nodes()), 16)
        command = 'sysbench threads --threads={} run'.format(threads)

        #command = 'sysbench threads --max-time=1 --max-requests=-1 --threads={} run'.format(threads)
        super().__init__(command)
示例#3
0
 def __init__(self, target: Target, **kwargs):
     threads = min(int(target.n_cpus() / target.n_nodes()), 16)
     command = 'sysbench mutex --mutex-num=1 --threads={} run'.format(
         threads)
     super().__init__(command)
示例#4
0
 def __init__(self, target: Target, **kwargs):
     threads = int(target.n_cpus() / target.n_nodes())
     command = 'sysbench memory --memory-access-mode=rnd --threads={} run'.format(
         threads)
     super().__init__(command)