Giter Club home page Giter Club logo

rust-http-queue-lite's Introduction

SYNOPSIS

[bash]# http-queue-lite 127.0.0.1 4321
HTTP Queue Lite Started.
[bash]# curl http://127.0.0.1:4321/get
queue empty
[bash]# curl http://127.0.0.1:4321/add?task1
added ok
[bash]# curl http://127.0.0.1:4321/add?task2
added ok
[bash]# curl http://127.0.0.1:4321/get
task1
[bash]# curl http://127.0.0.1:4321/get
task2

INSTALL

curl -s http://static.rust-lang.org/rustup.sh | sh
wget https://github.com/chengang/rust-http-queue-lite/archive/1.1.tar.gz
tar xvf 1.1.tar.gz
cd rust-http-queue-lite-1.1/
cargo build --release
install target/release/http-queue-lite /usr/sbin/

USAGE

#http-queue-lite <listen_ip> <listen_port>

#example:
setsid http-queue-lite 127.0.0.1 4321 &

PERFORMANCE

at Intel(R) Xeon(R) CPU E5-2630 v2 @ 2.60GHz & 32G MEM

[bash]# siege -b -c 300 -r 300 "http://127.0.0.1:4321/add?task1"
Transactions:          90000 hits
Availability:         100.00 %
Elapsed time:          15.62 secs
Data transferred:         0.86 MB
Response time:            0.05 secs
Transaction rate:      5761.84 trans/sec
Throughput:           0.05 MB/sec
Concurrency:          298.49
Successful transactions:       90000
Failed transactions:             0
Longest transaction:          0.09
Shortest transaction:         0.00

[bash]# siege -b -c 300 -r 300 "http://127.0.0.1:4321/get"
Transactions:          90000 hits
Availability:         100.00 %
Elapsed time:           6.64 secs
Data transferred:         0.60 MB
Response time:            0.02 secs
Transaction rate:     13554.22 trans/sec
Throughput:           0.09 MB/sec
Concurrency:          297.91
Successful transactions:       90000
Failed transactions:             0
Longest transaction:          0.03
Shortest transaction:         0.00

rust-http-queue-lite's People

Contributors

chengang 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.