Skip to content

try to benchmark get_fresh_msg_cnt() - #1882

Closed
r10s wants to merge 1 commit into
masterfrom
bench-bottleneck
Closed

r10s wants to merge 1 commit into
masterfrom
bench-bottleneck

Conversation

@r10s

@r10s r10s commented Sep 2, 2020 •

Copy link
Copy Markdown
Contributor

successor of #1881, trying to target comment of @link2xt at #1881 (comment)

this pr is not ready to merge and maybe never will be.

i just tried to get a grip on the #1881 issue by creating a database with 50 chats with 1k messages each and the calling get_fresh_msg_cnt() for each chat 20k times.

on my machine, creation of the database takes 11s, the get_fresh_msg_cnt() stress takes

so, not sure what we can do with this pr.

also, i did not manage to get the https://doc.rust-lang.org/unstable-book/library-features/test.html running, in theory, the second outer loop has to be replaced by b.iter() then - however, i do not have nightly installed - so maybe wait until that goes to stable?
i also do not completely get, how this can help to find out regressions (if at all, i somehow assumed that as being part of test-crate) - is the last benchmark saved somewhere?

maybe i also misunderstood some things :)

EDIT: ftr, crate that might help: https://lib.rs/crates/criterion (recent suggestion from @link2xt on irc)

@r10s

r10s commented Sep 5, 2020

Copy link
Copy Markdown
Contributor Author

closing for now, adding benchmarks seems not to be the most important thing to target currently, also, as we would not have find out the fixed issue by some benchmark, see comments above, at best, we would need to run them on an old phone or slowed down in a way, but this seems to be a bit out of scope. also, for benchmarking, maybe python is the better level.

anyway, adding more tests, esp. python tests in counterplay with non-delta-muas seems to be the more important thing to target when it comes to tests/etc.

@r10s r10s closed this Sep 5, 2020
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

Successfully merging this pull request may close these issues.

1 participant