GithubHelp home page GithubHelp logo

purplepapa / vertx-react-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from engagingspaces/vertx-react-example

0.0 2.0 0.0 183 KB

Simple test of using Vert.x and React for server-side rendering

License: MIT License

Java 0.38% JavaScript 99.40% CSS 0.14% HTML 0.08%

vertx-react-example's Introduction

Vertx React Example

This is a simple proof-of-concept testing the use of Vert.x for React server-side rendering. It was adapted from https://github.com/kucharzyk/java-ssr-benchmark and also uses Webpack for bundling.

To run the project: gradle clean build

and then: gradle start

Website is at: http://localhost:8999

To benchmark with Apache HTTP server benchmark tool, use: ab -n 10000 -c150 http://localhost:8999/web

And get something like this:

This is ApacheBench, Version 2.3 <$Revision: 1638069 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (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:
Server Hostname:        localhost
Server Port:            8999

Document Path:          /web
Document Length:        689 bytes

Concurrency Level:      150
Time taken for tests:   1.936 seconds
Complete requests:      10000
Failed requests:        0
Total transferred:      7290000 bytes
HTML transferred:       6890000 bytes
Requests per second:    5164.18 [#/sec] (mean)
Time per request:       29.046 [ms] (mean)
Time per request:       0.194 [ms] (mean, across all concurrent requests)
Transfer rate:          3676.46 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.9      0      11
Processing:     3   29   4.0     27      55
Waiting:        3   29   4.0     27      55
Total:         13   29   4.0     27      57

Percentage of the requests served within a certain time (ms)
  50%     27
  66%     29
  75%     30
  80%     33
  90%     34
  95%     35
  98%     36
  99%     45
 100%     57 (longest request)

vertx-react-example's People

Contributors

aschrijver avatar

Watchers

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