Giter VIP home page Giter VIP logo

dropwizard-perf-issue's Introduction

Dropwizard 0.8.0-rc4 hibernate performance degradation issue

Performance drop from 12k req/sec to 2.2 req/sec.

This repository contains code to demonstrate performance degradation while using hibernate when switching from 0.7.1 dropwizard version to 0.8.0-rc4.

Code is simple app which has 1 resource fetching list of DB entries via Hibernate.

Steps to reproduce:

  1. git clone [email protected]:kenota/dropwizard-perf-issue.git
  2. cd dropwizard-perf-issue
  3. gradle singleJar
  4. java -jar ./build/libs/app.jar server hello-world.yml > /dev/null

At this point you should run some benchmark, against http://localhost:8080/video-hibernate URL. I was able to achieve 12k req/sec using 50 threads on my MacbookPro.

  1. Ctrl+C to stop the running app
  2. Uncomment dropwizardVersion = "0.8.0-rc4" line in build.gradle and comment out dropwizardVersion = "0.7.1"
  3. gradle singleJar
  4. java -jar ./build/libs/app.jar server hello-world.yml > /dev/null

Run benchmark again. At this point, I was able to get only 2.2k req/sec using same 50 threads.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.