Hi Matthew,

Am Samstag, den 12.07.2008, 19:11 -0400 schrieb Matthew Weier O'Phinney:
[...]
> Lars -- can you provide some benchmarks that show the memory differences
> between Zend_Date and DateTime? I'm curious to see if we might be able
> to isolate the performance issues, if any, and improve the situation.

You can find the results attached. The benchmark suite can be found at
http://lars.schokokeks.org/php/time-bench.phps

cu, Lars
Instanciating Zend_Date
   - Average memory usage: 55.440000
   - Overall memory usage: 55440.000000
   - Average time consumed (mS): 0.001242
   - Overall time consumed: (mS): 1.241695

Instanciating DateTime
   - Average memory usage: 0.272000
   - Overall memory usage: 272.000000
   - Average time consumed (mS): 0.000012
   - Overall time consumed: (mS): 0.011888

Returning a formatted date with DateTime
   - Average memory usage: 0.000000
   - Overall memory usage: 0.000000
   - Average time consumed (mS): 0.000005
   - Overall time consumed: (mS): 0.005046

Returning a formatting date with with Zend_Date
   - Average memory usage: 9.800000
   - Overall memory usage: 9800.000000
   - Average time consumed (mS): 0.000750
   - Overall time consumed: (mS): 0.750078

Parsing date with DateTime
   - Average memory usage: 0.000000
   - Overall memory usage: 0.000000
   - Average time consumed (mS): 0.000015
   - Overall time consumed: (mS): 0.014650

Parsing date with Zend_Date
   - Average memory usage: 67.696000
   - Overall memory usage: 67696.000000
   - Average time consumed (mS): 0.008197
   - Overall time consumed: (mS): 8.197300

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

Reply via email to