Skip to content

Instantly share code, notes, and snippets.

@jerrett
Created August 29, 2012 17:02
Show Gist options
  • Save jerrett/63d60373ef8b4e22536d to your computer and use it in GitHub Desktop.
Save jerrett/63d60373ef8b4e22536d to your computer and use it in GitHub Desktop.
times = []
100.times { times << Time.now }
m = Marshal.dump(times)
Benchmark.measure { Marshal.load(m) }
@jerrett
Copy link
Author

jerrett commented Aug 29, 2012

1.8.7: 0.000000 0.000000 0.000000 ( 0.000878)
1.9.3: 0.100000 0.010000 0.110000 ( 0.099933)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment