note 57669 added to function.eval

From: Date: Mon, 10 Oct 2005 23:12:34 +0000
Subject: note 57669 added to function.eval
Groups: php.notes 
Request: Send a blank email to php-notes+get-96799@lists.php.net to get a copy of this message
as for your benchmarks of eval(), i tried running them myself, and found it odd that the 3rd test which contained the most code being run via the eval() function was the fastest, specially since that test happens to be the last thats run... so, i reversed the order of which the tests were being executed, starting with testEval3(), then 2, 1, and control(). what i found was that i was getting the same results as before, but not in the order you would image, the fastest most times seemed to be control()... so, if you ask me, i believe the eval() function doesn't really add real noticable script execution, nor does it speed it up. the tests done here simply seem to show an increase in speed for the last test function being run probably cause its already run the same code (more or less) 3 times earlier, which seems to speed it up the next time around... thats what it looks like to me anyway, i can't confirm it or anything, since i got no real idea of how php works internally with eval() or if it gets slight speed increasements when running identical code over and over... -jim ---- Manual Page -- http://www.php.net/manual/en/function.eval.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57669 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57669&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57669&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57669&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57669&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57669&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57669&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57669&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57669&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#96799) next »