RustBenchmarkResultParser
public
class
RustBenchmarkResultParser
extends MultiLineReceiver
java.lang.Object | ||
↳ | com.android.ddmlib.MultiLineReceiver | |
↳ | com.android.tradefed.testtype.rust.RustBenchmarkResultParser |
Interpretuje dane wyjściowe testów przeprowadzonych za pomocą platformy porównywania wyników Criterion i przekształca je w wyzwania do serii funkcji ITestInvocationListener
.
Szuka w benchmarku kryterium Rust następujących danych wyjściowych:
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
...
@Zobacz https://bheisler.github.io/criterion.rs/book/user_guide/command_line_output.html
Podsumowanie
Konstruktory publiczne | |
---|---|
RustBenchmarkResultParser(
Utwórz nową usługę |
Metody publiczne | |
---|---|
void
|
done()
wysyłać nagrane wyniki testu do wszystkich słuchaczy. |
boolean
|
isCancelled()
|
void
|
processNewLines(String[] lines)
Przetwarzanie danych wyjściowych testu porównawczego Rust. |
Konstruktory publiczne
RustBenchmarkResultParser
public RustBenchmarkResultParser (listeners, String runName)
Utwórz nową usługę RustBenchmarkResultParser
, która będzie raportować do podanych usług ITestInvocationListener
.
Parametry | |
---|---|
listeners |
: wywołania testowe, |
runName |
String : nazwa testu |
Metody publiczne
gotowe
public void done ()
wysyłać nagrane wyniki testu do wszystkich słuchaczy.
isCancelled
public boolean isCancelled ()
Zwroty | |
---|---|
boolean |
processNewLines
public void processNewLines (String[] lines)
Przetwarzanie danych wyjściowych testu porównawczego Rust.
Parametry | |
---|---|
lines |
String |