{"action":"opened","issue":{"url":"https://api.github.com/repos/rfjakob/gocryptfs/issues/23","repository_url":"https://api.github.com/repos/rfjakob/gocryptfs","labels_url":"https://api.github.com/repos/rfjakob/gocryptfs/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/rfjakob/gocryptfs/issues/23/comments","events_url":"https://api.github.com/repos/rfjakob/gocryptfs/issues/23/events","html_url":"https://github.com/rfjakob/gocryptfs/issues/23","id":153652925,"number":23,"title":"Go crypto faster than OpenSSL on AES-NI systems","user":{"login":"lxp","id":484626,"avatar_url":"https://avatars.githubusercontent.com/u/484626?v=3","gravatar_id":"","url":"https://api.github.com/users/lxp","html_url":"https://github.com/lxp","followers_url":"https://api.github.com/users/lxp/followers","following_url":"https://api.github.com/users/lxp/following{/other_user}","gists_url":"https://api.github.com/users/lxp/gists{/gist_id}","starred_url":"https://api.github.com/users/lxp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lxp/subscriptions","organizations_url":"https://api.github.com/users/lxp/orgs","repos_url":"https://api.github.com/users/lxp/repos","events_url":"https://api.github.com/users/lxp/events{/privacy}","received_events_url":"https://api.github.com/users/lxp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-08T12:27:46Z","updated_at":"2016-05-08T12:27:46Z","closed_at":null,"body":"On my system Go crypto seems to be a lot faster than OpenSSL crypto.\r\nI started to investigate this with gocryptfs 0.9 and perf on Linux 4.4. Under heavy load (multiple rsync's ongoing) perf attributed 60% overhead to the Go runtime's native call checks (runtime.cgoCheckArg), which were caused by OpenSSL calls.\r\nI will provide proper benchmarks with gocryptfs 0.10-rc1, once my system is idle again.\r\n\r\n```\r\n$ cat /proc/cpuinfo \r\n[...]\r\nmodel name\t: Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz\r\n[...]\r\nflags\t\t: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm xsaveopt dtherm ida arat pln pts\r\n[...]\r\n```"}}