Search
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby
All Projects
Ruby
Overview
Activity
Roadmap
Issues
Repository
Like
Download (212 Bytes)
Bug #10761
» marshal_slow.rb
Code that runs benchmark on Marshal.dump -
jenkoruby (David Jenkins)
, 01/21/2015 05:12 AM
require
'benchmark'
class
VanillaDataset
end
ds
=
Marshal
.
load
(
File
.
open
(
'./nested_ds.txt'
,
'r'
))
n
=
100
Benchmark
.
bm
do
|
x
|
x
.
report
(
"Marshal Dump"
)
{
for
i
in
1
..
n
;
Marshal
.
dump
(
ds
);
end
}
end
« Previous
1
2
3
4
5
Next »
(2-2/5)
Loading...