onyxframework / http

An opinionated framework for scalable web 🌎
https://onyxframework.com/http
MIT License
142 stars 11 forks source link

Benchmarks #36

Closed s0kil closed 5 years ago

s0kil commented 6 years ago

Are there any benchmarks for Prism?

vladfaust commented 6 years ago

Hi @DanielSokil, do you need benchmarks with other Crystal frameworks or with other languages?

s0kil commented 6 years ago

@vladfaust Amber would be great!

vladfaust commented 6 years ago

@DanielSokil nah, newbies The truth is that almost every Crystal framework is super fast. The difference is in amount of additional features. E.g. Prism has params extraction and typecasting and authentication module. They take time to proceed the request, but this time is so small you wouldn't even notice. This is beautiful - Crystal allows to choose projects based on their functionality, not on drastic speed differences like Rails vs Sinatra in Ruby :nerd_face:

You can see overall web frameworks benchmarks @ https://github.com/the-benchmarker/web-frameworks. Beware of that Crystal results are outdated and slow speeds are results of performance issues in the latest versions. But you can see that all Crystal frameworks (excluding router.cr, which is not really a framework) have almost the same performance.

However, I will think about adding comparison.

s0kil commented 6 years ago

@vladfaust That's a good point, there won't be a huge performance difference.

vladfaust commented 6 years ago

Please see https://github.com/the-benchmarker/web-frameworks/issues/184#issuecomment-416588842

s0kil commented 6 years ago

Thanks! As someone already mentioned would be great to see http://realworld.io/.

vladfaust commented 6 years ago

@DanielSokil it's already here https://github.com/gothinkster/realworld/issues/223.

You see, nobody gives a F :man_shrugging:

s0kil commented 6 years ago

@vladfaust Thanks for your effort.

vladfaust commented 5 years ago

The framework is currently #1 among all Crystal projects according to the @the-benchmarker/web-frameworks 🎉