markojaadam / cython-lwan-fibo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cython-lwan-fibo

A high-performant simple multicore cython-powered HTTP server for computing nth element of Fibonacci series

Requirements

  • python3.6+
  • cython
  • gcc 9+
  • libgmp-dev
  • zlib1g-dev
  • lwan (can be installed via install_lwan.sh)

Installation steps

  1. Install dependencies
  2. mkdir wwwroot
  3. make run

Usage

Note: accepts input up to 50000!

$ curl -l http://localhost:8080/fib?n=50
55

Testing

  1. Deploy server
  2. check if deploy URL matches in test.py to the deployed location
  3. run python3 test.py

About


Languages

Language:Python 87.9%Language:Shell 8.7%Language:Makefile 3.5%