Skip to content

analogweb/analogweb-scala-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Analogweb Framework Scala Examples

Heroku

Quick Start

Analogweb is a tiny HTTP oriented web framework.

Installing Scala and sbt then run.

$ sbt
...
sbt:analogweb-scala-example> reStart

And you will get

$ curl localhost:8000/json
$ {"message":"Hello, World!"}

Here is a third run of benchmark with wrk and Analogweb + Netty + Circe on Mid-2014 MB Pro (2.9 GHz Intel Core i5 w/ 8G RAM).

$ wrk -c160 -t40 http://localhost:8000/json -v --latency
wrk 4.0.0 [kqueue] Copyright (C) 2012 Will Glozer
Running 10s test @ http://localhost:8000/json
  40 threads and 160 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     9.35ms   17.35ms 131.86ms   90.53%
    Req/Sec     1.05k   405.65     3.08k    71.87%
  Latency Distribution
     50%    2.47ms
     75%    7.50ms
     90%   25.26ms
     99%   92.32ms
  419888 requests in 10.10s, 70.47MB read
Requests/sec:  41561.38
Transfer/sec:      6.98MB

About

Examples for analogweb-scala

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages