-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
af4a326
commit 479e38f
Showing
12 changed files
with
117 additions
and
79 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 |
---|---|---|
@@ -1,7 +1,4 @@ | ||
| | Req/sec | Trans/sec | Req/sec DIFF | Avg Latency | | ||
|----------------|---------|-----------|-------------|-----------| | ||
| shelf | 19788.91 | 4.81MB | +0.00% | 66.37 | | ||
| dart_frog (no_cli) | 22635.49 | 5.59MB | +14.38% | 48.16 | | ||
| serinus | 23610.69 | 5.29MB | +19.31% | 41.01 | | ||
| pharaoh | 28378.75 | 3.90MB | +43.41% | 36.48 | | ||
| dart_http | 28831.05 | 5.44MB | +45.69% | 33.74 | | ||
| Server | Req/sec | Trans/sec | Req/sec DIFF | Avg Latency | | ||
|:-|:-|:-|:-|:-| | ||
| serinus | 27003.96 | 6.05MB | +0.00% | 37.41 | | ||
| dart_http | 31069.12 | 5.87MB | +15.05% | 33.73 | |
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
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
## dart_frog (no_cli) | ||
### Requests per second | ||
Requests/sec: 22635.49 | ||
Transfer/sec: 5.59MB | ||
Requests/sec DIFF: +14.38% | ||
Requests/sec: 23851.66 | ||
Transfer/sec: 5.89MB | ||
Requests/sec DIFF: +10.18% | ||
### Latency | ||
Avg Latency: 48.16 | ||
Stdev Latency: 83.36 | ||
Max Latency: 1.1 | ||
Stdev Perc: 97.76 | ||
Avg Latency: 37.84 | ||
Stdev Latency: 18.89 | ||
Max Latency: 584.87 | ||
Stdev Perc: 98.75 | ||
### Req/Sec | ||
Rps Avg: 3.18 | ||
Rps Max: 4.02 | ||
Rps Stdev: 674.49 | ||
Rps Perc: 89.99 | ||
Rps Avg: 3.32 | ||
Rps Max: 4.45 | ||
Rps Stdev: 621.77 | ||
Rps Perc: 93.78 |
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
## dart_http | ||
### Requests per second | ||
Requests/sec: 28831.05 | ||
Transfer/sec: 5.44MB | ||
Requests/sec DIFF: +45.69% | ||
Requests/sec: 31069.12 | ||
Transfer/sec: 5.87MB | ||
Requests/sec DIFF: +15.05% | ||
### Latency | ||
Avg Latency: 33.74 | ||
Stdev Latency: 27.64 | ||
Max Latency: 773.87 | ||
Stdev Perc: 96.36 | ||
Avg Latency: 33.73 | ||
Stdev Latency: 49.24 | ||
Max Latency: 863.21 | ||
Stdev Perc: 97.54 | ||
### Req/Sec | ||
Rps Avg: 3.9 | ||
Rps Max: 5.35 | ||
Rps Stdev: 1.21 | ||
Rps Perc: 87.13 | ||
Rps Avg: 4.08 | ||
Rps Max: 5.68 | ||
Rps Stdev: 1.39 | ||
Rps Perc: 86.72 |
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
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,24 @@ | ||
import 'package:benchmarks/shared/serinus_benchmark.dart'; | ||
import 'package:shelf/shelf.dart'; | ||
import 'package:shelf/shelf_io.dart'; | ||
import 'package:shelf_router/shelf_router.dart'; | ||
|
||
|
||
class ShelfRouterAppBenchmark extends SerinusBenchmark { | ||
// ignore: prefer_typing_uninitialized_variables | ||
ShelfRouterAppBenchmark() : super(name: 'Shelf Router'); | ||
|
||
var server; | ||
|
||
@override | ||
Future<void> setup() async { | ||
var router = Router(); | ||
router.get('/', (Request request) => Response.ok('echo!')); | ||
server = await serve(router.call, 'localhost', 3000); | ||
} | ||
|
||
@override | ||
Future<void> teardown() async { | ||
await server.close(force: true); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
## pharaoh | ||
### Requests per second | ||
Requests/sec: 28378.75 | ||
Transfer/sec: 3.90MB | ||
Requests/sec DIFF: +43.41% | ||
Requests/sec: 27134.42 | ||
Transfer/sec: 3.73MB | ||
Requests/sec DIFF: +31.73% | ||
### Latency | ||
Avg Latency: 36.48 | ||
Stdev Latency: 48.27 | ||
Max Latency: 976.6 | ||
Stdev Perc: 98.52 | ||
Avg Latency: 40.86 | ||
Stdev Latency: 65.61 | ||
Max Latency: 1.01 | ||
Stdev Perc: 97.92 | ||
### Req/Sec | ||
Rps Avg: 3.82 | ||
Rps Max: 4.78 | ||
Rps Stdev: 650.81 | ||
Rps Perc: 94.94 | ||
Rps Avg: 3.5 | ||
Rps Max: 4.57 | ||
Rps Stdev: 0.99 | ||
Rps Perc: 91.56 |
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
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
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
## serinus | ||
### Requests per second | ||
Requests/sec: 23610.69 | ||
Transfer/sec: 5.29MB | ||
Requests/sec DIFF: +19.31% | ||
Requests/sec: 27003.96 | ||
Transfer/sec: 6.05MB | ||
Requests/sec DIFF: +0.00% | ||
### Latency | ||
Avg Latency: 41.01 | ||
Stdev Latency: 55.97 | ||
Max Latency: 1.09 | ||
Stdev Perc: 98.39 | ||
Avg Latency: 37.41 | ||
Stdev Latency: 30.63 | ||
Max Latency: 927.88 | ||
Stdev Perc: 97.95 | ||
### Req/Sec | ||
Rps Avg: 3.33 | ||
Rps Max: 4.0 | ||
Rps Stdev: 767.33 | ||
Rps Perc: 91.34 | ||
Rps Avg: 3.4 | ||
Rps Max: 4.43 | ||
Rps Stdev: 0.87 | ||
Rps Perc: 89.5 |
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
## shelf | ||
### Requests per second | ||
Requests/sec: 19788.91 | ||
Transfer/sec: 4.81MB | ||
Requests/sec: 21647.62 | ||
Transfer/sec: 5.26MB | ||
Requests/sec DIFF: +0.00% | ||
### Latency | ||
Avg Latency: 66.37 | ||
Stdev Latency: 103.6 | ||
Max Latency: 1.14 | ||
Stdev Perc: 92.66 | ||
Avg Latency: 41.81 | ||
Stdev Latency: 22.62 | ||
Max Latency: 677.47 | ||
Stdev Perc: 94.04 | ||
### Req/Sec | ||
Rps Avg: 2.5 | ||
Rps Max: 3.7 | ||
Rps Stdev: 1.22 | ||
Rps Perc: 78.22 | ||
Rps Avg: 3.01 | ||
Rps Max: 3.71 | ||
Rps Stdev: 0.99 | ||
Rps Perc: 83.33 |
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,15 @@ | ||
## shelf_router | ||
### Requests per second | ||
Requests/sec: 22588.86 | ||
Transfer/sec: 5.49MB | ||
Requests/sec DIFF: +9.66% | ||
### Latency | ||
Avg Latency: 40.69 | ||
Stdev Latency: 22.82 | ||
Max Latency: 880.13 | ||
Stdev Perc: 99.04 | ||
### Req/Sec | ||
Rps Avg: 3.1 | ||
Rps Max: 3.7 | ||
Rps Stdev: 565.5 | ||
Rps Perc: 94.14 |