Coder Social home page Coder Social logo

reactivej's Introduction

ReactiveJ

ReactiveJ is a simple library (maybe a “nano” framework) to help us building high-performance servers. It’s build on top of the Java NIO library and applying the Reactor Pattern. But by now it’s not a serious work, it’s just a kidding with evented I/O. Yes, it’s just a kidding to learn some concepts.

Well I hope it be fun to you too. :D

Benchmark

This first benchmark was done without tunning the JVM.

leandro@codezone ~/Projects/java/reactivej/bin 
$ java samples.codezone.reactivej.tcp.echoserver.EchoServer
Running a TCP server for test

leandro@codezone ~/Projects/java/reactivej/bin 
$ ab -n 10000 -c 25 http://192.168.0.103:8888/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 192.168.0.103 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests

Server Software:        ReactiveJ/0.1
Server Hostname:        192.168.0.103
Server Port:            8888

Document Path:          /
Document Length:        1028 bytes

Concurrency Level:      25
Time taken for tests:   1.195 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Non-2xx responses:      10001
Total transferred:      11811181 bytes
HTML transferred:       10281028 bytes
Requests per second:    8371.12 [#/sec] (mean)
Time per request:       2.986 [ms] (mean)
Time per request:       0.119 [ms] (mean, across all concurrent requests)
Transfer rate:          9655.55 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   0.4      1       9
Processing:     0    2   0.9      2      11
Waiting:        0    2   0.9      2      11
Total:          1    3   0.8      3      12

Percentage of the requests served within a certain time (ms)
  50%      3
  66%      3
  75%      3
  80%      3
  90%      3
  95%      4
  98%      4
  99%      6
 100%     12 (longest request)

Author

reactivej's People

Contributors

leandrosilva avatar

Stargazers

 avatar

Watchers

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