taichi-dev/taichi

[benchmark] Use pytest-benchmark for performance regression test

Open

#1,454 建立於 2020年7月10日

在 GitHub 查看
 (1 留言) (2 反應) (1 負責人)C++ (2,384 fork)batch import
feature requestgood first issuepython

倉庫指標

Star
 (28,195 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南