# How can we do stress testing properly with Flow?

**URL:** https://forum.flow.com/t/how-can-we-do-stress-testing-properly-with-flow/3225
**Category:** Product & Ideas
**Created:** [June 14, 2022, 1:53pm UTC](https://forum.flow.com/t/how-can-we-do-stress-testing-properly-with-flow/3225 "2022-06-14T13:53:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![14n2](https://avatars.discourse-cdn.com/v4/letter/1/77aa72/32.png) [@14n2](https://forum.flow.com/u/14n2)
#### Post date: [June 14, 2022, 1:53pm UTC](https://forum.flow.com/t/how-can-we-do-stress-testing-properly-with-flow/3225/1 "2022-06-14T13:53:14Z")

</div>

Hello!

We are currently developing a web3 project using Flow as our blockchain layer, in our business logic we need to handle a large number of resource modification simultaneously, thus we want to stress test the capacity of Flow network to see if it can handle these transactions rapidly enough.

Therefore, we are wondering:

- **What is the great practice to carry out stress testing on testnet?**
- According to [How much stress testing I can do with flow? - #3 by pete](http://forum.flow.com/t/how-much-stress-testing-i-can-do-with-flow/2069/3), we are only able to run small tests of ~10TPS on testnet, therefore, we would like to learn about the details of **how to configure the emulator properly to simulate real network latency** as well so that we could test with even more than 1000TPS?

We would absolutely appreciate any advice from the community!

Best regards.

---

<div class="post-metadata">

### Author: ![bluesign](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/bluesign/32/1359_2.png) [@bluesign](https://forum.flow.com/u/bluesign)
#### Post date: [June 14, 2022, 1:59pm UTC](https://forum.flow.com/t/how-can-we-do-stress-testing-properly-with-flow/3225/2 "2022-06-14T13:59:55Z")

</div>

Probably you need `localnet` setup.

> <https://github.com/onflow/flow-go/blob/master/integration/localnet/README.md>

---

<div class="post-metadata">

### Author: ![14n2](https://avatars.discourse-cdn.com/v4/letter/1/77aa72/32.png) [@14n2](https://forum.flow.com/u/14n2)
#### Post date: [June 14, 2022, 2:11pm UTC](https://forum.flow.com/t/how-can-we-do-stress-testing-properly-with-flow/3225/3 "2022-06-14T14:11:58Z")

</div>

Thank you for your response!

So generally the `localnet` provides the same or at least really similar Flow network condition (e.g. block delay) as testnet, is that right? Or else, what is the difference between emulator and `localnet`?

---

<div class="post-metadata">

### Author: ![bluesign](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/bluesign/32/1359_2.png) [@bluesign](https://forum.flow.com/u/bluesign)
#### Post date: [June 14, 2022, 4:30pm UTC](https://forum.flow.com/t/how-can-we-do-stress-testing-properly-with-flow/3225/4 "2022-06-14T16:30:07Z")

</div>

Localnet has each node type, basically very similar to testnet/mainnet.

Emulator is just emulating, so not similar to real thing when load testing.
