GithubHelp home page GithubHelp logo

qkgo / sio-cli Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 39 KB

SIO-CLI ( SocketIO-CLI ) is Efficient and easy-to-use Socket.IO v4 performance testing CLI for benchmarking and diagnostics

License: GNU General Public License v2.0

Rust 100.00%
socket-io cli sio-client socket-io-rust socket-io-client socket-io-tester socket-io-cli engineio-client socket-io-v4 engineio

sio-cli's Introduction

SIO-CLI ( Socket.IO Performance Test CLI )

CI GitHub release

This is a command-line interface (CLI) for testing the performance of a Socket.IO v4 server using the rust-socketio library. This tool measures the time taken for handshake dialing, onConnect connection, and returns the HTTP status code and header lists.

Requirements

  • Server: Only Socket.IO v4+ is supported because rust-socketio is the only dependency and that's it.
  • libssl.3 is requried, Recommend ubuntu20+

Todos

Returns the time taken for handshake dialin and http status code and header lists.

Prerequisites

Building the CLI

To build the CLI, simply run:

cargo build --release

This will create the execution binary in the target/release directory.

Usage To run the performance test, use the following command, replacing <test_path> with the path to your test server:

./target/release/sio_cli <test_path>

The CLI will output the handshake dialing time, onConnect connection time, HTTP status code, and header lists.

GitHub Actions

This repository includes a GitHub Actions workflow for automatically building the project on push and pull requests to the main or master branch (choose based on your default branch name). The workflow configuration can be found in the .github/workflows/build.yml file.

When the workflow is triggered, you can view the build process under the "Actions" tab of your GitHub repository. After a successful build, the size of the build artifact will be displayed in the workflow logs.

License

This project is licensed under the MIT License.

Refs:

sio-cli's People

Stargazers

 avatar  avatar

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.