summaryrefslogtreecommitdiff
path: root/benchmark/marshal_dump_load_geniv.rb
blob: 8252ad90faf84550fa1baaabc73006ad27cccfad (plain)
1
2
3
4
5
6
7
8
9
10
a = ''
a.instance_eval do
  @a = :a
  @b = :b
  @c = :c
end
100000.times do
  a = Marshal.load(Marshal.dump(a))
end
#p(a.instance_eval { @a == :a && @b == :b && @c == :c })