Skip to content
Discussion options

You must be logged in to vote

That looks like a reasonable approach, though you may consider using the tools in the timeit module (or in IPython, the %timeit magic command), either of which are better suited to getting accurate benchmarks than straight use of time.time.

Also, see JAX FAQ: Benchmarking JAX code for more JAX-specific tips on getting accurate benchmarks.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ksmdnl
Comment options

@jakevdp
Comment options

Answer selected by ksmdnl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants