neotheprogramist / dojo

Dojo is a provable game engine and toolchain for building onchain games and autonomous worlds with Cairo
https://dojoengine.org/
Apache License 2.0
0 stars 1 forks source link

Katana bencharks #12

Closed matzayonc closed 10 months ago

matzayonc commented 10 months ago

In this PR I prepared the first iteration of katana benchmark. I creates 2000 prefunded accounts, and call move with each of them. Each transaction is run as a separate tokio task to not create a bottleneck on the client side.

Due to the number of needed prefunded accounts there was a need for a slight change in katana, to accept u16 instead of u8 as a number of prefunded accounts.

The best result I got was 917 transactions in a single, 3s block!

Future impovements:

matzayonc commented 10 months ago

Renamed branch