Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Jul 8, 2012
1 parent e7f33a0 commit 47e81ca
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/mongoid/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: utf-8
module Mongoid
VERSION = "3.0.0.rc"
VERSION = "3.0.0"
end
30 changes: 18 additions & 12 deletions perf/benchmark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

puts "\n[ Root Document Benchmarks ]"

[ 1000, 10000, 100000 ].each do |i|
[ 100000 ].each do |i|

Mongoid.unit_of_work do

Expand Down Expand Up @@ -63,7 +63,7 @@

puts "\n[ Embedded 1-n Benchmarks ]"

[ 1000, 10000 ].each do |i|
[ 1000 ].each do |i|

Mongoid.unit_of_work do

Expand Down Expand Up @@ -155,7 +155,7 @@

puts "\n[ Embedded 1-1 Benchmarks ]"

[ 1000, 10000 ].each do |i|
[ 1000 ].each do |i|

Mongoid.unit_of_work do

Expand All @@ -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

Expand Down Expand Up @@ -214,7 +214,7 @@
end
end

Post.delete_all
person.posts.delete_all
GC.start

bm.report("#push (batch) ") do
Expand All @@ -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

Expand All @@ -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

Expand Down Expand Up @@ -295,7 +298,7 @@
person.preferences.delete_all
end

Preference.delete_all
person.preferences.delete_all
GC.start

bm.report("#push ") do
Expand All @@ -304,7 +307,7 @@
end
end

Preference.delete_all
person.preferences.delete_all
GC.start

bm.report("#push (batch) ") do
Expand All @@ -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

Expand Down

0 comments on commit 47e81ca

Please sign in to comment.