amberframework / amber

A Crystal web framework that makes building applications fast, simple, and enjoyable. Get started with quick prototyping, less bugs, and blazing fast performance.
https://amberframework.org
MIT License
2.57k stars 206 forks source link

Techempower Benchmark 19 did not complete #1226

Closed eliasjpr closed 1 year ago

eliasjpr commented 4 years ago

Description

The benchmark did not complete see https://www.techempower.com/benchmarks/ at the bottom of the list.

It would be great to get this running again for the next round.

AndiLavera commented 4 years ago
name: amber
version: 0.1.0

authors:
  - Amber Team and Contributors <amberframework.org>

license: MIT

targets:
  amber:
    main: src/amber.cr

dependencies:
  amber:
    github: amberframework/amber
    version: 0.9.0

  granite:
    github: amberframework/granite
    version: 0.13.1

Here is the shard file for the amber project they have in the repo. Amber 0.9.0...

Just generate a new project & open a PR? I can get that done if that's how to do it.

w-A-L-L-e commented 3 years ago

Indeed, it promises to be really fast this time if benchmarks get fixed. I've tested a similar setup (my own application) for starlette vs amber. Amber beat it by being at least 4 times faster (it did slow down a bit compared to just serving static page but not as much as it did in the past, a regular static page was 6000req/sec). So an async framework that is starlette+sqlalchemy vs amber+granite for simplicity just a simple query on sqlite: starlette tops out around 800req/sec on my server (cheap hetzner 8 core, 16gb ram), amber was zooming around +4000req/second on same database, same query. flask was below 400 and django (mvc more like amber) is even slower than flask. Sinatra around 1500-2000. So yes if I see in the list where it could be going if I interpolate to the results on the techempower power horse machines its gonna be really fast...