From 47e81ca8b7db308c8e53a13c0ea864c922c359e7 Mon Sep 17 00:00:00 2001 From: Durran Jordan Date: Sun, 8 Jul 2012 21:56:53 +0200 Subject: [PATCH] Bump version --- CHANGELOG.md | 2 +- lib/mongoid/version.rb | 2 +- perf/benchmark.rb | 30 ++++++++++++++++++------------ 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9017f2bd93..b1aa561467 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ For instructions on upgrading to newer versions, visit [mongoid.org](http://mongoid.org/docs/upgrading.html). -## 3.0.0 (branch: master) +## 3.0.0 ### New Features diff --git a/lib/mongoid/version.rb b/lib/mongoid/version.rb index 11aaff9f11..0df7c79621 100644 --- a/lib/mongoid/version.rb +++ b/lib/mongoid/version.rb @@ -1,4 +1,4 @@ # encoding: utf-8 module Mongoid - VERSION = "3.0.0.rc" + VERSION = "3.0.0" end diff --git a/perf/benchmark.rb b/perf/benchmark.rb index 9bb48ced39..c4824d912c 100644 --- a/perf/benchmark.rb +++ b/perf/benchmark.rb @@ -16,7 +16,7 @@ puts "\n[ Root Document Benchmarks ]" - [ 1000, 10000, 100000 ].each do |i| + [ 100000 ].each do |i| Mongoid.unit_of_work do @@ -63,7 +63,7 @@ puts "\n[ Embedded 1-n Benchmarks ]" - [ 1000, 10000 ].each do |i| + [ 1000 ].each do |i| Mongoid.unit_of_work do @@ -155,7 +155,7 @@ puts "\n[ Embedded 1-1 Benchmarks ]" - [ 1000, 10000 ].each do |i| + [ 1000 ].each do |i| Mongoid.unit_of_work do @@ -173,7 +173,7 @@ puts "\n[ Referenced 1-n Benchmarks ]" - [ 1000, 10000, 100000 ].each do |i| + [ 100000 ].each do |i| Mongoid.unit_of_work do @@ -214,7 +214,7 @@ end end - Post.delete_all + person.posts.delete_all GC.start bm.report("#push (batch) ") do @@ -241,14 +241,16 @@ person.posts.delete(post) end - Post.delete_all + person.posts.delete_all GC.start end end + Post.delete_all + puts "\n[ Referenced 1-1 Benchmarks ]" - [ 1000, 10000, 100000 ].each do |i| + [ 100000 ].each do |i| Mongoid.unit_of_work do @@ -262,11 +264,12 @@ end end + Game.delete_all GC.start puts "\n[ Referenced n-n Benchmarks ]" - [ 1000, 10000 ].each do |i| + [ 10000 ].each do |i| Mongoid.unit_of_work do @@ -295,7 +298,7 @@ person.preferences.delete_all end - Preference.delete_all + person.preferences.delete_all GC.start bm.report("#push ") do @@ -304,7 +307,7 @@ end end - Preference.delete_all + person.preferences.delete_all GC.start bm.report("#push (batch) ") do @@ -331,12 +334,15 @@ person.preferences.delete(preference) end - Preference.delete_all + person.preferences.delete_all GC.start end end - [ 1000, 10000 ].each do |i| + Person.delete_all + Preference.delete_all + + [ 10000 ].each do |i| GC.start