GithubHelp home page GithubHelp logo

k6_pressure_testing_example's Introduction

參考

會進行五項測試

確保已經安裝k6

Test Types

並非每種測試都叫做壓力測試,官網上有寫出這些測試的差別和使用情境,這邊簡單介紹一下:

Smoke Testing

盡可能用最少的資源去測試,只是為了測試出有沒有 error

Load Testing

Load testing 也稱 Performance testing ,主要是關注當前系統的配置,在多少 user 或 RPS 時,performance 是如何

Stress Testing

和 Load testing 不同,主要是測試系統的極限在哪裡

Spike Testing

是 Stress testing 的變體,與之不同的是,流量不會慢慢進來,測試在短時間內大量的流量進來,系統還能不能撐住

Soak Testing

主要測試在長時間下,系統的可靠性和效能

一般執行

k6 run dir_to/full_test/{testcase}.js

如果要使用grafana+influxdb

k6 run --out influxdb=http://localhost:8086/k6 dir_to/k6_pressure_testing_example/{testcase}.js

k6_pressure_testing_example's People

Contributors

love99067333 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.