Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Am I scaling this wrong? #12

Open
xJade00 opened this issue Jan 7, 2018 · 3 comments
Open

Am I scaling this wrong? #12

xJade00 opened this issue Jan 7, 2018 · 3 comments
Labels

Comments

@xJade00
Copy link

xJade00 commented Jan 7, 2018

I have a basic application with a few classes, and I tried to benchmark with a simple

    override fun handle(baseRequest: Request, request: HttpServletRequest, response: HttpServletResponse) {
        response.withStatus(200).sendJson(JsonCreator.from(value = TestReturn("Hello, world")))
        baseRequest.done()
    }

I did 10K requests at 100 requests, and it took a long time.
a57de90

Using a localhost, is that the problem? Am I doing the whole scaling thing wrong?

@SeunAdelekan
Copy link
Owner

Hi @Xaanit, I'm curious as well as to why you are getting such results in your benchmark. Running a quick benchmark with ab - 15000 requests with a concurrency level of 50 - on localhost, Kanary performed as shown in the image below.

image

As shown above, response times were significantly better than those that you got. There are various reasons why you may be getting such results on your system. Can you shed more light on the environment you ran the benchmark on and the benchmarking tool you utilized? In addition, it will be appreciated if you can run the same benchmark with ab (Apache server benchmarking tool - http://httpd.apache.org/docs/2.2/programs/ab.html) and share you results on this issue. I'm interested in finding out what led to your results.

Cheers!

@xJade00
Copy link
Author

xJade00 commented Jan 8, 2018

Hey! I'm using this (which is basically apache's but I could run it faster :P) and I get similar (even better) stats when using ~15K requests with 50 concurrent, mine was 100 requests with 100K concurrent. Maybe try that and see if you get similar? Tomorrow I'll upload exactly what I have to gist code-wise. Thanks @SeunAdelekan

b68ed95

@xJade00
Copy link
Author

xJade00 commented Jan 12, 2018

Sorry! Very busy lately. Here's the promised gist: https://gist.github.com/xaanit/f8914a40c499d051a3839c9472c8d82c @SeunAdelekan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants