Search
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby
All Projects
Ruby
Overview
Activity
Roadmap
Issues
Repository
Like
Download (239 Bytes)
Bug #10761
» better_slow_marshal.rb
jenkoruby (David Jenkins)
, 01/21/2015 02:48 PM
require
'benchmark'
class
DatasetSignature
end
class
Dataset
end
n
=
100
ds
=
Marshal
.
load
(
File
.
open
(
'./dataset_dump.txt'
,
'r'
))
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 »
(4-4/5)
Loading...