Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- On an iMac Core2Duo 2.16Ghz:
- I don't think AR is actually caching.
- ~/src/dm-core > script/performance.rb
- Text should not be declared inline.
- Rehearsal -----------------------------------------------------------------------------------------------
- ActiveRecord:id x10_000 3.530000 0.320000 3.850000 ( 4.939399)
- ActiveRecord:id(cached) x10_000 3.540000 0.320000 3.860000 ( 4.797453)
- DataMapper:id x10_000 3.190000 0.280000 3.470000 ( 4.604910)
- DataMapper:id(cached) x10_000 0.090000 0.000000 0.090000 ( 0.095606)
- ActiveRecord:all limit(100) x1000 11.880000 0.060000 11.940000 ( 12.494454)
- ActiveRecord:all limit(100) (cached) x1000 11.860000 0.060000 11.920000 ( 12.521918)
- DataMapper:all limit(100) x1000 5.020000 0.040000 5.060000 ( 5.578594)
- DataMapper:all limit(100) (cached) x1000 3.040000 0.040000 3.080000 ( 3.581179)
- ActiveRecord:all limit(10,000) x10 12.040000 0.050000 12.090000 ( 12.243110)
- ActiveRecord:all limit(10,000) (cached) x10 12.140000 0.040000 12.180000 ( 12.339861)
- DataMapper:all limit(10,000) x10 5.740000 0.040000 5.780000 ( 5.788256)
- DataMapper:all limit(10,000) (cached) x10 3.850000 0.020000 3.870000 ( 3.874642)
- ------------------------------------------------------------------------------------- total: 77.190000sec
- user system total real
- ActiveRecord:id x10_000 3.480000 0.320000 3.800000 ( 4.701110)
- ActiveRecord:id(cached) x10_000 3.480000 0.310000 3.790000 ( 4.701436)
- DataMapper:id x10_000 3.170000 0.270000 3.440000 ( 4.375630)
- DataMapper:id(cached) x10_000 0.100000 0.000000 0.100000 ( 0.097554)
- ActiveRecord:all limit(100) x1000 11.410000 0.060000 11.470000 ( 11.993949)
- ActiveRecord:all limit(100) (cached) x1000 11.410000 0.050000 11.460000 ( 11.998727)
- DataMapper:all limit(100) x1000 5.060000 0.040000 5.100000 ( 5.608384)
- DataMapper:all limit(100) (cached) x1000 3.020000 0.040000 3.060000 ( 3.554985)
- ActiveRecord:all limit(10,000) x10 12.170000 0.040000 12.210000 ( 12.370468)
- ActiveRecord:all limit(10,000) (cached) x10 12.180000 0.040000 12.220000 ( 12.371510)
- DataMapper:all limit(10,000) x10 5.450000 0.020000 5.470000 ( 5.480993)
- DataMapper:all limit(10,000) (cached) x10 3.130000 0.020000 3.150000 ( 3.160792)
Add Comment
Please, Sign In to add comment