-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
feat: New torin benchmark #318
Conversation
Benchmark for bf072ceClick to view benchmark
|
Benchmark for 5546e08Click to view benchmark
|
…2/freya into feat/new-torin-benchmark
Benchmark for c4dd640Click to view benchmark
|
* feat: Skip measuring of cached siblings in layout * clean up * remove fxhash * fix test * fixes * . * clean up * new benchmark * add_with_depth * fix * fix * fix * fixes * fixes * fixes * fixes * Update bench.rs
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #318 +/- ##
==========================================
+ Coverage 51.66% 51.67% +0.01%
==========================================
Files 131 131
Lines 11463 11466 +3
==========================================
+ Hits 5922 5925 +3
Misses 5541 5541
☔ View full report in Codecov by Sentry. |
@marc2332 These benchmark results looks suspiciously good to me. Specifically the To fix this in Taffy, we had to switch from using |
Hey Nico! I have two types of benchmarks, the ones where I create the layout on each iteration, so, nothing is cached. And the other one is where I create and cache the layout before the benchmark, and then I mark as dirty a certain element on each iteration. But... I agree that this benchmark from this PR in particular (and maybe the others) are too good, hence why I haven't merged it yet, so don't worry about it I still have to improve them, it's my first time doing benchmarks! I'll take a look at |
Benchmark for b4d8f9cClick to view benchmark
|
Looks like it is more accurate with iter_batched now @nicoburn, right?! Thanks for the suggestion! 😄 |
I still have to improve the benchmarks though! Some of them are not very realistic yet, specially the ones with depth 12, 14 and 17 |
Benchmark for 747c2b7Click to view benchmark
|
@marc2332 Benchmarking code looks reasonable to me now. Results are still very fast! (roughly 10x faster than Taffy (and Morphorm last time I saw numbers for that)). But Torin is quite a bit simpler than either (no stretch/flex functionality at all yet, right?), so that seems plausible to me. Taffy's benchmarks evenly distribute the children in each layer rather than only giving one child in each layer children. But I don't think there's anything wrong with your approach. It's just different. |
Yeah, that's correct! Torin is way simpler
Exactly! I want to do it just like Taffy because I think it's more realistic, perhaps I could leave it there but change the name so it becomes more obvious that there is only one child with children per layer |
Benchmark for c27e834Click to view benchmark
|
Depends on #314
New torin benchmark: deep + wide + cached