Reason to use NuSphere Encoder instead of others? |
|
Hi Emmanuel,
I'm currently using Nucoder, not because of execution speed but of the licencing features. I made this test, to check if the promissed performance boost will appear: PHP 5.2.12 with latest PHPExpress-Version and nucoder.
pure php with 10.000.000 loops: 38 sec. encoded php with 10.000.000 loops: 53 sec. I don't know where this difference comes from, maybe somebody knows where the problem is. Maybe you can varify my results (with the trial version). I've encoded the file with follwing cmd:
|
||||||||||||||||
|
|
You're trying to check performance in a small loop with instructions that are probably already highly optimized in PHP itself. So there probably isn't any further optimization any encoder can do for that kind of code.
|
||||||||||||
|
|
in this case, i didn't expect any optimization, but at least the same runtime. the difference are 15 sec.!
|
||||||||||||
|
|
How about timing each particular operation instead of together? e.g.
I've not tested it, just writing adlib but I think you will get what I am trying to achieve? |
||||||||||||||||
|
|
I am certainly no expert on this topic, but I think that it is only logical that scripts would run slower, which has also been my consistent experience. After all, there is probably an additional decoding step and the decoded scripts are interpreted by the same PHP engine. Maybe the files would have a smaller footprint on the server that could load them faster?
As far as the main topic was concerned, the main reason for using NuCoder is its ease of use and tight integration with PhpED. The main reason for not using it would be the long time it is taking to add support for PHP 5.3. |
||||||||||||
|
|
Seems you did something wrong. According to my test, there is absolutely no change in the performance. See the results:
The difference of 1 sec reflects the precision of the test itself. The files I tested are available from the link below: http://www.nusphere.com/sshot/55tst.zip If you want to check the performance improvements brought by PhpExpress, test complete applications, like Drupal-driven web site or something like that and you'll see from 130% to 240% speedup in average (I checked with Apache's ab). |
||||||||||||
|
Reason to use NuSphere Encoder instead of others? |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by