-
Notifications
You must be signed in to change notification settings - Fork 237
Help wanted: Benchmarks in xray_core #21
Comments
If anyone wants to get started on this, this is a config for running With commands cd xray_core/
cargo +nightly bench --features "dev" ...or reply here if there are other ways |
Another option for micro benchmarks that is stable/nightly friendly is criterion: https://github.com/japaric/criterion.rs. |
You can put the benchmarks in a |
Can this be closed now that #62 is merged? |
That just laid the framework. I think we could probably use more benchmarks though of core functionality. |
i'm taking a look at this but had a question about how atomic the benchmarks should be. thanks! |
@anderoonies I honestly haven't developed strong opinions on this. My initial thought would be that we'd want to focus on situations involving more complexity. If we optimize those, presumably we'd do well in simpler cases, and conversely, if we're fast on a line without edits and slow on a line with lots of edits it still seems like we'd be too slow. That said, I think each scenario might be different. I have a lot of experience optimizing, but not much experience designing a long-lived benchmark suite. Would be happy to hear perspectives on the best design considerations. |
i'm curious to hear others' experience and input as well, being new to writing benchmarks myself. |
I'm not sure random edits are as important as sequential edits that simulate what a human would do. But testing against documents containing lots of edits will likely be important. |
It would be great to get a PR setting up benchmarks on
xray_core
in the canonical Rust manner. You can use your imagination on the kinds of operations we want to test, but here are some ideas:Just getting a basic framework in place with some non-trivial benchmark would be helpful.
The text was updated successfully, but these errors were encountered: