# Gatling 2 -Disable all pauses?

**URL:** <https://community.gatling.io/t/gatling-2-disable-all-pauses/653>\
**Category:** Gatling (Open-Source)\
**Created:** [November 5, 2013, 3:36pm UTC](https://community.gatling.io/t/gatling-2-disable-all-pauses/653 "2013-11-05T15:36:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan\_Magnus\_Landro](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@Stefan\_Magnus\_Landro](https://community.gatling.io/u/Stefan_Magnus_Landro)\
**Post date:** [November 5, 2013, 3:36pm UTC](https://community.gatling.io/t/gatling-2-disable-all-pauses/653/1 "2013-11-05T15:36:31Z")

</div>

Is there a way to disable all pauses?

It would be great to be able to disable all pauses during development. Right now we are multiplying durations with a constant that we can set to zero, but that’s kinda ugly.

Cheers,

Stefan

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [November 5, 2013, 4:11pm UTC](https://community.gatling.io/t/gatling-2-disable-all-pauses/653/2 "2013-11-05T16:11:47Z")

</div>

You mean like [here](https://github.com/excilys/gatling/issues/1368)? 🙂

The syntax might change a bit in the future, but here’s the current one:

setUp(…).pauses(disabledPauses|constantPauses|exponentialPauses…)

So, you can trigger the value from a System property, such as

val pauseMode = if (Option(java.lang.Boolean.valueOf(“prod”)).map(\_.booleanValue).getOrElse(false)) constantPauses else disabledPauses

Cheers,

Stéphane

---

<div class="post-metadata">

**Author:** ![Stefan\_Magnus\_Landro](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@Stefan\_Magnus\_Landro](https://community.gatling.io/u/Stefan_Magnus_Landro)\
**Post date:** [November 6, 2013, 8:51am UTC](https://community.gatling.io/t/gatling-2-disable-all-pauses/653/3 "2013-11-06T08:51:11Z")

</div>

Great, thanks!

What does exponentialPauses mean?

Cheers,

Stefan

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [November 6, 2013, 9:01am UTC](https://community.gatling.io/t/gatling-2-disable-all-pauses/653/4 "2013-11-06T09:01:47Z")

</div>

It’s the strategy for exponential pause duration. In Gatling 1, it looked like this: [https://github.com/excilys/gatling/wiki/Structure-Elements#wiki-pause](https://github.com/excilys/gatling/wiki/Structure-Elements#wiki-pause)

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [November 6, 2013, 9:03am UTC](https://community.gatling.io/t/gatling-2-disable-all-pauses/653/5 "2013-11-06T09:03:56Z")

</div>

[http://en.wikipedia.org/wiki/Exponential\_distribution](http://en.wikipedia.org/wiki/Exponential_distribution)

[http://en.wikipedia.org/wiki/Poisson\_distribution](http://en.wikipedia.org/wiki/Poisson_distribution)
