def run(domain_size, runs, output): import perftest if not output.lower().endswith('.json'): output += '.json' results = perftest.run(domain_size, runs) for tag, result in results.items(): perftest.result.save(f'.{tag}.'.join(output.rsplit('.', 1)), result)
def run(domain_size, runs, output): import perftest if not output.lower().endswith('.json'): output += '.json' data = perftest.run(domain_size, runs) with open(output, 'w') as outfile: json.dump(data, outfile, indent=' ') log.info(f'Successfully saved perftests output to {output}')
def run(local, run_output, targets_and_opts): # options targets_and_opts = ' '.join(targets_and_opts).lstrip() if not run_output.lower().endswith('.json'): run_output += '.json' # Create directory of file if does not exists yet mkdirp(run_output) import perftest data = perftest.run(local, targets_and_opts) with open(run_output, 'w') as outfile: json.dump(data, outfile, indent=' ') log.info(f'Successfully saved perftests output to {run_output}')
def run(local, scheduling_policy, threads, run_output, extra_opts): # options scheduling_policy='--hpx:queuing=' + scheduling_policy threads='--hpx:threads=' + str(threads) extra_opts = ' '.join(extra_opts).lstrip() if not run_output.lower().endswith('.json'): run_output += '.json' # Create directory of file if does not exists yet mkdirp(run_output) import perftest data = perftest.run(local, scheduling_policy, threads, extra_opts) with open(run_output, 'w') as outfile: json.dump(data, outfile, indent=' ') log.info(f'Successfully saved perftests output to {run_output}')