Giter Site home page Giter Site logo

loadtest's Introduction

Load testing Telepathy and Async Tcp server

In this project I am load testing Telepathy and Async Tcp Server.

Methodology

The server was compiled with unity 2018.2.18f for linux 64bit headless.

To start a telepathy server:

./server.x86_64 Telepathy 9876

To start an async tcp server:

./server.x86_64 Async 9876

the clients were run using jmeter, in a separate computer going over wifi.

Both the server code and the jmeter test are included in this project.

An error is reported if a transaction takes more than 10 seconds or if it returns unexpected results

Results

1 thread

With a telepathy server I got this:

$ jmeter -n -t loadtest.jmx -JHOST=pc.local -JPORT=9876 -JTHREADS=1
summary =  20000 in 00:00:39 =  510.9/s Avg:     1 Min:     1 Max:   825 Err:     0 (0.00%)

With a single thread client, telepathy is able to process 510 messages per second. The slowest message took 0.8 seconds. CPU at 24 %

With an async TCP server I got this:

summary =  20000 in 00:00:49 =  407.8/s Avg:     2 Min:     1 Max:   218 Err:     0 (0.00%)

lower throughput. Cpu at 50-60%, but it had much better latency, the worst package took only 0.2 seconds.

50 threads

Telepathy:

$ jmeter -n -t loadtest.jmx -JHOST=pc.local -JPORT=9876 -JTHREADS=50
summary = 1000000 in 00:01:35 = 10571.8/s Avg:     4 Min:     1 Max:  1610 Err:     0 (0.00%)

CPU usage 130-150%.

Async TCP:

summary = 1000000 in 00:01:42 = 9832.3/s Avg:     4 Min:     1 Max:   417 Err:     0 (0.00%)

250% CPU

250 threads

Telepathy: ERROR

at 250 threads, Telepathy choke, it was not able to reply to any message

Async TCP

summary = 5000000 in 00:04:56 = 16868.8/s Avg:    14 Min:     1 Max:   293 Err:     0 (0.00%)

500 threads

Telepathy: ERROR

Async TCP:

summary = 5604554 in 00:05:35 = 16728.8/s Avg:    29 Min:     1 Max:  1100 Err:     0 (0.00%)

1000 threads

Telepathy: ERROR

Async TCP:

summary = 10670731 in 00:10:30 = 16942.7/s Avg:    58 Min:     2 Max:  2737 Err:     0 (0.00%)

loadtest's People

Contributors

paulpach avatar

Watchers

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