{"action":"created","issue":{"url":"https://api.github.com/repos/eproxus/meck/issues/159","labels_url":"https://api.github.com/repos/eproxus/meck/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/eproxus/meck/issues/159/comments","events_url":"https://api.github.com/repos/eproxus/meck/issues/159/events","html_url":"https://github.com/eproxus/meck/issues/159","id":119621904,"number":159,"title":"almost 8x overhead","user":{"login":"albertnetymk","id":984374,"avatar_url":"https://avatars.githubusercontent.com/u/984374?v=3","gravatar_id":"","url":"https://api.github.com/users/albertnetymk","html_url":"https://github.com/albertnetymk","followers_url":"https://api.github.com/users/albertnetymk/followers","following_url":"https://api.github.com/users/albertnetymk/following{/other_user}","gists_url":"https://api.github.com/users/albertnetymk/gists{/gist_id}","starred_url":"https://api.github.com/users/albertnetymk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertnetymk/subscriptions","organizations_url":"https://api.github.com/users/albertnetymk/orgs","repos_url":"https://api.github.com/users/albertnetymk/repos","events_url":"https://api.github.com/users/albertnetymk/events{/privacy}","received_events_url":"https://api.github.com/users/albertnetymk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-01T01:43:36Z","updated_at":"2015-12-08T12:58:58Z","closed_at":null,"body":"```erlang\r\n-module(test_meck).\r\n-mode(compile).\r\n\r\n-include_lib(\"proper/include/proper.hrl\").\r\n\r\n-compile(export_all).\r\n\r\nprop_l() ->\r\n  ?FORALL(V, ?LET(L, integer(1,100), vector(L, integer())), V =:= V).\r\n\r\ntest() ->\r\n  proper:quickcheck(prop_l(), [quiet, 1000]).\r\n\r\nmain(_) ->\r\n  R1 = timer:tc(fun () -> test() end),\r\n  io:format(\"~p~n\", [R1]),\r\n  meck:new(proper, [passthrough]),\r\n  R2 = timer:tc(fun () -> test() end),\r\n  io:format(\"~p~n\", [R2]),\r\n  meck:unload(proper),\r\n  ok.\r\n```\r\n\r\nRun it:\r\n```\r\n$ erlc test_meck.erl && erl -noshell -eval 'test_meck:main(1), halt().'\r\n{74522,true}\r\n{649360,true}\r\n```\r\n\r\nAny way to bring down the overhead?"},"comment":{"url":"https://api.github.com/repos/eproxus/meck/issues/comments/162872879","html_url":"https://github.com/eproxus/meck/issues/159#issuecomment-162872879","issue_url":"https://api.github.com/repos/eproxus/meck/issues/159","id":162872879,"user":{"login":"eproxus","id":112878,"avatar_url":"https://avatars.githubusercontent.com/u/112878?v=3","gravatar_id":"","url":"https://api.github.com/users/eproxus","html_url":"https://github.com/eproxus","followers_url":"https://api.github.com/users/eproxus/followers","following_url":"https://api.github.com/users/eproxus/following{/other_user}","gists_url":"https://api.github.com/users/eproxus/gists{/gist_id}","starred_url":"https://api.github.com/users/eproxus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eproxus/subscriptions","organizations_url":"https://api.github.com/users/eproxus/orgs","repos_url":"https://api.github.com/users/eproxus/repos","events_url":"https://api.github.com/users/eproxus/events{/privacy}","received_events_url":"https://api.github.com/users/eproxus/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T12:58:58Z","updated_at":"2015-12-08T12:58:58Z","body":"No, there is no way in Erlang to mock just one function in a module. The whole module must be replaced.\r\n\r\nSo, you cannot pass those options because you don't have the source code of the tests?"}}