Guest User

Untitled

a guest
Apr 19th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. On an iMac Core2Duo 2.16Ghz:
  2.  
  3. I don't think AR is actually caching.
  4.  
  5. ~/src/dm-core > script/performance.rb
  6. Text should not be declared inline.
  7. Rehearsal -----------------------------------------------------------------------------------------------
  8. ActiveRecord:id x10_000 3.530000 0.320000 3.850000 ( 4.939399)
  9. ActiveRecord:id(cached) x10_000 3.540000 0.320000 3.860000 ( 4.797453)
  10. DataMapper:id x10_000 3.190000 0.280000 3.470000 ( 4.604910)
  11. DataMapper:id(cached) x10_000 0.090000 0.000000 0.090000 ( 0.095606)
  12. ActiveRecord:all limit(100) x1000 11.880000 0.060000 11.940000 ( 12.494454)
  13. ActiveRecord:all limit(100) (cached) x1000 11.860000 0.060000 11.920000 ( 12.521918)
  14. DataMapper:all limit(100) x1000 5.020000 0.040000 5.060000 ( 5.578594)
  15. DataMapper:all limit(100) (cached) x1000 3.040000 0.040000 3.080000 ( 3.581179)
  16. ActiveRecord:all limit(10,000) x10 12.040000 0.050000 12.090000 ( 12.243110)
  17. ActiveRecord:all limit(10,000) (cached) x10 12.140000 0.040000 12.180000 ( 12.339861)
  18. DataMapper:all limit(10,000) x10 5.740000 0.040000 5.780000 ( 5.788256)
  19. DataMapper:all limit(10,000) (cached) x10 3.850000 0.020000 3.870000 ( 3.874642)
  20. ------------------------------------------------------------------------------------- total: 77.190000sec
  21.  
  22. user system total real
  23. ActiveRecord:id x10_000 3.480000 0.320000 3.800000 ( 4.701110)
  24. ActiveRecord:id(cached) x10_000 3.480000 0.310000 3.790000 ( 4.701436)
  25. DataMapper:id x10_000 3.170000 0.270000 3.440000 ( 4.375630)
  26. DataMapper:id(cached) x10_000 0.100000 0.000000 0.100000 ( 0.097554)
  27. ActiveRecord:all limit(100) x1000 11.410000 0.060000 11.470000 ( 11.993949)
  28. ActiveRecord:all limit(100) (cached) x1000 11.410000 0.050000 11.460000 ( 11.998727)
  29. DataMapper:all limit(100) x1000 5.060000 0.040000 5.100000 ( 5.608384)
  30. DataMapper:all limit(100) (cached) x1000 3.020000 0.040000 3.060000 ( 3.554985)
  31. ActiveRecord:all limit(10,000) x10 12.170000 0.040000 12.210000 ( 12.370468)
  32. ActiveRecord:all limit(10,000) (cached) x10 12.180000 0.040000 12.220000 ( 12.371510)
  33. DataMapper:all limit(10,000) x10 5.450000 0.020000 5.470000 ( 5.480993)
  34. DataMapper:all limit(10,000) (cached) x10 3.130000 0.020000 3.150000 ( 3.160792)
Add Comment
Please, Sign In to add comment