NYCPHP Meetup

NYPHP.org

[nycphp-talk] new vs clone Performance

Hans Zaunere lists at zaunere.com
Tue Oct 7 12:35:12 EDT 2008


Hi all,

Out of curiosity, I wanted to get some benchmarks on using the new operator
vs cloning.  I wrote a simple script, attached, which is fun to play with.
Upshot:  clone is faster if used correctly (and depending on the object's
operations).  Also some interesting observations in the script itself, and
I'm interested in hearing other's observations/experiences.

By the way, PHP Meetup tonight at Pound & Pence:  http://php.meetup.com/430/

See you there.

Best,

---
Hans Zaunere / Managing Member / New York PHP
      www.nyphp.org  /  www.nyphp.com 



-------------- next part --------------
A non-text attachment was scrubbed...
Name: new-vs-clone-performance.psh
Type: application/octet-stream
Size: 1495 bytes
Desc: not available
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20081007/35ee2350/attachment.obj>


More information about the talk mailing list