Coder Social home page Coder Social logo

kotlin-web-hello-world's Introduction

Kotlin Web Frameworks Hello World

This project shows how to do a web-based "Hello World!" with Kotlin in combination with various JVM-based web frameworks.

Pull requests for new frameworks are welcome.

Hello World Benchmarking

While a Hello World! is not a realistic production operation, it can be useful to benchmark it to get a basic idea of how well the framework operates, without complicating matters with other work. The results of this will essentially be a best case throughput and latency scenario for the benchmarked system.

Example load test with wrk:

wrk -t6 -c200 -d30s --latency --timeout 2s http://localhost:8080/

will produce output like:

Running 30s test @ http://localhost:8080/
  6 threads and 200 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     3.84ms   12.33ms 330.10ms   96.91%
    Req/Sec    17.76k     5.01k   46.68k    73.58%
  Latency Distribution
     50%    1.32ms
     75%    3.18ms
     90%    5.90ms
     99%   66.79ms
  3180198 requests in 30.10s, 536.82MB read
Requests/sec: 105663.06
Transfer/sec:     17.84MB
~

Useful References

While not every framework here uses Jetty, the following reference may be useful for tuning your network stack:

kotlin-web-hello-world's People

Contributors

rocketraman avatar cypressious avatar orangy avatar gzoritchak 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.