From c677788f5194d1405315c2fd19ec69f3ee571ac2 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Fri, 7 Mar 2014 17:33:29 +0100 Subject: update documentation, added top 10 --- documentation/bubblesort.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'documentation/bubblesort.html') diff --git a/documentation/bubblesort.html b/documentation/bubblesort.html index 7c1f2bc..2c94652 100644 --- a/documentation/bubblesort.html +++ b/documentation/bubblesort.html @@ -164,8 +164,9 @@ echo("Scripted: ".($scripted - $native)." seconds\n");

- This is the output on from a regular laptop. You can see that the native C++ - implementation is about ten times as fast as the PHP implementation. + This is the output on a regular laptop. You can see that the native C++ + implementation is more than ten times faster than the PHP implementation. +

 Native:   0.79793095588684 seconds
@@ -176,7 +177,7 @@ Scripted: 8.9202060699463 seconds
 

C++ is faster - much faster - than code in PHP, even for very simple scripts. The source code for an extension written in C++ is almost identical to the - source of the same algorithm in PHP. Every programmer that is capable of - writing a PHP script, could just as well write it in C++ and get a ten times - better performance. + source of the same algorithm in PHP. This means that every programmer that + is capable of writing a PHP script, could just as well write it in C++ and + get a ten times better performance.

-- cgit v1.2.3