The Solana program is ~13.85kb, impressive size for what it does.
- Same example in anchor would be ~190kb.
- Same example in solana-program is ~100kb.
pinocchiofor program development.molluskfor testing and benchmarking.- GH Action for building, testing and benchmarking.
clirust-based cli usingsolana-clientandsolana-sdk.
$ cargo build-sbf$ solana program deploy -u d --program-id ./program-id.json \
-k ./deployer.json \
--upgrade-authority ./deployer.json \
./target/deploy/counter_pinocchio.so$ cargo test --features test-default$ cargo bench --features bench-defaultThanks @nagaprasadvr for his work on http://github.com/Nagaprasadvr/solana-pinocchio-starter
Solana CLI Version: solana-cli 2.1.14 (src:3ad46824; feat:3271415109, client:Agave)
| Name | CUs | Delta |
|---|---|---|
| create_counter | 3220 | - new - |
| increase_by_1 | 1698 | - new - |
| increase_by_100 | 1698 | - new - |
| increase_by_large_number | 1698 | - new - |