Skip to content

Instantly share code, notes, and snippets.

@ddoronin
Created August 16, 2022 13:27
Show Gist options
  • Save ddoronin/61fac86380fb3ecccc01ce29c39cce90 to your computer and use it in GitHub Desktop.
Save ddoronin/61fac86380fb3ecccc01ce29c39cce90 to your computer and use it in GitHub Desktop.
Profiling Elixir
{time, your_func_result} = :timer.tc(&your_func/arity, [your_func-args])
If you have discovered this function, please upvote the original answer by Sainik on stackoverflow here:
https://stackoverflow.com/questions/29668635/how-can-we-easily-time-function-calls-in-elixir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment