{"action":"created","issue":{"url":"https://api.github.com/repos/zig-lang/zig/issues/687","repository_url":"https://api.github.com/repos/zig-lang/zig","labels_url":"https://api.github.com/repos/zig-lang/zig/issues/687/labels{/name}","comments_url":"https://api.github.com/repos/zig-lang/zig/issues/687/comments","events_url":"https://api.github.com/repos/zig-lang/zig/issues/687/events","html_url":"https://github.com/zig-lang/zig/pull/687","id":288316653,"number":687,"title":"Add Sha2 functions","user":{"login":"tiehuis","id":4605603,"avatar_url":"https://avatars0.githubusercontent.com/u/4605603?v=4","gravatar_id":"","url":"https://api.github.com/users/tiehuis","html_url":"https://github.com/tiehuis","followers_url":"https://api.github.com/users/tiehuis/followers","following_url":"https://api.github.com/users/tiehuis/following{/other_user}","gists_url":"https://api.github.com/users/tiehuis/gists{/gist_id}","starred_url":"https://api.github.com/users/tiehuis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiehuis/subscriptions","organizations_url":"https://api.github.com/users/tiehuis/orgs","repos_url":"https://api.github.com/users/tiehuis/repos","events_url":"https://api.github.com/users/tiehuis/events{/privacy}","received_events_url":"https://api.github.com/users/tiehuis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-01-13T09:46:44Z","updated_at":"2018-03-19T18:32:59Z","closed_at":"2018-01-14T02:38:30Z","author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/zig-lang/zig/pulls/687","html_url":"https://github.com/zig-lang/zig/pull/687","diff_url":"https://github.com/zig-lang/zig/pull/687.diff","patch_url":"https://github.com/zig-lang/zig/pull/687.patch"},"body":"We take the fastest time measurement taken across multiple runs. Tested\r\nacross multiple compiler flags and the best chosen.\r\n\r\n```\r\nCpu: Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz\r\nGcc: 7.2.1 20171224\r\nClang: 5.0.1\r\nZig: 0.1.1.304f6f1d\r\n```\r\n\r\nSee https://www.nayuki.io/page/fast-sha2-hashes-in-x86-assembly.\r\n\r\n```\r\nGcc -O2\r\n    219 Mb/s\r\nClang -O2\r\n    213 Mb/s\r\nZig --release-fast\r\n    284 Mb/s\r\nZig --release-safe\r\n    211 Mb/s\r\nZig\r\n    6 Mb/s\r\n```\r\n\r\n```\r\nGcc -O2\r\n    350 Mb/s\r\nClang -O2\r\n    354 Mb/s\r\nZig --release-fast\r\n    426 Mb/s\r\nZig --release-safe\r\n    300 Mb/s\r\nZig\r\n    11 Mb/s\r\n```\r\n\r\n`release-safe` is a bit slower here. Haven't delved into the assembly to see why yet."},"comment":{"url":"https://api.github.com/repos/zig-lang/zig/issues/comments/374318959","html_url":"https://github.com/zig-lang/zig/pull/687#issuecomment-374318959","issue_url":"https://api.github.com/repos/zig-lang/zig/issues/687","id":374318959,"user":{"login":"andrewrk","id":106511,"avatar_url":"https://avatars0.githubusercontent.com/u/106511?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewrk","html_url":"https://github.com/andrewrk","followers_url":"https://api.github.com/users/andrewrk/followers","following_url":"https://api.github.com/users/andrewrk/following{/other_user}","gists_url":"https://api.github.com/users/andrewrk/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewrk/subscriptions","organizations_url":"https://api.github.com/users/andrewrk/orgs","repos_url":"https://api.github.com/users/andrewrk/repos","events_url":"https://api.github.com/users/andrewrk/events{/privacy}","received_events_url":"https://api.github.com/users/andrewrk/received_events","type":"User","site_admin":false},"created_at":"2018-03-19T18:32:59Z","updated_at":"2018-03-19T18:32:59Z","author_association":"OWNER","body":"Ah, I found std/crypto/throughput_test.zig "}}
{"actor":{"display_login":"andrewrk"}}