Skip to content

Instantly share code, notes, and snippets.

@d0rc
Created March 6, 2014 00:35
Show Gist options
  • Select an option

  • Save d0rc/9379849 to your computer and use it in GitHub Desktop.

Select an option

Save d0rc/9379849 to your computer and use it in GitHub Desktop.
steps to reproduce erl_prim_loader @100%
defrecord Test, [id: nil, what: nil]
spawn fn -> :etop.start [output: :text] end
case what_to_test do
:json -> Enum.each(1..1000_000, fn _ -> Test[id: 1] |> JSON.encode end)
:inspect -> Enum.each(1..1000_000, fn _ -> inspect Test[id: 1] end)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment