# Performance test -- connection refused

**URL:** <https://discourse.hanakai.org/t/performance-test-connection-refused/186>\
**Category:** questions\
**Created:** [November 25, 2015, 1:23pm UTC](https://discourse.hanakai.org/t/performance-test-connection-refused/186 "2015-11-25T13:23:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjacobus](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/mjacobus/32/113_2.png) [@mjacobus](https://discourse.hanakai.org/u/mjacobus)\
**Post date:** [November 25, 2015, 1:23pm UTC](https://discourse.hanakai.org/t/performance-test-connection-refused/186/1 "2015-11-25T13:23:42Z")

</div>

Hey there. I am doing some performance tests with different frameworks.

> **[mjacobus/ruby-performance](https://github.com/mjacobus/ruby-performance)**
>
> Simple comparison of ruby frameworks. Contribute to mjacobus/ruby-performance development by creating an account on GitHub.

I tested lotus in development mode and it was way to slow. Then I started it in production mode but it was blocking the concurrent requests, probably by a security middleware. I got “connection refused”.

Is there a config for preventing this connection refused feature?

TIA

---

<div class="post-metadata">

**Author:** ![fgbreel](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/fgbreel/32/157_2.png) [@fgbreel](https://discourse.hanakai.org/u/fgbreel)\
**Post date:** [November 26, 2015, 3:21am UTC](https://discourse.hanakai.org/t/performance-test-connection-refused/186/2 "2015-11-26T03:21:25Z")

</div>

@mjacobus I’m using Lotus since yesterday and I had the same behaviour trying to do some ‘tests’ with `puma` and `siege` and there is some gotchas:

- there is the option `--no-code-reloading` to have a faster development, but is a tradeoff.
- the `lotus server` command start `WEBrick` by default, using `puma` gem I have the server listening only on ipv6.
- According the man pages from the siege version the URL format must be `[protocol://] host.domain.xxx [:port] [/path/file]`. I’m not sure if accepts the ipv6 host format `[::1]`.
- To bind to an ipv4 socket I used the `--host 127.0.0.1` option of the `lotus server` command.

Best

---

<div class="post-metadata">

**Author:** ![mjacobus](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/mjacobus/32/113_2.png) [@mjacobus](https://discourse.hanakai.org/u/mjacobus)\
**Post date:** [November 26, 2015, 3:20pm UTC](https://discourse.hanakai.org/t/performance-test-connection-refused/186/3 "2015-11-26T15:20:31Z")

</div>

Hey man, thanks! You did some deep digging there =)

So I tried testing with --no-code-reloading and it was much faster =)

However I think that should still be faster in production mode. Development env has always some weirdness going on.
