{"action":"closed","issue":{"url":"https://api.github.com/repos/channelcat/sanic/issues/207","repository_url":"https://api.github.com/repos/channelcat/sanic","labels_url":"https://api.github.com/repos/channelcat/sanic/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/channelcat/sanic/issues/207/comments","events_url":"https://api.github.com/repos/channelcat/sanic/issues/207/events","html_url":"https://github.com/channelcat/sanic/issues/207","id":197135558,"number":207,"title":"Benchmarks are doing different things. ","user":{"login":"v3ss0n","id":419606,"avatar_url":"https://avatars.githubusercontent.com/u/419606?v=3","gravatar_id":"","url":"https://api.github.com/users/v3ss0n","html_url":"https://github.com/v3ss0n","followers_url":"https://api.github.com/users/v3ss0n/followers","following_url":"https://api.github.com/users/v3ss0n/following{/other_user}","gists_url":"https://api.github.com/users/v3ss0n/gists{/gist_id}","starred_url":"https://api.github.com/users/v3ss0n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v3ss0n/subscriptions","organizations_url":"https://api.github.com/users/v3ss0n/orgs","repos_url":"https://api.github.com/users/v3ss0n/repos","events_url":"https://api.github.com/users/v3ss0n/events{/privacy}","received_events_url":"https://api.github.com/users/v3ss0n/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-22T09:55:37Z","updated_at":"2016-12-25T03:00:45Z","closed_at":"2016-12-25T03:00:45Z","body":"If you want a legitimate benchmark  , they all should do the same thing:\r\n\r\n```python\r\nimport ujson\r\nfrom tornado import ioloop, web\r\n\r\n\r\nclass MainHandler(web.RequestHandler):\r\n    def get(self):\r\n        self.write(ujson.dumps({'test': True}))\r\n\r\n\r\napp = web.Application([\r\n    (r'/', MainHandler)\r\n],  debug=False,\r\n    compress_response=False,\r\n    static_hash_cache=True\r\n)\r\n\r\napp.listen(8000)\r\nioloop.IOLoop.current().start()\r\n```\r\nTornado is using ujson and dumping json \r\n\r\ncompare to golang which is just doing print\r\n\r\n```\r\npackage main\r\n\r\nimport (\r\n    \"fmt\"\r\n    \"os\"\r\n    \"net/http\"\r\n)\r\n\r\nfunc handler(w http.ResponseWriter, r *http.Request) {\r\n    fmt.Fprintf(w, \"Hi there, I love %s!\", r.URL.Path[1:])\r\n}\r\n\r\nfunc main() {\r\n    http.HandleFunc(\"/\", handler)\r\n    http.ListenAndServe(\":\" + os.Args[1], nil)\r\n}\r\n```"}}
{"actor":{"display_login":"seemethere"}}