Skip to content

Instantly share code, notes, and snippets.

@frsyuki
Forked from methane/mp_test.rb
Created May 17, 2012 18:54
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 frsyuki/2720894 to your computer and use it in GitHub Desktop.
Save frsyuki/2720894 to your computer and use it in GitHub Desktop.
testing MessagePack memory usage.
require 'msgpack'
msg = MessagePack::pack("a" * 1024)
while true do
MessagePack::unpack(msg)
GC.start
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment