Git Product home page Git Product logo

gatling-tester's Introduction

Gatling

Ref

  1. test 설정

실행 방법

src.main.scala 는 동작 안함 ...

Record

브라우져의 http request를 gatling recorder 가 받아서 이를 Test 코드로 만들 수 있다.

  1. firefox 에 SwitchyOmega extension 설치 img.png

  2. Proxy Tab 에 아래와 같이 입력 -> 브라우저의 http request 가 gatling recorder 를 거쳐서 나가게 된다.
    img.png

  3. SwitchyOmega 모드를 Proxy로 변경 (Test 후에는 direct 로 바꾼다. 그렇지 않으면 인터넷이 안됨 )

  4. mvn gatling:recorder 실행 안되면 아래와 같이 img.png

5.아래 화면에서 No static Resources 를 누른 뒤 Start 누른 고 firefox 에서 원하는 API 로 request img.png

  1. test.org.yg 에 RecordedSimulation 으로 파일이 저장됨

Run

mvn gatling:test mvn gatling:test -D gatling.simulationClass=org.yg.TrainerCreate

결과 확인

terminal 에 결과 표시

  1. 해석 방법

Test 결과

response time 50th percentile 286 (OK=286 KO=- )

50 Percent의 Response Time 이 286ms 보다 작다 즉 빠르다.

  • 1차 (500 동시 100번 반복)
    • webflux
      • 328.947
    • mvc
      • 273.224
  • 2차 (500 동시 100번 반복)
    • webflux
      • 1315 DUMMY, webflux 로그 없앰

myslq vs redis

  • Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz 3.60 GHz 4코어/ 16gb
  • Redis, MySql: CPU 2 / Memory 2048 / Docker
  • Dummy: Memory 2048
  • 20 초 100명

쓰기

  • my sql img.png

  • redis img_1.png

proxy-trainer

  1. 1차 webflux img.png

주의

Gatling 3.x 대는 Scala 2.13 을 이용한다.

gatling-tester's People

Contributors

hog225 avatar

Watchers

James Cloos avatar  avatar

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.