Skip to content

Instantly share code, notes, and snippets.

@methane
Created May 17, 2012 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save methane/2720862 to your computer and use it in GitHub Desktop.
Save methane/2720862 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) end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment