2016-05-26

Iris Web Framework

Shock! That was what I feel when see Iris benchmark '__'), after looking at the code, ah no wonder, it uses fastest router (fasthttp), that uses almost zero allocation per request.

These graphs stolen from SmallNest's go framework benchmark.









As usual, static request means nothing, dynamic request that uses database are the real bottleneck :3
Btw Iris has book for those who are interested. For those who doesn't need full framework, you can use the fasthttprouter.

EDIT: before you use Iris because of performance, see links on the comments below: this by julienschmidt (one that create httprouter) and this by dlsniper (one that initialize go-lang-idea-plugin project).

 What's the alternative? you can use valyala's FastHttp (only router), Arteugo, or Fiber (full framework, really similar to ExpressJS)

3 comments :

  1. Nice article, you will see more and more features coming also!


    Cheers :)


    ¬ "kataras

    ReplyDelete
  2. Great post, but(in the light of latest news about iris) this benchmarks are fake.
    See this discussion https://github.com/julienschmidt/go-http-routing-benchmark/pull/57#issuecomment-201467313

    Also some people think that iris "is a toxic framework", this post raises many questions about the iris author http://www.florinpatan.ro/2016/10/why-you-should-not-use-iris-for-your-go.html

    ReplyDelete
    Replies
    1. @op3ns0urc3rant hi, thanks for the spot'on, i'll update the blog :3

      Delete

THINK: is it True? is it Helpful? is it Inspiring? is it Necessary? is it Kind?