Sha256: f7924b9a4f2b9f6d532a09797515c35a6bea325a56a82f8e394ef0bf9bbde525
Contents?: true
Size: 621 Bytes
Versions: 3
Compression:
Stored size: 621 Bytes
Contents
require 'benchmark/ips' require 'oxblood/protocol' require 'redis/connection/command_helper' CommandHelper = Object.new.tap { |o| o.extend Redis::Connection::CommandHelper } command = [:set, 'foo', ['bar', Float::INFINITY, -Float::INFINITY, 3]] p CommandHelper.build_command(command) p Oxblood::Protocol.build_command(command) raise unless CommandHelper.build_command(command) == Oxblood::Protocol.build_command(command) Benchmark.ips do |x| x.config(warmup: 20, benchmark: 10) x.report('redis-ruby') { CommandHelper.build_command(command) } x.report('Oxblood') { Oxblood::Protocol.build_command(command) } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oxblood-0.1.0.dev3 | benchmarks/serializer.rb |
oxblood-0.1.0.dev2 | benchmarks/serializer.rb |
oxblood-0.1.0.dev1 | benchmarks/serializer.rb |