Re: A puzzler (well, for me at least)
| From: | Per Jessen | Date: | Thu, 26 Feb 2009 13:35:11 +0000 |
| Subject: | Re: A puzzler (well, for me at least) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-288815@lists.php.net to get a copy of this message | ||
Richard Heyes wrote:
> Hi,
>
> I've been recently wondering (musing if you will) about timings, and
> roughly how long, in a very real sense, it takes on a modern computer
> for a single line of PHP, or Javascript (or interpreted code in
> general) to execute. Nanoseconds? Quicker?
Not taking pipelining into account, a 3GHz processor will execute one
instruction in 333 picoseconds, so three instructions in a nanosecond.
How many instructions to a line of code? 10,000 ?
--
Per Jessen, Zürich (4.6°C)