Skip to content

Commit

Permalink
chore: rename fibonacci and factorial benchmark files (#1288)
Browse files Browse the repository at this point in the history
* Rename fibonacci and factorial benchmark files

* Update README link

---------

Co-authored-by: Pedro Fontana <[email protected]>
  • Loading branch information
MegaRedHand and pefontana committed Jul 3, 2023
1 parent 27a3094 commit a079222
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ make test

## 📊 Benchmarks

Running a [Cairo program](./cairo_programs/benchmarks/fibonacci_1000_multirun.cairo) that gets the 1000th Fibonacci number we got the following benchmarks:
Running a [Cairo program](./cairo_programs/benchmarks/big_fibonacci.cairo) that gets the 1.5 millionth Fibonacci number we got the following benchmarks:

- Execution time with [Criterion](./docs/benchmarks/criterion_benchmark.pdf)
- [Flamegraph](./docs/benchmarks/flamegraph.svg)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ func factorial(n) -> (result: felt) {
}

func main() {
// Make sure the factorial(10) == 3628800
let (y) = factorial(10);
y = 3628800;

factorial(2000000);
return ();
}

0 comments on commit a079222

Please sign in to comment.