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