Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bump version

  • Loading branch information...
commit 47e81ca8b7db308c8e53a13c0ea864c922c359e7 1 parent e7f33a0
@durran durran authored
Showing with 20 additions and 14 deletions.
  1. +1 −1  CHANGELOG.md
  2. +1 −1  lib/mongoid/version.rb
  3. +18 −12 perf/benchmark.rb
View
2  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
View
2  lib/mongoid/version.rb
@@ -1,4 +1,4 @@
# encoding: utf-8
module Mongoid
- VERSION = "3.0.0.rc"
+ VERSION = "3.0.0"
end
View
30 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
Please sign in to comment.
Something went wrong with that request. Please try again.