public class Benchmark
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Benchmark.BenchmarkResult
Represents a benchmark result
|
Modifier and Type | Method and Description |
---|---|
static Benchmark.BenchmarkResult[] |
runBenchmark(java.io.File file)
Performs a benchmark on the specified file.
|
static Benchmark.BenchmarkResult |
runBenchmark(java.io.File file,
int blocksize,
int count)
Performs a benchmark on the specified file.
|
public static Benchmark.BenchmarkResult[] runBenchmark(java.io.File file) throws java.io.IOException
file
- the filejava.io.IOException
public static Benchmark.BenchmarkResult runBenchmark(java.io.File file, int blocksize, int count) throws java.io.IOException
file
- the fileblocksize
- the block size to usecount
- the number of bytes to writejava.io.IOException