Skip to content

Instantly share code, notes, and snippets.

@jlouis
Created November 17, 2011 21:16
Show Gist options
  • Save jlouis/1374558 to your computer and use it in GitHub Desktop.
Save jlouis/1374558 to your computer and use it in GitHub Desktop.
-module(foo).
-export([test/0,
export_me/1]).
export_me(_N) ->
nono.
test() ->
A = timer:tc(fun() ->
erlang:function_exported(foo, export_me, 1)
end),
B = timer:tc(fun() ->
code:which(foo)
end),
{A, B}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment