Giter Club home page Giter Club logo

ws's Introduction

F# WebSocket Server

ws Actions Status NuGet version (ws)

High-performance, idiomatic, zero-dependency, Async-based, WebSocket server with supervision and ticker in 200 LOC.

Build

$ dotnet build ws.fsproj

Run

$ bin/Debug/net5.0/ws
N2O/F# WebSocket Server 1.0
[smp] [cpu:4] [io:4]

Connect

$ wscat -c 127.0.0.1:1900/n2o
connected (press CTRL+C to quit)
> ECHO
< ECHO

Benchmark

$ tcpkali -c4 --ws --message "PING" \
  --latency-first-byte -r50m 127.0.0.1:1900/n2o \
  --latency-percentiles 50,100

MacBook Air 2018

Total data sent:     15.6 MiB (16390020 bytes)
Total data received: 8.3 MiB (8721138 bytes)
Bandwidth per channel: 10.038โ‡… Mbps (1254.8 kBps)
Aggregate bandwidth: 6.973โ†“, 13.104โ†‘ Mbps
Packet rate estimate: 70377.7โ†“, 1141.7โ†‘ (1โ†“, 17โ†‘ TCP MSS/op)
First byte latency at percentiles: 32.5/46.0 ms (50/100%)
Test duration: 10.006 s.

Notes

Credits

  • Igor Gorodetsky
  • Maxim Sokhatsky
  • Siegmentation Fault

ws's People

Contributors

5ht avatar forked-from-1kasper avatar igorgo 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.