status = bench_run()
status = bench_run(targets)
status = bench_run(targets, Name, Value)
| Parameter | Description |
|---|---|
| targets | module name, module names, benchmark file, or benchmark files. |
| Name, Value | options accepted by nelson.unittest.run. |
| Parameter | Description |
|---|---|
| status | logical: true when all selected benchmarks succeed. |
bench_run discovers and executes only 'bench_*.m' files.
Benchmarks always run in child processes. One benchmark process is used with up to eight available threads; two benchmark processes are used when more than eight threads are available.
Use nelson.unittest.run with Kind set to bench to obtain structured results.
bench_run('string')