Skip to content

Fibonacci sequence - written in sBPF (Solana eBPF) assembly.

Notifications You must be signed in to change notification settings

deanmlittle/solana-fibonacci-asm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solana Fibonacci ASM

A simple fibonacci sequence written in sBPF assembly. Tests are CU-optimized for f(93) at 904cus as this is the largest sequence number that fits inside of a 64-bit unsigned integer type.

Benchmarks are as follows:

F(n) unlogged logged
0 8 CUs 259 CUs
1 8 CUs 259 CUs
2 16 CUs 267 CUs
5 37 CUs 288 CUs
32 226 CUs 477 CUs
93 653 CUs 904 CUs

About

Fibonacci sequence - written in sBPF (Solana eBPF) assembly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published