beego是一個基於golang的web框架,這裏記錄些使用中碰到的東西。php
輸出:golang
this.Ctx.Output.Write([]byte("test")) //這裏是做爲response直接輸出,這句以後流程會中斷,其後的代碼不會被執行web
50次解碼但不賦值json
php:qps=474框架
go:qps=243this
1次解碼code
php:qps=3580it
go:qps=5845ast
http://test1v.bbs.360safe.com/bench.php?ac=decodetest
http://10.108.90.13:8082/bench/jsondecode?n=50
http://10.108.90.13:8082/bench/jsondecodekv?n=50
https://journal.paul.querna.org/articles/2014/03/31/ffjson-faster-json-in-go/