A Rust crate that simplifies unit testing Solana programs by turning annotated test functions into executable BPF binaries, running them in a simulator, and reporting compute unit usage.
How It Works
While building blockchain apps, you find a helper that lets you test code efficiency just like regular checks.
Put this special tool into your project's list of helpers for testing only.
Add a simple note above the pieces of code you want to measure for power use.
Inside those marked spots, put the exact actions you want to test, like normal.
Tell your project to run all checks, and it quietly builds tiny real versions to measure their energy needs.
Right away, you get numbers showing how much computer power each test used.
Now you know exactly how efficient your code is and can make it even better.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.