Sign inSign up

jerob/fasthttp-onepage

By jerob

•Updated almost 6 years ago

HTTP Server for only one page.

Image
0

351

jerob/fasthttp-onepage repository overview

⁠fasthttp-onepage

Webserver for one page only.

A great way to save bandwidth.

Test with AB ( http://httpd.apache.org/docs/current/en/programs/ab.html⁠ )

Concurrency Level:      20
Complete requests:      5000

⁠FastHTTP-onepage :

Command : docker run -p 8000:80 -v $($pwd)/file:/file:ro -d jerob/fasthttp-onepage
Time taken for tests:   2.717 seconds
Total transferred:      1455000 bytes

⁠Nginx :

Command : docker run -p 8000:80 -v $($pwd)/file:/usr/share/nginx/html/index.html:ro -d nginx
Time taken for tests:   7.480 seconds
Total transferred:      1850000 bytes

⁠Apache:

Command : docker run -dit --name my-apache-app -p 8000:80 -v $($pwd)/file:/usr/local/apache2/htdocs/index.html:ro httpd:2.4
Time taken for tests:   4.382 seconds
Total transferred:      1915000 bytes

Tag summary

Content type

Image

Digest

Size

1.7 MB

Last updated

almost 6 years ago

docker pull jerob/fasthttp-onepage