Skip to content

Commit

Permalink
Katana Benchmarks (#1467)
Browse files Browse the repository at this point in the history
* updated dojo benches to work with the new version

* basic bench

* katana bench to separate file

* prefunded account manager

* iterating over prefunded

* working benchmark

* timing responses and cleanup

* allowed for a greater number of prefunded

* spawn before each move

* auth writer fix

* last touches

* formatting

* initial katana runner macro

* working macro

* working katana macro

* changed runner to include accounts

* katana_test test

* deploying contract

* running auth script

* katana runner from a different executable

* working but really slow

* updated contracts in new format

* added a deploy to function like macro

* all benches passing

* updated to new katana

* overall cleanup

* fmt and clippy

* moved other uses of katan runner to macro

* rust fmt fix

* block sizes assert

* block duration from logs

* time for each 2 consecutive transactions

* minor cleanup

* bench for different numbers of tx

* added tps estimation

* benchmark logs now use json

* loading contract address from sozo

* heavy benchmark

* small refactor of benchmarks

* fixed one off account issue

* minor benchmark fixes

* heavy compute benchmarks

* multicall bechmarks

* final

* results aftere rebase

* Readme update and CI fix

* fixed test issues

* deployed using sozo depencency

* moved runner to benches

* parsing json before filtering logs

* changed permalinks to point to the main repo

* moved benchmarks behind a feature

* reverset feature flag for benches

* formatting

* moved runner back to katana

* moved the deployment logic to benches

* skipping benchmarks by default

* formatting after changes

* sync runner init

* fixes after rebase

---------

Co-authored-by: Mateusz Zając <[email protected]>
  • Loading branch information
neotheprogramist and matzayonc authored Jan 31, 2024
1 parent d9ef755 commit df8a9bd
Show file tree
Hide file tree
Showing 41 changed files with 1,554 additions and 395 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- run: cargo llvm-cov nextest --all-features --lcov --output-path lcov.info
- run: cargo build -r --bin katana && cargo llvm-cov nextest --all-features --lcov --output-path lcov.info
- uses: codecov/codecov-action@v3
if: github.ref != 'refs/heads/main'
with:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@ dojo.iml
.DS_Store
.env
data
**/katana-logs

crates/benches/gas_usage.txt
output.txt
**/katana-logs
crates/benches/bench_results.txt
Loading

0 comments on commit df8a9bd

Please sign in to comment.