{"action":"closed","issue":{"url":"https://api.github.com/repos/thibaultCha/lua-resty-jit-uuid/issues/5","repository_url":"https://api.github.com/repos/thibaultCha/lua-resty-jit-uuid","labels_url":"https://api.github.com/repos/thibaultCha/lua-resty-jit-uuid/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/thibaultCha/lua-resty-jit-uuid/issues/5/comments","events_url":"https://api.github.com/repos/thibaultCha/lua-resty-jit-uuid/issues/5/events","html_url":"https://github.com/thibaultCha/lua-resty-jit-uuid/issues/5","id":144116157,"number":5,"title":"Performance comparision","user":{"login":"rohitjoshi","id":1570798,"avatar_url":"https://avatars.githubusercontent.com/u/1570798?v=3","gravatar_id":"","url":"https://api.github.com/users/rohitjoshi","html_url":"https://github.com/rohitjoshi","followers_url":"https://api.github.com/users/rohitjoshi/followers","following_url":"https://api.github.com/users/rohitjoshi/following{/other_user}","gists_url":"https://api.github.com/users/rohitjoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/rohitjoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohitjoshi/subscriptions","organizations_url":"https://api.github.com/users/rohitjoshi/orgs","repos_url":"https://api.github.com/users/rohitjoshi/repos","events_url":"https://api.github.com/users/rohitjoshi/events{/privacy}","received_events_url":"https://api.github.com/users/rohitjoshi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-29T00:09:48Z","updated_at":"2016-03-29T00:27:12Z","closed_at":"2016-03-29T00:27:12Z","body":"Performance comparing jit vs ffi seem to be much larger.\r\n\r\nJIT:\r\n```\r\ntime /opt/capione/bin/resty -I '/opt/openresty/nginx/lualib'  -e 'local u = require(\"resty.jit-uuid\") u.seed() for i=1, 10000000 do local uuid_str = u() end'\r\n\r\nreal\t0m7.874s\r\nuser\t0m7.837s\r\nsys\t0m0.023s\r\n\r\n```\r\n\r\nFFI:\r\n```\r\ntime /opt/capione/bin/resty -I '/opt/openresty/nginx/lualib'  -e 'local u = require(\"resty.ffi-uuid\") u.seed() for i=1, 10000000 do local uuid_str = u() end'\r\n\r\nreal\t0m1.009s\r\nuser\t0m0.983s\r\nsys\t0m0.019s\r\n\r\n```\r\n"}}