Last active
December 17, 2015 05:38
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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