Sha256: 437f68eaecab03d7de4ccde5677556651fb8e8aeb281f2d0d32611713987c67e
Contents?: true
Size: 1.14 KB
Versions: 6
Compression:
Stored size: 1.14 KB
Contents
require 'integration_helper' require_relative '../spec/boot.rb' module GameMachine describe ObjectDb do describe "stress" do it "stress with small payload" do measure(10,10000) do e = entity id = e.id ObjectDb.put(e) if returned_entity = ObjectDb.get(id) returned_entity.id.should == id end end end it "stress get" do measure(10,10000) do e = entity id = e.id if returned_entity = ObjectDb.get(id) returned_entity.id.should == id end end end it "stress dbproc" do measure(10,10000) do e = entity id = e.id if returned_entity = ObjectDb.call_dbproc(:update, e.id,true) returned_entity.id.should == id end end end it "stress with large payload" do measure(10,10000) do e = large_entity id = e.id ObjectDb.put(e) if returned_entity = ObjectDb.get(id) returned_entity.id.should == id end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems