Skip to content
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

Write benchmark tests for common transforms/queries #152

Open
ErikBjare opened this issue Jul 23, 2020 · 1 comment
Open

Write benchmark tests for common transforms/queries #152

ErikBjare opened this issue Jul 23, 2020 · 1 comment

Comments

@ErikBjare
Copy link
Member

I found this section about benchmark tests in the Rust docs and thought it might be relevant to write some for tests in aw-transforms or aw-query: https://doc.rust-lang.org/1.7.0/book/benchmark-tests.html

There's also this, which runs the benchmark tests on two commits and compares the results: https://github.com/BurntSushi/cargo-benchcmp

Would be interesting to use for comparing different releases or comparing different allocators (#144).

Have you looked at this before @johan-bjareholt?

@johan-bjareholt
Copy link
Member

I have already written a simple benchmark for a basic query with many events, but more would certainly be useful (especially if we could track regressions, that would be awesome!).

https://github.com/ActivityWatch/aw-server-rust/tree/master/aw-query/benches

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants