Package alluxio.examples
Class Performance
- java.lang.Object
-
- alluxio.examples.Performance
-
public final class Performance extends java.lang.ObjectExample to show the performance of Alluxio.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPerformance.AlluxioReadWorkerA worker in Alluxio for read operations.static classPerformance.AlluxioWriterWorkerA worker in Alluxio for write operations.static classPerformance.GeneralWorkerA general worker.static classPerformance.HdfsWorkerA worker for HDFS.static classPerformance.WorkerBase class for workers used in this example.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidlogPerIteration(long startTimeMs, int times, java.lang.String msg, int workerId)Writes log information.static voidmain(java.lang.String[] args)Runs the performance test.
-
-
-
Method Detail
-
logPerIteration
public static void logPerIteration(long startTimeMs, int times, java.lang.String msg, int workerId)Writes log information.- Parameters:
startTimeMs- the start time in millisecondstimes- the number of the iterationmsg- the messageworkerId- the id of the worker
-
main
public static void main(java.lang.String[] args) throws java.lang.ExceptionRuns the performance test. Usage:java -cp <ALLUXIO-VERSION> alluxio.examples.Performance <MasterIp> <FileNamePrefix> <WriteBlockSizeInBytes> <BlocksPerFile> <DebugMode:true/false> <Threads> <FilesPerThread> <TestCaseNumber> <BaseFileNumber>- Parameters:
args- the arguments for this example- Throws:
java.lang.Exception
-
-