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
+33-4Lines changed: 33 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -255,8 +255,8 @@ The following options can be passed on to the `benchmark` or `multipleBenchmark`
255
255
-`range`(*Object*): Used to create a set of options using a set of rules, for each benchmark. (only one of range or fullOptions can be used)
256
256
-`optionName`(*String*): The option for which the range is applied. This has to be of type Number. It can be one of `benchmark` options.
257
257
-`interval`(*Array*): The upper and lower limits for the option.
258
-
-`step`(*Number*): The common difference between each option value. All the options will be in an AP. (only one of `step` or `commonRatio` can be used, preference given to `step`)
259
-
-`commonRatio`(*Number*): The common ratio between each option value. All the options will be in a GP. (only one of `step` or `commonRatio` can be used, preference given to `step`)
258
+
-`step`(*Number*): The common difference between each option value. All the options will be in an AP. (only one of `step` or `commonRatio` can be used, preference is given to `step`)
259
+
-`commonRatio`(*Number*): The common ratio between each option value. All the options will be in a GP. (only one of `step` or `commonRatio` can be used, preference is given to `step`)
260
260
-`fullOptions`(*Array*): An array of options object, each one corresponding to one benchmark. Each object is the same as `benchmark` options. (only one of range or fullOptions can be used)
261
261
262
262
#### Stats
@@ -280,16 +280,27 @@ The [output](#output) contains a `stats` property which shows the overall stats
280
280
---`diff`: Same as the diff object in `run_time`
281
281
282
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.
283
+
--`gpu`, `cpu`(*Number*): A score is a number representing the overall normalized average performance of the GPU or CPU. This score can be directly compared to other benchmarks or hardware.
284
284
285
285
#### BenchmarkOut
286
286
This object stores the output of **Benchmark**.
287
287
288
+
289
+
##### Properties
290
+
-`mat_gen`, `mat_pad`(*Number*): Matrix generation and matrix padding times in `ms`.
291
+
-`build_time`(*Object*):
292
+
--`mat_mult`, `mat_conv`(*Object*)
293
+
---`gpu`, `pipe`(*Number*): Compile times for GPU and GPU(pipeline mode) in `ms` for each benchmark.
294
+
-`run_time`(*Object*): Run times for each benchmark.
295
+
--`mat_mult`, `mat_conv`, `pipe`(*Object*): Run times for each benchmark.
296
+
---`gpu`, `cpu`(*Object*): GPU and CPU run times.
297
+
----`min`, `max`, `avg`(*Number*): The minimum, maximum and average run times in `ms`.
298
+
288
299
##### Methods
289
300
-`getDataField(field, index = 0)`(returns: ***): Gets any one of the output field(property).
290
301
--`field`(*String*): The name of the field.
291
302
--`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)
303
+
-`getPlotlyJSON(compareFields)`, `getChartistJSON(compareFields)`(Returns: *Array*): Returns plotly or Chartist style JSON Object for charts. (only for multiple benchmarks)
293
304
--`compareFields`: An array of objects having two properties `x` and `y` representing the data to be plotted on their respective axes.
294
305
---`x`, `y`(*String*): Can be one of:
295
306
----`matrix_size`
@@ -301,6 +312,24 @@ This object stores the output of **Benchmark**.
301
312
----`cpu_run_time_mat_conv`: CPU matrix convolution run time
302
313
----`pipe_run_time`: GPU pipelining run time
303
314
315
+
Default value of `compareFields` argument for `getPlotlyJSON` and `getChartistJSON` methods:
0 commit comments