Giter VIP home page Giter VIP logo

catberry-benchmarks's Introduction

Benchmark for Catberry's server-side rendering

Description

For now, it's just a comparison with bare express application which uses Jade template engine.

Methodology

The ApacheBench, Version 2.3 <$Revision: 1604373 $> is used for testing:

  • Number of requests is 3000
  • Concurrency level is 10

Both applications should:

  • Render almost identical HTML (except Catberry renders the extra symbol in style tag).
  • Use the same set of data generated by ./generate-data.js script and saved as ./data.json
  • Have configurations with turned off log messages for every request
  • Have last versions of packages (./setup.sh to install all dependencies)

Results

You can find the results in the ./results directory which are received on such configuration:

node --version
v5.8.0

Here are the main numbers:

Catberry

Requests per second:    354.02 [#/sec] (mean)
Time per request:       28.247 [ms] (mean)
Time per request:       2.825 [ms] (mean, across all concurrent requests)
Transfer rate:          641.66 [Kbytes/sec] received

Express

Requests per second:    154.88 [#/sec] (mean)
Time per request:       64.566 [ms] (mean)
Time per request:       6.457 [ms] (mean, across all concurrent requests)
Transfer rate:          289.49 [Kbytes/sec] received

Conclusion

Despite on Catberry's stream-based and component-based rendering engine which has overhead related to usage of stream transformations with HTML parsing it has better performance than a bare Express with the same template engine at least on small size of data.

Contributing

Feel free to submit a PR with your benchmark built the same way.

catberry-benchmarks's People

Contributors

fornever avatar rdner avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

fornever

catberry-benchmarks's Issues

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.