public class CompactionBench extends Benchmark<CompactionTaskResult>
Benchmark.MethodStatistics, Benchmark.ProfileInput
Modifier and Type | Field and Description |
---|---|
protected FileSystem[] |
mCachedFs |
protected CompactionParameters |
mParameters |
protected ExecutorService |
mPool |
mBaseParameters
Constructor and Description |
---|
CompactionBench() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Perform post-run cleanups.
|
String |
getBenchDescription()
Get the description of the bench.
|
ExecutorService |
getPool()
If the thread pool is not yet initialized, creates the pool.
|
static void |
main(String[] args) |
void |
prepare()
Prepares to run the test.
|
CompactionTaskResult |
runLocal()
Runs the test locally, in process.
|
generateJobConfig, mainInternal, parseParameters, processMethodProfiles, run, runSingleTask
protected ExecutorService mPool
protected final CompactionParameters mParameters
protected FileSystem[] mCachedFs
public static void main(String[] args)
args
- command-line argumentspublic String getBenchDescription()
Benchmark
getBenchDescription
in class Benchmark<CompactionTaskResult>
public CompactionTaskResult runLocal() throws Exception
Benchmark
runLocal
in class Benchmark<CompactionTaskResult>
Exception
public void prepare() throws Exception
Benchmark
prepare
in class Benchmark<CompactionTaskResult>
Exception
public void cleanup() throws Exception
Benchmark
cleanup
in class Benchmark<CompactionTaskResult>
Exception
public ExecutorService getPool()
Copyright © 2023. All Rights Reserved.