Giter Club home page Giter Club logo

rust-at-go's Introduction

It's possible the JSON serialization in rust may sway results unfavourably towards go.

Rust:

siege -c 50 -t1 http://localhost:1337

Lifting the server siege...
Transactions:		       32824 hits
Availability:		       99.86 %
Elapsed time:		       60.96 secs
Data transferred:	        0.56 MB
Response time:		        0.02 secs
Transaction rate:	      538.45 trans/sec
Throughput:		        0.01 MB/sec
Concurrency:		       12.71
Successful transactions:       32824
Failed transactions:	          45
Longest transaction:	       19.51
Shortest transaction:	        0.00

siege -c 50 -t5 http://localhost:1337

Lifting the server siege...
Transactions:		      163929 hits
Availability:		       99.82 %
Elapsed time:		      300.18 secs
Data transferred:	        2.81 MB
Response time:		        0.04 secs
Transaction rate:	      546.10 trans/sec
Throughput:		        0.01 MB/sec
Concurrency:		       24.53
Successful transactions:      163929
Failed transactions:	         293
Longest transaction:	       20.66
Shortest transaction:	        0.00

siege -c 10 -t1 http://localhost:1337

Lifting the server siege...
Transactions:		       32744 hits
Availability:		       99.97 %
Elapsed time:		       60.82 secs
Data transferred:	        0.56 MB
Response time:		        0.00 secs
Transaction rate:	      538.38 trans/sec
Throughput:		        0.01 MB/sec
Concurrency:		        2.57
Successful transactions:       32744
Failed transactions:	           9
Longest transaction:	       19.51
Shortest transaction:	        0.00


Go

siege -c 50 -t1 http://localhost:1338

Lifting the server siege...
Transactions:		       32848 hits
Availability:		       99.87 %
Elapsed time:		       60.30 secs
Data transferred:	        0.56 MB
Response time:		        0.03 secs
Transaction rate:	      544.74 trans/sec
Throughput:		        0.01 MB/sec
Concurrency:		       17.28
Successful transactions:       32848
Failed transactions:	          43
Longest transaction:	       19.51
Shortest transaction:	        0.00

siege -c 50 -t5 http://localhost:1338

Lifting the server siege...
Transactions:		      163975 hits
Availability:		       99.89 %
Elapsed time:		      300.46 secs
Data transferred:	        2.81 MB
Response time:		        0.06 secs
Transaction rate:	      545.75 trans/sec
Throughput:		        0.01 MB/sec
Concurrency:		       34.22
Successful transactions:      163975
Failed transactions:	         175
Longest transaction:	       21.18
Shortest transaction:	        0.00

siege -c 10 -t1 http://localhost:1338

Lifting the server siege...
Transactions:		       32754 hits
Availability:		       99.98 %
Elapsed time:		       60.05 secs
Data transferred:	        0.56 MB
Response time:		        0.01 secs
Transaction rate:	      545.45 trans/sec
Throughput:		        0.01 MB/sec
Concurrency:		        4.69
Successful transactions:       32754
Failed transactions:	           7
Longest transaction:	       19.52
Shortest transaction:	        0.00

rust-at-go's People

Contributors

jbrough avatar

Stargazers

Sushil avatar

Watchers

 avatar

rust-at-go's Issues

Wrong tool for the job

Siege doesn't tell you anything about either of these examples because it cannot remotely fully saturate them, and it doesn't produce a realistic workload. Both servers are capable of 3 orders of magnitude more req/s than siege generated.

I suspect I'd need to tweak the wrk parameters (and possibly use a dedicated benchmark client machine and server) to find the performance ceiling for both, and what happens when they are overloaded.

In my experience Rust and Elixir/Erlang both have more desirable characteristics when overloaded, than go does.

image

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.