OLD | NEW |
1 # benchmark | 1 # benchmark |
2 | 2 |
3 This application connects to another mojo application, collects traces during | 3 This application connects to another mojo application, collects traces during |
4 indicated period of time and computes a number of results based on the collected | 4 indicated period of time and computes a number of results based on the collected |
5 traces. It can be used to measure performance of a mojo app, provided that the | 5 traces. It can be used to measure performance of a mojo app, provided that the |
6 app being benchmarked participates in the [tracing | 6 app being benchmarked participates in the [tracing |
7 ecosystem](../../mojo/services/tracing/interfaces/tracing.mojom). | 7 ecosystem](../../mojo/services/tracing/interfaces/tracing.mojom). |
8 | 8 |
9 ## Arguments | 9 ## Arguments |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 `trace_event_category`. | 29 `trace_event_category`. |
30 - `time_between/<first_event_category>/<first_event_name>/<second_event_categor
y>/<second_event_name>` | 30 - `time_between/<first_event_category>/<first_event_name>/<second_event_categor
y>/<second_event_name>` |
31 measures time between the first occurence of the event named | 31 measures time between the first occurence of the event named |
32 `<first_event_name>` in category `<first_event_category>` and the first occur
ence | 32 `<first_event_name>` in category `<first_event_category>` and the first occur
ence |
33 of the event named `<second_event_name>` in category | 33 of the event named `<second_event_name>` in category |
34 `<second_event_category>`. The measurement will fail if the first occurence | 34 `<second_event_category>`. The measurement will fail if the first occurence |
35 of the first event happens after the first occurence of the second event. | 35 of the first event happens after the first occurence of the second event. |
36 - `avg_duration/<trace_event_category>/<trace_event_name>` - measures average | 36 - `avg_duration/<trace_event_category>/<trace_event_name>` - measures average |
37 duration of all events named `trace_event_name` in category | 37 duration of all events named `trace_event_name` in category |
38 `trace_event_category`. | 38 `trace_event_category`. |
| 39 - `percentile_duration/<trace_event_category>/<trace_event_name>/0.XX` - |
| 40 measures the value at the XXth percentile of all events named |
| 41 `trace_event_name` in category `trace_event_category`. E.g. |
| 42 `.../<trace_event_name/0.50` will give the 50th percentile. |
39 | 43 |
40 ## Runner script | 44 ## Runner script |
41 | 45 |
42 Devtools offers [a helper script](../../mojo/devtools/common/mojo_benchmark) | 46 Devtools offers [a helper script](../../mojo/devtools/common/mojo_benchmark) |
43 allowing to run a list of benchmarks in controlled caching conditions, both | 47 allowing to run a list of benchmarks in controlled caching conditions, both |
44 on **Android** and **Linux**. | 48 on **Android** and **Linux**. |
OLD | NEW |