RustBenchmarkResultParser
public
class
RustBenchmarkResultParser
extends MultiLineReceiver
java.lang.Object | ||
↳ | com.android.ddmlib.MultiLineReceiver | |
↳ | com.android.tradefed.testtype.rust.RustBenchmarkResultParser |
Interprets the output of tests run with Criterion benchmarking framework and translates it into
calls on a series of ITestInvocationListener
s.
Looks for the following output from Rust criterion bench:
Benchmarking Fibonacci/Recursive
Benchmarking Fibonacci/Recursive: Warming up for 3.0000 s
Benchmarking Fibonacci/Recursive: Collecting 100 samples in estimated 5.0785 s (278k iterations)
Benchmarking Fibonacci/Recursive: Analyzing
Fibonacci/Recursive time: [18.272 us 18.276 us 18.280 us]
change: [-0.0788% -0.0361% +0.0025%] (p = 0.07 > 0.05)
No change in performance detected.
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) low severe
1 (1.00%) low mild
...
@See https://bheisler.github.io/criterion.rs/book/user_guide/command_line_output.html
Summary
Public constructors | |
---|---|
RustBenchmarkResultParser(ITestInvocationListener listener, String runName)
Create a new |
|
RustBenchmarkResultParser(
Create a new |
Public methods | |
---|---|
void
|
done()
Send recorded test results to all listeners. |
boolean
|
isCancelled()
|
void
|
processNewLines(String[] lines)
Process Rust benchmark output. |
Public constructors
RustBenchmarkResultParser
public RustBenchmarkResultParser (ITestInvocationListener listener, String runName)
Create a new RustBenchmarkResultParser
that reports to the given ITestInvocationListener
.
Parameters | |
---|---|
listener |
ITestInvocationListener : the test invocation listener |
runName |
String : the test name |
RustBenchmarkResultParser
public RustBenchmarkResultParser (listeners, String runName)
Create a new RustBenchmarkResultParser
that reports to the given ITestInvocationListener
s.
Parameters | |
---|---|
listeners |
: the test invocation listeners |
runName |
String : the test name |
Public methods
done
public void done ()
Send recorded test results to all listeners.
isCancelled
public boolean isCancelled ()
Returns | |
---|---|
boolean |
processNewLines
public void processNewLines (String[] lines)
Process Rust benchmark output.
Parameters | |
---|---|
lines |
String |