summaryrefslogtreecommitdiff
path: root/benchmark/marshal_dump_load_geniv.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/marshal_dump_load_geniv.yml')
-rw-r--r--benchmark/marshal_dump_load_geniv.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/benchmark/marshal_dump_load_geniv.yml b/benchmark/marshal_dump_load_geniv.yml
new file mode 100644
index 0000000..6395c1d
--- /dev/null
+++ b/benchmark/marshal_dump_load_geniv.yml
@@ -0,0 +1,13 @@
+benchmark:
+ marshal_dump_load_geniv: |
+ 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 })
+loop_count: 1