question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PERF: Add benchmarking?

See original GitHub issue

Because xarray is all python and generally not doing much compute itself (i.e. it marshals other libraries to do that), this hasn’t been that important.

IIRC most of the performance issues have arisen where xarray builds on (arguably) shaky foundations, like PeriodIndex.

Though as we mature, is it worth adding some benchmarks?

If so, what’s a good way to do this? Pandas uses asv successfully. I don’t have experience with https://github.com/ionelmc/pytest-benchmark but that could be a lower cost way of getting started. Any others?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
shoyercommented, Feb 10, 2017

One issue is that unit tests are often not good benchmarks. Ideal unit tests are as fast as possible, whereas ideal benchmarks should be run on more typical inputs, which may be much slower.

0reactions
mrocklincommented, Jun 13, 2017

@TomAugspurger has done some ASV work with Dask itself

Read more comments on GitHub >

github_iconTop Results From Across the Web

piotrmurach/benchmark-perf - GitHub
Measure execution time and iterations per second. The Benchmark::Perf is used by rspec-benchmark. Installation. Add this line to your application's Gemfile: gem ...
Read more >
Tutorial - Perf Wiki
The perf bench command includes a number of multi-threaded microbenchmarks to exercise different subsystems in the Linux kernel and system calls ...
Read more >
perf-bench Benchmark - OpenBenchmarking.org
perf -bench. This test profile is used for running Linux perf-bench, the benchmark support within the Linux kernel's perf tool.
Read more >
perf-bench(1) - Linux manual page - man7.org
This perf bench command is a general framework for benchmark suites. COMMON OPTIONS top. -r, --repeat= Specify amount of times to repeat the...
Read more >
How to get consistent results when benchmarking on Linux?
1) Disable turboboost; 2) Disable hyper threading; 3) Set scaling_governor to 'performance'; 4) Set cpu affinity; 5) Set process priority; 6) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found