Lars Strojny wrote:
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
Before the topic gets forgotten, ill add myself to the benchmark list.
SuSe Linux 10.0
Intel(R) Pentium(R) 4 CPU 3.00GHz
MemTotal: 1025604 kB
Instanciating Zend_Date
- Average memory usage: 84.604000
- Overall memory usage: 84604.000000
- Average time consumed (mS): 0.001542
- Overall time consumed: (mS): 1.542281
Instanciating DateTime
- Average memory usage: -0.792000
- Overall memory usage: -792.000000
- Average time consumed (mS): 0.000016
- Overall time consumed: (mS): 0.015954
Returning a formatted date with DateTime
- Average memory usage: 0.224000
- Overall memory usage: 224.000000
- Average time consumed (mS): 0.000004
- Overall time consumed: (mS): 0.003700
Returning a formatting date with with Zend_Date
- Average memory usage: 0.060000
- Overall memory usage: 60.000000
- Average time consumed (mS): 0.000663
- Overall time consumed: (mS): 0.663352