Giter Club home page Giter Club logo

frank's Introduction

For a maintained version of a microframework inspired in sinatra use Kemal

frank

This is a proof-of-concept Sinatra clone for Crystal.

Status

Basic get, put, post and head routes can be matched, and request parameters can be obtained. We are still missing a lot!

frank's People

Contributors

acrogenesis avatar waj avatar zamith avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

frank's Issues

LICENSE

Should add a license...

Maybe ISC?

router performance observation

When number of routes increase, router performance drops linearly (still amazing, though : ).

Generate routes.

# ruby
s = (1..1000).to_a.map { |e| %Q(get "/#{e}" { "hello" } ) }.join("\n")
File.write('frank_router_performance.cr', s)

Run the app.

Test performace

 wrk -c100 -t 2 -d 10s http://127.0.0.1:3000/1
 wrk -c100 -t 2 -d 10s http://127.0.0.1:3000/100
 wrk -c100 -t 2 -d 10s http://127.0.0.1:3000/500
 wrk -c100 -t 2 -d 10s http://127.0.0.1:3000/1000

Linear drop of performance. Because of @routes = [] of Route ?

I don't think it's an issue in production, most app only have several routes.

Response times

Just noticed that frank does not show the response times in the log. It would be nice if it did, don't you think so?

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.