You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -218,7 +218,7 @@ This saves the [chartist.js](https://gionkunz.github.io/chartist-js/) style JSON
218
218
### API
219
219
220
220
#### Output
221
-
The output of any benchmark(multiple or single) is a [`benchmarkOut`](#benchmarkout) Object.
221
+
The output of any benchmark(multiple or single) is a [`BenchmarkOut`](#benchmarkout) Object.
222
222
223
223
#### Options
224
224
The following options can be passed on to the `benchmark` or `multipleBenchmark` method.
@@ -279,6 +279,29 @@ The [output](#output) contains a `stats` property which shows the overall stats
279
279
---`worst_performer`(`gpu` | `cpu`): The worst overall performer.
280
280
---`diff`: Same as the diff object in `run_time`
281
281
282
+
-`score`: The score object is a property of the main output object.
283
+
--`gpu`, `cpu`(*Number*): The score is a number representing the overall normalized averge performance of the GPU or CPU. This score can be directly compared to other benchmarks or hardware.
284
+
285
+
#### BenchmarkOut
286
+
This object stores the output of **Benchmark**.
287
+
288
+
##### Methods
289
+
-`getDataField(field, index = 0)`(returns: ***): Gets any one of the output field(property).
290
+
--`field`(*String*): The name of the field.
291
+
--`index`(Number): The index of the benchmark if multiple benchmarks are run.
292
+
-`getPlotlyJSON(compareFields)`, `getChartistJSON(compareFields)`(Returns: *Array*): Returns plotly style JSON for charts. (only for multiple benchmarks)
293
+
--`compareFields`: An array of objects having two properties `x` and `y` representing the data to be plotted on their respective axes.
294
+
---`x`, `y`(*String*): Can be one of:
295
+
----`matrix_size`
296
+
----`gpu_score`
297
+
----`cpu_score`
298
+
----`gpu_run_time_mat_mult`: GPU matrix multiplication run time
299
+
----`cpu_run_time_mat_mult`: CPU matrix multiplication run time
300
+
----`gpu_run_time_mat_conv`: GPU matrix convolution run time
301
+
----`cpu_run_time_mat_conv`: CPU matrix convolution run time
0 commit comments