[Ethereum] Ganache Processing becomes very slow (with Automining Option) after consecutive thousands transactions

ganachejavascriptnodejsweb3js

I am trying to deploy thousands of contracts on Ganache GUI. At first, it process all transactions very fast (deploy contracts and transactions for calling setters functions) . After some transactions, may 500/1000 or more, it become so slow and process a single transaction in 5-8 seconds or sometime even more . Is it normal ? It is because of calculating difficulty level , automatically ?….

Best Answer

Try to work with ganache-cli instead of ganache-gui.

We faced similar issues with our integration tests - lots of transactions are very slow with the Ganache GUI (especially unter Windows the UI has update problems).

The command line interface ganache-cli is much more stable and runs in terminal as well as in docker container. From the functional point of view you have everything what you need in ganache-cli.

Ganache GUI is nice for demonstrations to management & customers or training sessions. During development and for test purposes it's better to use the ganache-cli.

Related Topic