diff options
Diffstat (limited to 'benchmark/marshal_dump_load_geniv.rb')
-rw-r--r-- | benchmark/marshal_dump_load_geniv.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/benchmark/marshal_dump_load_geniv.rb b/benchmark/marshal_dump_load_geniv.rb new file mode 100644 index 0000000000..8252ad90fa --- /dev/null +++ b/benchmark/marshal_dump_load_geniv.rb @@ -0,0 +1,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 }) |