-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QUERY: Are the benchmarking done sequentially? #1405
Comments
Is there a reason for wanting them to be done in order? |
@HaoZeke I have some functions that needs to be run before other functions. It's basically dependent on them. |
Isn't that the use-case for the |
Those functions also need to be benchmarked. |
I think this might be a design issue. If you're benchmarking the sequence of functions then a simple lambda enclosing them should suffice? Or even a little utility function. eg. : # pseudocode
def a():
b() # setup
c() # payload
# profile this with ASV
def tester():
a() Either that or I'd assume you could profile the setup separately for optimizing it, and have that separated from the |
I have a class like this. I want to do the benchmarking sequentially i.e. first
time_FormalIntegrator_check
, thentime_FormalIntegrator_calculate_spectrum
ans so on. Is there any way to do it?The text was updated successfully, but these errors were encountered: