{"action":"created","issue":{"url":"https://api.github.com/repos/ivanfratric/winafl/issues/4","repository_url":"https://api.github.com/repos/ivanfratric/winafl","labels_url":"https://api.github.com/repos/ivanfratric/winafl/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/ivanfratric/winafl/issues/4/comments","events_url":"https://api.github.com/repos/ivanfratric/winafl/issues/4/events","html_url":"https://github.com/ivanfratric/winafl/issues/4","id":167611043,"number":4,"title":"execution speed very slow","user":{"login":"the-st0rm","id":3959421,"avatar_url":"https://avatars.githubusercontent.com/u/3959421?v=3","gravatar_id":"","url":"https://api.github.com/users/the-st0rm","html_url":"https://github.com/the-st0rm","followers_url":"https://api.github.com/users/the-st0rm/followers","following_url":"https://api.github.com/users/the-st0rm/following{/other_user}","gists_url":"https://api.github.com/users/the-st0rm/gists{/gist_id}","starred_url":"https://api.github.com/users/the-st0rm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-st0rm/subscriptions","organizations_url":"https://api.github.com/users/the-st0rm/orgs","repos_url":"https://api.github.com/users/the-st0rm/repos","events_url":"https://api.github.com/users/the-st0rm/events{/privacy}","received_events_url":"https://api.github.com/users/the-st0rm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-26T13:46:04Z","updated_at":"2016-08-02T11:33:18Z","closed_at":null,"body":"I am testing a DLL library by creating a wrapper around that DLL and basically calling functions on it. Everything looks working ok but execution speed is `0.38 exec/sec`!! that's pretty bad. Is that normal or I am missing something. I am loading the DLL dynamically using ` LoadLibrary()`, I know that slows the execution a bit but not the level of `0.38 exec/sec`\r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/ivanfratric/winafl/issues/comments/236878054","html_url":"https://github.com/ivanfratric/winafl/issues/4#issuecomment-236878054","issue_url":"https://api.github.com/repos/ivanfratric/winafl/issues/4","id":236878054,"user":{"login":"the-st0rm","id":3959421,"avatar_url":"https://avatars.githubusercontent.com/u/3959421?v=3","gravatar_id":"","url":"https://api.github.com/users/the-st0rm","html_url":"https://github.com/the-st0rm","followers_url":"https://api.github.com/users/the-st0rm/followers","following_url":"https://api.github.com/users/the-st0rm/following{/other_user}","gists_url":"https://api.github.com/users/the-st0rm/gists{/gist_id}","starred_url":"https://api.github.com/users/the-st0rm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-st0rm/subscriptions","organizations_url":"https://api.github.com/users/the-st0rm/orgs","repos_url":"https://api.github.com/users/the-st0rm/repos","events_url":"https://api.github.com/users/the-st0rm/events{/privacy}","received_events_url":"https://api.github.com/users/the-st0rm/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T11:33:18Z","updated_at":"2016-08-02T11:33:18Z","body":"`However, since you are unloading the library every time, it is quite possible that dynamorio has to translate a lot of code anew for every iteration which introduces unnecessary overhead. The way to work around this is:\r\n\r\nvoid fuzz() {\r\n//call functions on a dll\r\n}\r\n\r\nint main(int argc, char **argv)\r\n{ \r\nhDLL = LoadLibrary(\"foo\");\r\nfuzz()\r\nFreeLibrary(hDLL);\r\n}\r\n\r\nAnd then use the target_offset of fuzz() instead of main().`\r\n\r\nThat was it. This basically enhanced the fuzzing speed from 7 exec/sec to 200 exec/sec .. which isn't bad. "}}
{"actor":{"display_login":"the-st0rm"}}