-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b6fe55
commit 49fa750
Showing
2 changed files
with
46 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Performance | ||
|
||
The **Lennarb** is very fast. The following benchmarks were performed on a MacBook Pro (Retina, 13-inch, Early 2013) with 2,7 GHz Intel Core i7 and 8 GB 1867 MHz DDR3. Based on [jeremyevans/r10k](https://github.com/jeremyevans/r10k) using the following [template build](static/r10k/build/lennarb.rb). | ||
|
||
All tests are performed using the **Ruby 3.3.0** | ||
|
||
### Requests per second (RPS) - Dinamic routes | ||
|
||
<p> | ||
<img src="static/rps.png" alt="Benchmarks" width="100%"> | ||
</p> | ||
|
||
### Memory usage | ||
|
||
<p> | ||
<img src="static/memory.png" alt="Benchmarks" width="100%"> | ||
</p> | ||
|
||
### Runtime startup | ||
|
||
<p> | ||
<img src="static/runtime_with_startup.png" alt="Benchmarks" width="100%"> | ||
</p> | ||
|
||
## Best numbers | ||
|
||
| Framework | RPS | Memory usage | Runtime startup | | ||
| ---------- | --- | ------------ | --------------- | | ||
| Lennarb | 1 | 1 | 1 | | ||
| Roda | 2 | 2 | 2 | | ||
| Syro | 3 | 3 | 3 | | ||
| Hanami-API | 5 | 5 | 5 | | ||
| Sinatra | 6 | 6 | 6 | | ||
| Rails | 7 | 6 | 6 | | ||
|
||
## Conclusion | ||
|
||
These numbers are just a small reference, **Lennarb** is not a framework, it is a router. In my opinion, **Roda** is the best router for Ruby because it has many interesting features, such as a middleware manager, and very good development performance. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters