mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
b71d4032e6
relative to: https://github.com/kataras/iris/issues/1285 Former-commit-id: c20530cd67144ab8d1c9325807fe5c13268fa428
19 lines
389 B
Go
19 lines
389 B
Go
package main
|
|
|
|
import (
|
|
"github.com/kataras/iris/_benchmarks/iris-mvc/controllers"
|
|
|
|
"github.com/kataras/iris"
|
|
"github.com/kataras/iris/mvc"
|
|
)
|
|
|
|
func main() {
|
|
app := iris.New()
|
|
mvc.New(app.Party("/api/values/{id}")).
|
|
Handle(new(controllers.ValuesController))
|
|
|
|
app.Run(iris.Addr(":5000"))
|
|
}
|
|
|
|
// +2MB/s faster than the previous implementation, 0.4MB/s difference from the raw handlers.
|