Giter Site home page Giter Site logo

netcharger's Introduction

NetCharger

NetCharger is a lightweight, powerful TCP stress testing tool designed to evaluate the performance and resilience of TCP servers by establishing a large number of connections simultaneously. It operates in two modes: a Server Mode for listening and responding to incoming TCP connections, and a Stress Test Mode for initiating connections to a specified server.

Features

  • Server Mode: Runs a simple TCP server that listens on a configurable port and responds with a predefined message to each incoming connection.
  • Stress Test Mode: Simultaneously initiates thousands of TCP connections to test the throughput and handling capacity of a TCP server.

Getting Started

Prerequisites

  • Go 1.17 or later

Installation

Clone the repository to your local machine:

git clone https://github.com/jash2105/NetCharger.git

Navigate to the project directory:

cd NetCharger

Usage

To start the tool in Server Mode:

go run net_charger.go listen

To start the tool in Stress Test Mode and connect to specified host(s):

go run net_charger.go <host1> <host2> ...

Replace <host1>, <host2>, etc., with the actual IP addresses or hostnames of the servers you want to test.

Building the Project

To build the project for deployment:

go build -o net_charger net_charger.go

This will generate an executable file named net_charger.

netcharger's People

Watchers

 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.