taichi-dev/taichi

[benchmark] Use pytest-benchmark for performance regression test

Open

#1 454 ouverte le 10 juil. 2020

Voir sur GitHub
 (1 commentaire) (2 réactions) (1 assigné)C++ (2 384 forks)batch import
feature requestgood first issuepython

Métriques du dépôt

Stars
 (28 195 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Concisely describe the proposed feature I'd like to make use of the pytest plugin pytest-benchmark instead of our own ad-hoc benchmarking framework which I've done with.

Describe the solution you'd like (if any) First check out the benchmarks/ directory, these are the benchmarks that we've already have. Make function names like benchmark_ -> test_. And make use of that plugin, as describe in their project page. When runing benchmark, simply use pytest benchmarks/. You may change the behavior ti benchmark to follow the same logic as ti test does.

Additional comments

Guide contributeur