mirror of
https://github.com/kataras/iris.git
synced 2026-01-08 04:21:57 +00:00
☕ add a dependency-injection examples folder for the next release and some improvements
Former-commit-id: 040168afb7caf808618f7da5e68ae8eb01cb7170
This commit is contained in:
@@ -14,10 +14,17 @@ Internal selected benchmarks between modified features across different versions
|
||||
|
||||
Measures handler factory time.
|
||||
|
||||
```sh
|
||||
$ cd v12.1.x
|
||||
$ go test -run=NONE --bench=. -count=5 --benchmem > di_test.txt
|
||||
$ cd ../vNext
|
||||
$ go test -run=NONE --bench=. -count=5 --benchmem > di_test.txt
|
||||
```
|
||||
|
||||
| Name | Ops | Ns/op | B/op | Allocs/op |
|
||||
|---------|:------|:--------|:--------|----|
|
||||
| vNext | 181726 | 6631 | 1544 | 17 |
|
||||
| v12.1.x | 96001 | 12604 | 976 | 26 |
|
||||
| vNext | 184512 | 6607 | 1544 | 17 |
|
||||
| v12.1.x | 95974 | 12653 | 976 | 26 |
|
||||
|
||||
It accepts a dynamic path parameter and a JSON request. It returns a JSON response. Fires 500000 requests with 125 concurrent connections.
|
||||
|
||||
|
||||
Binary file not shown.
@@ -1,8 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/kataras/iris/v12"
|
||||
)
|
||||
import "github.com/kataras/iris/v12"
|
||||
|
||||
type (
|
||||
testInput struct {
|
||||
|
||||
Binary file not shown.
@@ -4,4 +4,7 @@ go 1.14
|
||||
|
||||
replace github.com/kataras/iris/v12 => C:/mygopath/src/github.com/kataras/iris
|
||||
|
||||
require github.com/kataras/iris/v12 v12.1.8
|
||||
require (
|
||||
github.com/kataras/iris/v12 v12.1.8
|
||||
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user