-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from HaoZeke/externalPlugins
ENH: Support externally defined benchmark plugins
- Loading branch information
Showing
4 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# External Plugin List | ||
|
||
Here are the existing external plugins which are supported by `asv` and | ||
`asv_runner` (pull requests welcome). | ||
|
||
## Benchmark Plugins | ||
|
||
- [`asv_bench_memray`](https://haozeke.github.io/asv_bench_memray/) enables | ||
`RayMyClass` or `ray_funcname` for peak memory as profiled by `memray`, which | ||
is able to handle native calls and traces every function call |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Developing benchmarks | ||
|
||
All benchmark plugins must follow a strict hierarchy: | ||
|
||
- The package name must begin with `asv_bench`. | ||
- Benchmark classes are defined in a `benchmarks` folder under the package module. | ||
- Each exported new benchmark type has the `export_as_benchmark = [NAMEBenchmark]` attribute. | ||
|
||
For more conventions, see the internally defined benchmark types within `asv_runner`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters