@@ -66,21 +66,21 @@ static cl::opt<uint32_t>
66
66
67
67
#if defined(LIBC_BENCHMARK_FUNCTION_MEMCPY)
68
68
#define LIBC_BENCHMARK_FUNCTION LIBC_BENCHMARK_FUNCTION_MEMCPY
69
- using BenchmarkHarness = CopyHarness ;
69
+ using BenchmarkSetup = CopySetup ;
70
70
#elif defined(LIBC_BENCHMARK_FUNCTION_MEMSET)
71
71
#define LIBC_BENCHMARK_FUNCTION LIBC_BENCHMARK_FUNCTION_MEMSET
72
- using BenchmarkHarness = SetHarness ;
72
+ using BenchmarkSetup = SetSetup ;
73
73
#elif defined(LIBC_BENCHMARK_FUNCTION_BZERO)
74
74
#define LIBC_BENCHMARK_FUNCTION LIBC_BENCHMARK_FUNCTION_BZERO
75
- using BenchmarkHarness = SetHarness ;
75
+ using BenchmarkSetup = SetSetup ;
76
76
#elif defined(LIBC_BENCHMARK_FUNCTION_MEMCMP)
77
77
#define LIBC_BENCHMARK_FUNCTION LIBC_BENCHMARK_FUNCTION_MEMCMP
78
- using BenchmarkHarness = ComparisonHarness ;
78
+ using BenchmarkSetup = ComparisonSetup ;
79
79
#else
80
80
#error "Missing LIBC_BENCHMARK_FUNCTION_XXX definition"
81
81
#endif
82
82
83
- struct MemfunctionBenchmarkBase : public BenchmarkHarness {
83
+ struct MemfunctionBenchmarkBase : public BenchmarkSetup {
84
84
MemfunctionBenchmarkBase () : ReportProgress(isatty(fileno(stdout))) {}
85
85
virtual ~MemfunctionBenchmarkBase () {}
86
86
@@ -95,7 +95,7 @@ struct MemfunctionBenchmarkBase : public BenchmarkHarness {
95
95
protected:
96
96
Study createStudy () {
97
97
Study Study;
98
- // Harness study.
98
+ // Setup study.
99
99
Study.StudyName = StudyName;
100
100
Runtime &RI = Study.Runtime ;
101
101
RI.Host = HostState::get ();
@@ -255,7 +255,7 @@ void main() {
255
255
Benchmark.reset (new MemfunctionBenchmarkSweep ());
256
256
else
257
257
Benchmark.reset (new MemfunctionBenchmarkDistribution (getDistributionOrDie (
258
- BenchmarkHarness::Distributions , SizeDistributionName)));
258
+ BenchmarkSetup::getDistributions () , SizeDistributionName)));
259
259
writeStudy (Benchmark->run ());
260
260
}
261
261
0 commit comments