Git Product home page Git Product logo

nbomber's Introduction

NBomber logo

Build status NuGet

Very simple load testing framework for Pull and Push scenarios. It's 100% written in F# and targeting .NET Core and full .NET Framework.

How to install

To install NBomber via NuGet, run this command in NuGet package manager console:

PM> Install-Package NBomber

How to run a simple scenario

how to run a scenario gif

Documentation

Documentation is located here.

Features

  • Request-response scenario
  • Pub/Sub scenario
  • Sequential flow
  • Test runner support: [XUnit; NUnit]
  • Cluster support
  • Reporting: [Plain text; HTML]

Supported technologies

  • Supported runtimes: .NET Framework (4.6+), .NET Core (2.0+), Mono, CoreRT
  • Supported languages: C#, F#, Visual Basic
  • Supported OS: Windows, Linux, macOS

Examples

Scenario Language Example
HTTP C# Test HTTP (https://github.com) with 100 concurrent users
MongoDb C# Test MongoDb with 2 READ queries and 2000 docs
NUnit integration C# Simple NUnit test
Simple Push C# Test fake push server
HTTP F# Test HTTP (https://github.com) with 100 concurrent users
XUnit integration F# Simple XUnit test

Contributing

Would you like to help make NBomber even better? We keep a list of issues that are approachable for newcomers under the good-first-issue label.

Why another {x} framework for load testing?

The main reasons are:

  • To be technology agnostic as much as possible (no dependency on any protocol: HTTP, WebSockets, SSE).
  • To be able to test .NET implementation of specific driver. During testing, it was identified many times that the performance could be slightly different because of the virtual machine(.NET, Java, PHP, Js, Erlang, different settings for GC) or just quality of drivers. For example there were cases that drivers written in C++ and invoked from NodeJs app worked faster than drivers written in C#/.NET. Therefore, it does make sense to load test your app using your concrete driver and runtime.

What makes it very simple?

NBomber is not really a framework but rather a foundation of building blocks which you can use to describe your test scenario, run it and get reports.

// simple C# example
var scenario = ScenarioBuilder.CreateScenario("Test MongoDb", mongoQuery);
NBomberRunner.RegisterScenarios(scenario)
             .RunInConsole();
// simple F# example
Scenario.create("Test MongoDb", [mongoQuery])
|> NBomberRunner.registerScenario
|> NBomberRunner.runInConsole

nbomber's People

Contributors

antyadev avatar alexkondrashov-ey avatar rohit-sharma avatar

Watchers

James Cloos 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.