Skip to content

Instantly share code, notes, and snippets.

@avshabanov
Created October 10, 2015 20:00
Show Gist options
  • Save avshabanov/929397510aaa40fffa8e to your computer and use it in GitHub Desktop.
Save avshabanov/929397510aaa40fffa8e to your computer and use it in GitHub Desktop.
brikar(Spring Core+MVC) vs Guice+Jersey

Web apps were deployed on local computer.

user-service-app

H2+Brikar(AOP)+Spring Core+Spring MVC+Protobuf/Jackson

1000 request, 10 threads, post-warm-up, ab -n 1000 -c 10 -A testonly:test -H 'Accept: application/json' 127.0.0.1:11280/rest/user/account/20:

  50%      2
  66%      2
  75%      2
  80%      3
  90%      3
  95%      4
  98%      5
  99%      7
 100%      8 (longest request)

10000 requests, 30 threads, post-warm-up ab -n 10000 -c 30 -A testonly:test -H 'Accept: application/json' 127.0.0.1:11280/rest/user/account/20:

  50%      7
  66%      7
  75%      8
  80%      8
  90%      9
  95%     10
  98%     11
  99%     12
 100%     15 (longest request)

guice-jersey-mybatis-demo

H2+MyBatis+Guice+Guice(AOP)+Guice Servlet+Jersey+Jackson

1000 request, 10 threads, post-warm-up, ab -n 1000 -c 10 127.0.0.1:8080/user/1000:

  50%      1
  66%      1
  75%      1
  80%      1
  90%      1
  95%      1
  98%      2
  99%      5
 100%      5 (longest request)

10000 requests, 30 threads, post-warm-up ab -n 10000 -c 30 127.0.0.1:8080/user/1000:

  50%      3
  66%      3
  75%      3
  80%      3
  90%      4
  95%      5
  98%      6
  99%      9
 100%     19 (longest request)

Note: certain passes resulted in errors (connection timed out) and very big p99 values - greater than 10 seconds.

@avshabanov
Copy link
Author

user-service-app, n=10000, c=30 - Requests per second: 4195.36 [req/sec] (mean)
guice-jersey-mybatis-demo, n=10000, c=30 - Requests per second: 10228.99 [req/sec] (mean)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment