Repository navigation
Conversation
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 that is not very significant, however, my machine is quite fast, compared to an older android where the difference is easily 50 and more times faster.
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)