PDA

View Full Version : Phoronix Test Suite To Use PHP5-CLI


Michael
03-27-2008, 09:12 AM
As the Phoronix Test Suite 0.0.1 release will be out any day now, I just want to let you guys know its dependency. The core of the Phoronix Test Suite started out being written mostly in C, but the decision was made to move it all over to PHP.

Why PHP? While PHP is mostly known for its web usage, PHP can run on the desktop from the CLI and there is even a GTK module for PHP. PHP actually works out quite nicely on the desktop, if you've never tried it out. What's nice about this route though is the ease of installation. The Phoronix Test Suite is all about being easy to use and being able to accurately reproduce the results. To run the PTS, you just need to install php5-cli (or whatever the package may be named in your distro repository) and you'll be set. The PHP5 CLI package usually just depends upon a PHP5 common package and that's about it.

The GD and GTK PHP libraries are optionally used by PTS, but not required. That's far less then if PTS were written in say Python with GTK where python-gtk-dev has many more dependencies and the same for other languages.

PHP5-CLI is also small and portable enough where a binary could ship with the Phoronix Test Suite accompanied by the GD (for graph rendering) and GTK (for GUI rendering).

In addition, I already have quite a bit of code that may come in handy for the Phoronix Test Suite from other projects already written in PHP. I've already done some performance profiling, etc and php5-cli is working out well and is suitable for use with this benchmarking utility. As another benefit, the learning curve for PHP can be low and there's plenty of documentation on PHP available (http://www.php.net/) so it will be easier for more to contribute.

Aside from the heart of the Phoronix Test Suite, all of the test suites and test profiles continue to be written in XML and the related-benchmarking resources (pre-run, post-run, and install tasks) can be written in either PHP or shell scripts.

I just wanted to let you all know right now why it's being written in PHP now. I've discussed this with others as well and they agree. If you have any comments or concerns, feel free to share them.

Michael
03-29-2008, 10:30 PM
Phoronix Test Suite 0.0.1 was tagged this morning and now in a private beta... Initial public release coming soon.

it's working out pretty neat so far! :D

d2kx
03-30-2008, 06:04 AM
Really am looking forward to it do some some own benchmarking!

Michael
03-30-2008, 09:48 AM
There's also going to be an entirely new "feature" for this suite too... You'll just have to wait and see :D

Vadi
03-30-2008, 11:17 AM
I'm really interested now.

Michael
03-30-2008, 06:15 PM
I'm really interested now.

This is getting pretty exciting... :) A release (and article explaining it all) will hopefully be out on Wednesday... I would do Tuesday, but I think some may think then it's an April fools joke, which it isn't.

Vadi
03-31-2008, 09:01 AM
Haha, good point.

givemesugarr
04-02-2008, 07:59 AM
i immagine a full new posts of benchmarks after it is out.
maybe it would be a good idea about making a new forum division just for the users' benchmarks.

what i'd really like to see are benchmarks with different hw in different areas that phoronix for itself wouldn't be able to provide for what is out there running linux.

Kano
04-02-2008, 08:38 AM
I never saw a client app in php5-cli, will be interesting...

Michael
04-02-2008, 08:46 AM
maybe it would be a good idea about making a new forum division just for the users' benchmarks.

what i'd really like to see are benchmarks with different hw in different areas that phoronix for itself wouldn't be able to provide for what is out there running linux.

We've got a solution for that already.

Michael
04-02-2008, 11:34 AM
She's out: http://www.phoronix.com/vr.php?view=12136

ferocious
04-03-2008, 02:23 PM
Hi, I had problems when I try PTS with my Linux From Scratch


./phoronix-test-suite gui
\n\nPHP5 CLI Must Be Installed To Run The Phoronix Test Suite!
Only PHP For The Command Line Is Needed, Not A Full-Blown PHP w/ Web Server
If you are using Ubuntu you must run: sudo apt-get install php5-cli
If you are using Fedora you must run: yum install php-cli
For support visit: http://www.phoronix.com/forums/forumdisplay.php?f=49\n\n

Fatal error: Undefined class constant 'TYPE_STRING' in /home/users/turk2000/Download/phoronix-test-suite/pts-core/pts-main.php on line 48



./phoronix-test-suite benchmark universe

Warning: mkdir(): No such file or directory in /home/users/turk2000/Download/phoronix-test-suite/pts-core/functions/pts-functions.php on line 160

Warning: mkdir(): No such file or directory in /home/users/turk2000/Download/phoronix-test-suite/pts-core/functions/pts-functions.php on line 162

Warning: file_put_contents(/home/turk2000/pts-benchmark-env/.processes/phoronix-test-suite.p): failed to open stream: No such file or directory in /home/users/turk2000/Download/phoronix-test-suite/pts-core/functions/pts-functions.php on line 164

Installing Benchmarks For Universe Test Suite...


Warning: mkdir(): No such file or directory in /home/users/turk2000/Download/phoronix-test-suite/pts-core/functions/pts-functions-install.php on line 59

Warning: mkdir(): No such file or directory in /home/users/turk2000/Download/phoronix-test-suite/pts-core/functions/pts-functions-install.php on line 63

Warning: mkdir(): No such file or directory in /home/users/turk2000/Download/phoronix-test-suite/pts-core/functions/pts-functions-install.php on line 67


and


=================================
Installing Benchmark: encode-mp3
=================================

Warning: file_get_contents(/etc/lsb-release): failed to open stream: No such file or directory in /home/users/turk2000/Download/phoronix-test-suite/pts-core/functions/pts-functions_linux.php on line 60

Warning: file_get_contents(/etc/lsb-release): failed to open stream: No such file or directory in /home/users/turk2000/Download/phoronix-test-suite/pts-core/functions/pts-functions_linux.php on line 60


My distro is not LSB compliance. :eek:
I have php5, php-gtk installed.
Thank you and Good Game! :)

Michael
04-03-2008, 03:30 PM
Regarding the first error with GTK, that is because the GUI is shattered in there right now. It needs to be redone.

In regards to the other errors, those should go away if you're using the latest git code. They've been fixed post-0.1.0. 0.1.1 will be out soon.