Project

General

Profile

Bug #14080 ยป marshall_slow.rb

pbfein (Peter Fein), 11/05/2017 05:06 AM

 
1
require 'benchmark'
2

    
3
array_of_floats = nil
4
File.open("marshalled_floats.data","rb") {|f| array_of_floats = Marshal.load(f)}
5

    
6
puts Benchmark.measure { s = Marshal.dump(array_of_floats) }
7

    
8