Standard: Code efficiency #166
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
All software should have a benchmarks (i.e. using criterion https://github.com/bheisler/criterion.rs adapted to capture a regression caused by code changes that can be referenced agains a previous tests on the same system with calculations that account for a system noise.
Real life example of the issue:
https://github.com/Kreyren/rustlang-fibonacci is average fibonacci sequence that fails to process
fib(43)
due to the excessive amount of resources needed to process such runtime that doesn't fit into a realistic system resource budged.Compared to https://github.com/Kreyren/rustlang-fibonacci/tree/kreyren/case-study-performance-2 which hits the system limit in 11.43ns making it 371.2% more efficient and allows for the expected runtime.
Use https://gitpod.io/#https://github.com/Kreyren/rustlang-fibonacci/tree/kreyren/case-study-performance-2 with
cargo bench
to verify the results. Note that gitpod has 14~30% of system noise where the software in question is using criterion with 1000 tests made average to mitigate for this system noise to provide somewhat accurate results (seems to be accurate within 5 micro seconds)Issue-Label Bot is automatically applying the label
feature_request
to this issue, with a confidence of 0.87. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.