Skip to content

Instantly share code, notes, and snippets.

@manpages
Last active December 17, 2015 05:38
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 manpages/5558956 to your computer and use it in GitHub Desktop.
Save manpages/5558956 to your computer and use it in GitHub Desktop.
Benchmarking Erlang term inspection implementations on large and deep tuple with textual definition worth 5 MB.
# Benchmarking Erlang term inspection implementations on large and deep tuple with textual definition worth 5 MB.
iex(8)> t.(fn() -> inspect(v(7)) end)
10316896
iex(9)> t.(fn() -> inspectrf(v(7)) end)
53297954
iex(10)> t.(fn() -> inspectrf(v(7), [pretty: false]) end)
10705875
iex(11)> t.(fn() -> :io.format('~p', [v(7)]) end)
372286
iex(12)> t.(fn() -> :io_lib.format('~p', [v(7)]) end)
41000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment