Skip to content

Instantly share code, notes, and snippets.

@geeksilva97
Created December 12, 2021 23:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geeksilva97/909ebb54029033dea0afbd0206e853ea to your computer and use it in GitHub Desktop.
Save geeksilva97/909ebb54029033dea0afbd0206e853ea to your computer and use it in GitHub Desktop.
Results of Benchee tail call recursion
Name ips average deviation median 99th %
factorial with tail call recursion 0.0921 10.85 s ±0.00% 10.85 s 10.85 s
factorial with normal recursion 0.0903 11.07 s ±0.00% 11.07 s 11.07 s
Comparison:
factorial with tail call recursion 0.0921
factorial with normal recursion 0.0903 - 1.02x slower +0.22 s
Memory usage statistics:
Name Memory usage
factorial with tail call recursion 0 B
factorial with normal recursion 0 B - 1.00x memory usage +0 B
-----
Name ips average deviation median 99th %
factorial with normal recursion 0.0431 23.23 s ±0.00% 23.23 s 23.23 s
factorial with tail call recursion 0.0362 27.59 s ±0.00% 27.59 s 27.59 s
Comparison:
factorial with normal recursion 0.0431
factorial with tail call recursion 0.0362 - 1.19x slower +4.37 s
Memory usage statistics:
Name Memory usage
factorial with normal recursion 0 B
factorial with tail call recursion 0 B - 1.00x memory usage +0 B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment