-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New benchmarks for other functions under physics and mathematics (#4)
* new benchmarks for physics and mathematics * change in python version asv.conf.json * asv.conf.json changed to only python 3.7 * fixed imports physicsSuite * fixed function name
- Loading branch information
1 parent
72a6898
commit 57b88c3
Showing
5 changed files
with
325 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
.asv | ||
PlasmaPy | ||
env | ||
|
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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,27 @@ | ||
"""Functions from mathematics to benchmark with aerospeed velocity """ | ||
|
||
import astropy.units as u | ||
from plasmapy.mathematics import ( | ||
plasma_dispersion_func, | ||
plasma_dispersion_func_deriv, | ||
Fermi_integral | ||
) | ||
|
||
|
||
class mathematics: | ||
""" | ||
Benchmark that times the performance of funcions from | ||
mathematics/mathematics.py file | ||
""" | ||
|
||
def setup(self): | ||
pass | ||
|
||
def time_plasma_dispersion_func(self): | ||
plasma_dispersion_func(-1.52+0.47j) | ||
|
||
def time_plasma_dispersion_func_deriv(self): | ||
plasma_dispersion_func_deriv(-1.52+0.47j) | ||
|
||
def time_Fermi_integral(self): | ||
Fermi_integral(1, 0) |
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