Initial 0.1.0 Public Release

This commit is contained in:
Michael Larabel
2008-04-02 10:15:24 -04:00
commit 79238c94a0
98 changed files with 7716 additions and 0 deletions

81
CHANGE-LOG Normal file
View File

@@ -0,0 +1,81 @@
PHORONIX TEST SUITE CHANGE-LOG
Phoronix Test Suite 0.1.0
- Initial public release! (April 2, 2008)
Phoronix Test Suite 0.0.9
- phoronix-test-suite list-tests now displays the profile's status and the license type of software
- Drop pts-core/pts-results-viewer/text.gif
- Fix 0.0.8 regression as the zero fix caused no results to be saved
- Allow "upload" argument to use relative/absolute path instead of just the save name
Phoronix Test Suite 0.0.8
- Save result even if the value is zero
- Fix merge-results bug when using global ID(s)
Phoronix Test Suite 0.0.7
- Support for benchmark <Global ID> for extracting all arguments from that test.
- Support for benchmark <Local File> for extracting all arguments from that test.
- Change list-benchmarks to list-tests
- A number of end-user input checks and errors if arguments are missing
- Various bug fixes in path to 0.1
Phoronix Test Suite 0.0.6
- Nexuiz 2.4 Profile
- Added ImageMagick Build Profile
- Add Linux Kernel (2.6.25) Build Profile
- Add Universe Profile (universe). The Universe profile is made up of all Phoronix Test Suite benchmark profiles in a maintained state.
- Fix compress-gzip profile so results are actually outputted
- Added Enemy Territory: Quake Wars demo profile... currently seems to hang on start
- Added (optional) PreRunMessage to benchmarking profiles at PTSBenchmark/Information/PreRunMessage. This just displays a string of information (such as a warning or benchmark limitation) and then when the user hits any key the benchmark will continue.
- Hdparm profile script now uses gksu (TODO: support other *su)
- EnvironmentDirectory in user-config.xml now requires an absolute location. Defaults to ~/pts-benchmark-env.
- Fix list-saved-tests so that it will actually list the saved tests.
- Introduce pts_save_result. Checks for SAVE_RESULTS_LOCATION and makes it if it doesn't exist and copies over the XSL, CSS, and JavaScript to SAVE_RESULTS_LOCATION/pts-results/viewer for the results viewer.
- Use profile-check on the global database for checking whether Global ID is valid remotely, instead of attempting fetch directly.
- Fix bug where if you entered an invalid benchmark/suite name, it would ask if you wanted to save the results before realizing it didn't exist.
Phoronix Test Suite 0.0.5
- Code cleaning
- More improvements with Phoronix Test Suite Global Database
Phoronix Test Suite 0.0.4-1
- Fix a remote-comparison regression
Phoronix Test Suite 0.0.4
- Support for registered/authenticated uploads to global database
- Directory for saved results is now exported to user-config.xml
- New Global Database features
- Fix X Server 1.3.0 detection
Phoronix Test Suite 0.0.3
- Initial "Global Database" interaction
- "Do you want to open in your web browser?" CLI dialog
- Fix Intel Pentium M core detection count (Pentium M's don't have 9 cores)
- Merge fixes
Phoronix Test Suite 0.0.2
- Initial remote upload support
- Initial remote comparison support
- Refined directory structure
- Separating out Linux-specific hardware/software calls for parsing
- Support storing/installing benchmarks in different directories
- A few merging bug fixes
- Support for suites calling other suites, handled recursively
- Various bug fixes.
Phoronix Test Suite 0.0.1
- Initial Private Release

674
COPYING Normal file
View File

@@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.

22
LICENSE Normal file
View File

@@ -0,0 +1,22 @@
Copyright (C) 2008, Phoronix Media.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
CONTACT INFORMATION:
http://www.phoronix.com/
http://www.phoronix-test-suite.com/
http://www.phoronixmedia.com/

17
README Normal file
View File

@@ -0,0 +1,17 @@
Copyright (C) 2008, Phoronix Media.
Phoronix Test Suite: Proper Documentation Coming Soon...
Phoronix Test Suite is licensed under the GNU GPLv3. See COPYING file for more details.
Patches, new profiles, etc welcome. Non-technical support messages can be directed to phoronix [at] phoronix.com.
LINKS:
Check Out This Link To See What The Phoronix Test Suite Is All About (Guide, Announcement, & More): http://www.phoronix.com/scan.php?page=article&item=phoronix_pts&num=1
Support, Discussion Forum: http://www.phoronix.com/forums/forumdisplay.php?f=49
Project Website: http://www.phoronix-test-suite.com/
PTS Global: http://global.phoronix-test-suite.com/
Latest Git Code: http://www.phorogit.com/
Phoronix: http://www.phoronix.com/

27
TODO Normal file
View File

@@ -0,0 +1,27 @@
- Rewrite and finish GUI component
- Clean up / make nice of text output
- Support multiple possible paths
- i.e. /usr/local/games/doom3/ || ~/doom3/
- Right now stuck to benchmark-env but can be changed easily
- Copying Game Files from Discs (id Software Games)
- Verbose output of all system details, benchmark dumps, etc
- Improve / clean-up tandem_xml
- Add More Benchmarks!
- Provide Warnings For Major Things Possibly Influencing Results
- i.e. if EIST / Cool n Quiet are enabled
- Choice of SH or PHP for all install scripts
- Defaults values if hardware detection functions fail
- PossiblePaths to support multiple possible install locations, separated by : delimiter.
- pts/pts-functions-run.php: Merge common areas of pts_run_benchmark() and run_gtk_benchmark().
- Use new (larger) Wav file for benchmarks... internal Phoronix WAV file used is copyrighted music. Current PTS One is too small for reliable results.
- Multiple results from a single benchmark (i.e. ramspeed with add, scale, sub)
- Improved hardware detection (i.e. recognize multiple graphics cards)
- Change all the echos to fwrite with using STDOUT or STDERR where relevant
- Support browsers aside from just Firefox launch. detect what's installed.
- PTS merge results needs all of the compatibility checks in place
- "Optimization Tips"
- More MD5 checks in test scripts
- Change locking system away from time-based but to PID based
- A ton of compatibility checks to do with merges and comparisons!
- Clean up tests scripts
- Support for WINE tests

76
phoronix-test-suite Executable file
View File

@@ -0,0 +1,76 @@
#!/bin/sh
# Phoronix Test Suite
# Copyright (C) 2008, Phoronix Media.
# http://www.phoronix.com/
# http://www.phoronix-test-suite.com/
# The Phoronix Test Suite is licensed under the GNU GPLv3. For more information see COPYING
if [ ! -x /usr/bin/php ] && [ ! -x /usr/local/bin/php ]
then
echo "\n\nPHP5 CLI Must Be Installed To Run The Phoronix Test Suite!"
echo "Only PHP For The Command Line Is Needed, Not A Full-Blown PHP w/ Web Server"
echo "If you are using Ubuntu you must run: sudo apt-get install php5-cli"
echo "If you are using Fedora you must run: yum install php-cli"
echo "For support visit: http://www.phoronix.com/forums/forumdisplay.php?f=49\n\n"
fi
task=$1
case "${task}" in
"gui")
php pts-core/pts-main.php
;;
"install")
php pts-core/pts-install-benchmark.php $2
;;
"run")
php pts-core/pts-run-benchmark.php $2
;;
"benchmark")
php pts-core/pts-install-benchmark.php $2
php pts-core/pts-run-benchmark.php $2
;;
"merge-results")
php pts-core/pts-merge-results.php $2 $3 $4
;;
"remove-result")
php pts-core/pts-run-cmd.php REMOVE_RESULT $2
;;
"upload")
php pts-core/pts-run-cmd.php UPLOAD_RESULT $2
;;
"list-tests")
php pts-core/pts-run-cmd.php LIST_TESTS
;;
"list-suites")
php pts-core/pts-run-cmd.php LIST_SUITES
;;
"list-saved-tests")
php pts-core/pts-run-cmd.php LIST_SAVED_TESTS
;;
"remote-comparison")
php pts-core/pts-run-cmd.php REMOTE_COMPARISON $2 $3
;;
"build-php")
echo "TODO: Not Yet Implemented!"
;;
*)
echo "\n================================="
echo "Phoronix Test Suite Arguments"
echo "http://www.phoronix-test-suite.com/"
echo "=================================\n"
echo "gui: Launch The Phoronix Test Suite GUI"
echo "install <suite OR benchmark>: Install or Update The Specified Benchmark(s)"
echo "run <suite OR benchmark>: Run The Specified Benchmark/Suite"
echo "benchmark <suite OR benchmark OR saved file>: Same as manually running install and then run"
echo "merge-results <Saved File 1 OR Global ID> <Saved File 2 OR Global ID> <Save To>: Merge two saved result sets"
echo "remove-result <Saved File>: Remove this saved result file and associated files"
echo "list-tests: List all Phoronix Test Suite Benchmark profiles"
echo "list-suites: List all Phoronix Test Suites"
echo "list-saved-tests: List all saved results"
echo "upload <Saved File>: Upload these results to be shared globally"
echo "build-php: Build A Local Copy Of PHP For The Phoronix Test Suite"
echo "\n"
;;
esac

View File

@@ -0,0 +1,54 @@
<?php
function gtk_shutdown()
{
gtk::main_quit();
}
function gtk_quick_alert($message)
{
$dialog = new GtkDialog("Phoronix Test Suite", null, Gtk::DIALOG_MODAL);
$dialog->set_size_request(250, -1);
$box = $dialog->vbox;
$box->pack_start($hbox = new GtkHBox());
$message_label = new GtkLabel($message);
$message_label->set_size_request(230, -1);
$message_label->set_line_wrap(true);
$hbox->pack_start($message_label);
$dialog->add_button(Gtk::STOCK_OK, Gtk::RESPONSE_OK);
$dialog->show_all();
$dialog->run();
$dialog->destroy();
}
function gtk_benchmark_results($message)
{
$dialog = new GtkDialog("Phoronix Test Suite", null, Gtk::DIALOG_MODAL);
$dialog->set_size_request(500, -1);
$box = $dialog->vbox;
$box->pack_start($hbox = new GtkHBox());
$message_label = new GtkLabel($message);
$message_label->set_size_request(460, -1);
$message_label->set_line_wrap(true);
$hbox->pack_start($message_label);
$dialog->add_button(Gtk::STOCK_OK, Gtk::RESPONSE_OK);
$dialog->show_all();
$dialog->run();
$dialog->destroy();
}
function combobox_select(&$button, $combobox)
{
$model = $combobox->get_model();
$selection = $model->get_value($combobox->get_active_iter(), 0);
$benchmark = pts_benchmark_name_to_identifier($selection);
if(!$benchmark)
{
gtk_quick_alert("No benchmark selected!");
}
else
{
echo exec("php pts-core/pts-benchmark-screen.php " . $benchmark);
}
}
?>

View File

@@ -0,0 +1,82 @@
<?php
function pts_recurse_install_benchmark($TO_INSTALL)
{
$type = pts_benchmark_type($TO_INSTALL);
if($type == "BENCHMARK")
{
pts_install_benchmark($TO_INSTALL);
}
else if($type == "TEST_SUITE")
{
echo "\nInstalling Benchmarks For " . ucwords($TO_INSTALL) . " Test Suite...\n\n";
$xml_parser = new tandem_XmlReader(file_get_contents(XML_SUITE_LOCATION . "$TO_INSTALL.xml"));
$suite_benchmarks = $xml_parser->getXMLArrayValues("PTSuite/PTSBenchmark/Benchmark");
foreach($suite_benchmarks as $benchmark)
pts_recurse_install_benchmark($benchmark);
}
else if(is_file(pts_input_correct_results_path($TO_INSTALL)))
{
$xml_parser = new tandem_XmlReader(file_get_contents(pts_input_correct_results_path($TO_INSTALL)));
$suite_benchmarks = $xml_parser->getXMLArrayValues("PhoronixTestSuite/Benchmark/TestName");
foreach($suite_benchmarks as $benchmark)
{
pts_recurse_install_benchmark($benchmark);
}
}
else if(trim(file_get_contents("http://www.phoronix-test-suite.com/global/profile-check.php?id=$TO_INSTALL")) == "REMOTE_FILE")
{
$xml_parser = new tandem_XmlReader(file_get_contents("http://www.phoronix-test-suite.com/global/pts-results-viewer.php?id=$TO_INSTALL"));
$suite_benchmarks = $xml_parser->getXMLArrayValues("PhoronixTestSuite/Benchmark/TestName");
foreach($suite_benchmarks as $benchmark)
{
pts_recurse_install_benchmark($benchmark);
}
}
else
echo "\nNot recognized: $TO_INSTALL.\n";
}
function pts_install_benchmark($Benchmark)
{
if(pts_benchmark_type($Benchmark) != "BENCHMARK")
return;
if(is_file(BENCHMARK_ENVIRONMENT . "$Benchmark/pts-install") && file_get_contents(BENCHMARK_ENVIRONMENT . "$Benchmark/pts-install") == md5_file(BENCHMARK_RESOURCE_LOCATION . "$Benchmark/install.sh"))
{
echo ucwords($Benchmark) . " is already installed, skipping installation routine...\n";
}
else
{
if(is_file(BENCHMARK_RESOURCE_LOCATION . "$Benchmark/install.sh"))
{
if(!is_dir(BENCHMARK_ENVIRONMENT))
{
mkdir(BENCHMARK_ENVIRONMENT);
}
if(!is_dir(BENCHMARK_ENVIRONMENT . $Benchmark))
{
mkdir(BENCHMARK_ENVIRONMENT . $Benchmark);
}
if(!is_dir(BENCHMARK_ENVIRONMENT . "pts-shared"))
{
mkdir(BENCHMARK_ENVIRONMENT . "pts-shared");
}
echo "\n=================================\n";
echo "Installing Benchmark: $Benchmark";
echo "\n=================================\n";
echo pts_exec("cd " . BENCHMARK_RESOURCE_LOCATION . "$Benchmark/ && sh install.sh " . BENCHMARK_ENVIRONMENT . $Benchmark) . "\n";
file_put_contents(BENCHMARK_ENVIRONMENT . "$Benchmark/pts-install", md5_file(BENCHMARK_RESOURCE_LOCATION . "$Benchmark/install.sh"));
}
else
echo ucwords($Benchmark) . " has no installation script, skipping installation routine...\n";
}
}
?>

View File

@@ -0,0 +1,165 @@
<?php
// TODO: Lots with merging results and validation
function pts_find_file($file)
{
if(is_file($file))
$USE_FILE = $file;
else if(is_file(SAVE_RESULTS_LOCATION . "$file.xml"))
$USE_FILE = SAVE_RESULTS_LOCATION . "$file.xml";
else if(trim(file_get_contents("http://www.phoronix-test-suite.com/global/profile-check.php?id=$file")) == "REMOTE_FILE")
$USE_FILE = "http://www.phoronix-test-suite.com/global/pts-results-viewer.php?id=$file";
else
{
echo "File: " . $file . " couldn't be found. Exiting...";
exit(0);
}
return $USE_FILE;
}
function pts_merge_benchmarks($OLD_RESULTS, $NEW_RESULTS)
{
// RE-READ LATEST RESULTS
$new_xml_reader = new tandem_XmlReader($NEW_RESULTS);
$new_system_hardware = $new_xml_reader->getXMLArrayValues("PhoronixTestSuite/System/Hardware");
$new_system_software = $new_xml_reader->getXMLArrayValues("PhoronixTestSuite/System/Software");
$new_system_author = $new_xml_reader->getXMLArrayValues("PhoronixTestSuite/System/Author");
$new_system_notes = $new_xml_reader->getXMLArrayValues("PhoronixTestSuite/System/TestNotes");
$new_system_date = $new_xml_reader->getXMLArrayValues("PhoronixTestSuite/System/TestDate");
$new_pts_version = $new_xml_reader->getXMLArrayValues("PhoronixTestSuite/System/Version");
$new_associated_identifiers = $new_xml_reader->getXMLArrayValues("PhoronixTestSuite/System/AssociatedIdentifiers");
$new_results_raw = $new_xml_reader->getXMLArrayValues("PhoronixTestSuite/Benchmark/Results");
$new_suite_name = $new_xml_reader->getXMLValue("PhoronixTestSuite/Suite/Name");
$new_suite_version = $new_xml_reader->getXMLValue("PhoronixTestSuite/Suite/Version");
$new_suite_title = $new_xml_reader->getXMLValue("PhoronixTestSuite/Suite/Title");
$new_suite_description = $new_xml_reader->getXMLValue("PhoronixTestSuite/Suite/Description");
$new_suite_type = $new_xml_reader->getXMLValue("PhoronixTestSuite/Suite/Type");
$new_suite_maintainer = $new_xml_reader->getXMLValue("PhoronixTestSuite/Suite/Maintainer");
$new_results_identifiers = array();
$new_results_values = array();
foreach($new_results_raw as $new_result_raw)
{
$new_xml_results = new tandem_XmlReader($new_result_raw);
array_push($new_results_identifiers, $new_xml_results->getXMLArrayValues("Group/Entry/Identifier"));
array_push($new_results_values, $new_xml_results->getXMLArrayValues("Group/Entry/Value"));
}
unset($NEW_RESULTS, $new_xml_reader, $new_results_raw);
// READ ORIGINAL RESULTS
$original_xml_reader = new tandem_XmlReader($OLD_RESULTS);
$original_system_hardware = $original_xml_reader->getXMLArrayValues("PhoronixTestSuite/System/Hardware");
$original_system_software = $original_xml_reader->getXMLArrayValues("PhoronixTestSuite/System/Software");
$original_system_author = $original_xml_reader->getXMLArrayValues("PhoronixTestSuite/System/Author");
$original_system_notes = $original_xml_reader->getXMLArrayValues("PhoronixTestSuite/System/TestNotes");
$original_system_date = $original_xml_reader->getXMLArrayValues("PhoronixTestSuite/System/TestDate");
$original_pts_version = $original_xml_reader->getXMLArrayValues("PhoronixTestSuite/System/Version");
$original_associated_identifiers = $original_xml_reader->getXMLArrayValues("PhoronixTestSuite/System/AssociatedIdentifiers");
$original_results_raw = $original_xml_reader->getXMLArrayValues("PhoronixTestSuite/Benchmark/Results");
$original_suite_name = $original_xml_reader->getXMLValue("PhoronixTestSuite/Suite/Name");
$original_suite_version = $original_xml_reader->getXMLValue("PhoronixTestSuite/Suite/Version");
$original_results_name = $original_xml_reader->getXMLArrayValues("PhoronixTestSuite/Benchmark/Name");
$original_results_version = $original_xml_reader->getXMLArrayValues("PhoronixTestSuite/Benchmark/Version");
$original_results_attributes = $original_xml_reader->getXMLArrayValues("PhoronixTestSuite/Benchmark/Attributes");
$original_results_scale = $original_xml_reader->getXMLArrayValues("PhoronixTestSuite/Benchmark/Scale");
$original_results_testname = $original_xml_reader->getXMLArrayValues("PhoronixTestSuite/Benchmark/TestName");
$original_results_arguments = $original_xml_reader->getXMLArrayValues("PhoronixTestSuite/Benchmark/TestArguments");
$original_results_proportion = $original_xml_reader->getXMLArrayValues("PhoronixTestSuite/Benchmark/Proportion");
$original_results_result_format = $original_xml_reader->getXMLArrayValues("PhoronixTestSuite/Benchmark/ResultFormat");
$original_results_identifiers = array();
$original_results_values = array();
foreach($original_results_raw as $original_result_raw)
{
$original_xml_results = new tandem_XmlReader($original_result_raw);
array_push($original_results_identifiers, $original_xml_results->getXMLArrayValues("Group/Entry/Identifier"));
array_push($original_results_values, $original_xml_results->getXMLArrayValues("Group/Entry/Value"));
}
unset($OLD_RESULTS, $original_xml_reader, $original_results_raw);
$RESULTS = new tandem_XmlWriter();
$RESULTS->setXslBinding("pts-results-viewer/pts-results-viewer.xsl");
$RESULTS->addXmlObject("PhoronixTestSuite/Suite/Title", 0, $new_suite_title);
$RESULTS->addXmlObject("PhoronixTestSuite/Suite/Name", 0, $new_suite_name);
$RESULTS->addXmlObject("PhoronixTestSuite/Suite/Version", 0, $new_suite_version);
$RESULTS->addXmlObject("PhoronixTestSuite/Suite/Description", 0, $new_suite_description);
$RESULTS->addXmlObject("PhoronixTestSuite/Suite/Type", 0, $new_suite_type);
$RESULTS->addXmlObject("PhoronixTestSuite/Suite/Maintainer", 0, $new_suite_maintainer);
// TODO: ADD MORE COMPATIBILITY CHECKS!!!!
if(count($original_system_hardware) == 1 && count($new_system_hardware) == 1 && $original_system_hardware[0] == $new_system_hardware[0] && $original_system_software[0] == $new_system_software[0] && $original_pts_version[0] == $new_pts_version[0])
{
$USE_ID = pts_request_new_id();
$RESULTS->addXmlObject("PhoronixTestSuite/System/Hardware", $USE_ID, $original_system_hardware[0]);
$RESULTS->addXmlObject("PhoronixTestSuite/System/Software", $USE_ID, $original_system_software[0]);
$RESULTS->addXmlObject("PhoronixTestSuite/System/Author", $USE_ID, $original_system_author[0]);
$RESULTS->addXmlObject("PhoronixTestSuite/System/TestDate", $USE_ID, date("F j, Y h:i A"));
$RESULTS->addXmlObject("PhoronixTestSuite/System/TestNotes", $USE_ID, $original_system_notes[0]);
$RESULTS->addXmlObject("PhoronixTestSuite/System/Version", $USE_ID, $original_pts_version[0]);
$RESULTS->addXmlObject("PhoronixTestSuite/System/AssociatedIdentifiers", $USE_ID, $original_associated_identifiers[0] . "," . $new_associated_identifiers[0]);
}
else
{
for($i = 0; $i < count($original_system_hardware); $i++)
{
$USE_ID = pts_request_new_id();
$RESULTS->addXmlObject("PhoronixTestSuite/System/Hardware", $USE_ID, $original_system_hardware[$i]);
$RESULTS->addXmlObject("PhoronixTestSuite/System/Software", $USE_ID, $original_system_software[$i]);
$RESULTS->addXmlObject("PhoronixTestSuite/System/Author", $USE_ID, $original_system_author[$i]);
$RESULTS->addXmlObject("PhoronixTestSuite/System/TestDate", $USE_ID, $original_system_date[$i]);
$RESULTS->addXmlObject("PhoronixTestSuite/System/TestNotes", $USE_ID, $original_system_notes[$i]);
$RESULTS->addXmlObject("PhoronixTestSuite/System/Version", $USE_ID, $original_pts_version[$i]);
$RESULTS->addXmlObject("PhoronixTestSuite/System/AssociatedIdentifiers", $USE_ID, $original_associated_identifiers[$i]);
}
for($i = 0; $i < count($new_system_hardware); $i++)
{
$USE_ID = pts_request_new_id();
$RESULTS->addXmlObject("PhoronixTestSuite/System/Hardware", $USE_ID, $new_system_hardware[$i]);
$RESULTS->addXmlObject("PhoronixTestSuite/System/Software", $USE_ID, $new_system_software[$i]);
$RESULTS->addXmlObject("PhoronixTestSuite/System/Author", $USE_ID, $new_system_author[$i]);
$RESULTS->addXmlObject("PhoronixTestSuite/System/TestDate", $USE_ID, $new_system_date[$i]);
$RESULTS->addXmlObject("PhoronixTestSuite/System/TestNotes", $USE_ID, $new_system_notes[$i]);
$RESULTS->addXmlObject("PhoronixTestSuite/System/Version", $USE_ID, $new_pts_version[$i]);
$RESULTS->addXmlObject("PhoronixTestSuite/System/AssociatedIdentifiers", $USE_ID, $new_associated_identifiers[$i]);
}
}
for($b = 0; $b < count($original_results_identifiers); $b++)
{
$USE_ID = pts_request_new_id();
$RESULTS->addXmlObject("PhoronixTestSuite/Benchmark/Name", $USE_ID, $original_results_name[$b]);
$RESULTS->addXmlObject("PhoronixTestSuite/Benchmark/Version", $USE_ID, $original_results_version[$b]);
$RESULTS->addXmlObject("PhoronixTestSuite/Benchmark/Attributes", $USE_ID, $original_results_attributes[$b]);
$RESULTS->addXmlObject("PhoronixTestSuite/Benchmark/Scale", $USE_ID, $original_results_scale[$b]);
$RESULTS->addXmlObject("PhoronixTestSuite/Benchmark/Proportion", $USE_ID, $original_results_proportion[$b]);
$RESULTS->addXmlObject("PhoronixTestSuite/Benchmark/TestName", $USE_ID, $original_results_testname[$b]);
$RESULTS->addXmlObject("PhoronixTestSuite/Benchmark/TestArguments", $USE_ID, $original_results_arguments[$b]);
$RESULTS->addXmlObject("PhoronixTestSuite/Benchmark/ResultFormat", $USE_ID, $original_results_result_format[$b]);
for($o = 0; $o < count($original_results_identifiers[$b]); $o++)
{
$RESULTS->addXmlObject("PhoronixTestSuite/Benchmark/Results/Group/Entry/Identifier", $USE_ID, $original_results_identifiers[$b][$o], 5, "o-$b-$o");
$RESULTS->addXmlObject("PhoronixTestSuite/Benchmark/Results/Group/Entry/Value", $USE_ID, $original_results_values[$b][$o], 5, "o-$b-$o");
}
for($o = 0; $o < count($new_results_identifiers[$b]); $o++)
{
$RESULTS->addXmlObject("PhoronixTestSuite/Benchmark/Results/Group/Entry/Identifier", $USE_ID, $new_results_identifiers[$b][$o], 5, "n-$b-$o");
$RESULTS->addXmlObject("PhoronixTestSuite/Benchmark/Results/Group/Entry/Value", $USE_ID, $new_results_values[$b][$o], 5, "n-$b-$o");
}
}
return $RESULTS->getXML();
}
?>

View File

@@ -0,0 +1,183 @@
<?php
function pts_recurse_call_benchmark($benchmarks_array, $arguments_array, $save_results = false, &$tandem_xml = "", $results_identifier = "", $arguments_description = "")
{
for($i = 0; $i < count($benchmarks_array); $i++)
{
if(pts_benchmark_type($benchmarks_array[$i]) == "TEST_SUITE")
{
$xml_parser = new tandem_XmlReader(file_get_contents(XML_SUITE_LOCATION . $benchmarks_array[$i] . ".xml"));
$sub_suite_benchmarks = $xml_parser->getXMLArrayValues("PTSuite/PTSBenchmark/Benchmark");
$sub_arguments = $xml_parser->getXMLArrayValues("PTSuite/PTSBenchmark/Arguments");
$sub_arguments_description = $xml_parser->getXMLArrayValues("PTSuite/PTSBenchmark/Description");
pts_recurse_call_benchmark($sub_suite_benchmarks, $sub_arguments, $save_results, $tandem_xml, $results_identifier, $sub_arguments_description);
}
else
{
$test_result = pts_run_benchmark($benchmarks_array[$i], $arguments_array[$i]);
if($save_results)
pts_save_benchmark_result($tandem_xml, $benchmarks_array[$i], $arguments_array[$i], $results_identifier, $test_result, $arguments_description[$i], pts_request_new_id());
if($i != (count($benchmarks_array) - 1))
sleep(pts_read_user_config("PhoronixTestSuite/Options/Benchmarking/SleepTimeBetweenTests", 5));
}
}
}
function pts_save_benchmark_result(&$tandem_xml, $benchmark, $arguments, $identifier, $result, $description, $tandem_id = 128)
{
if($result > -1 && strlen($result) < 12)
{
global $BENCHMARK_RAN;
$xml_parser = new tandem_XmlReader(file_get_contents(XML_PROFILE_LOCATION . $benchmark . ".xml"));
$benchmark_title = $xml_parser->getXMLValue("PTSBenchmark/Information/Title");
$benchmark_version = $xml_parser->getXMLValue("PTSBenchmark/Information/Version");
$result_scale = $xml_parser->getXMLValue("PTSBenchmark/Information/ResultScale");
$proportion = $xml_parser->getXMLValue("PTSBenchmark/Information/Proportion");
$default_arguments = $xml_parser->getXMLValue("PTSBenchmark/Settings/Default/Arguments");
unset($xml_parser);
if(empty($description))
$description = "Phoronix Test Suite v" . PTS_VERSION;
$tandem_xml->addXmlObject("PhoronixTestSuite/Benchmark/Name", $tandem_id, $benchmark_title);
$tandem_xml->addXmlObject("PhoronixTestSuite/Benchmark/Version", $tandem_id, $benchmark_version);
$tandem_xml->addXmlObject("PhoronixTestSuite/Benchmark/Attributes", $tandem_id, $description);
$tandem_xml->addXmlObject("PhoronixTestSuite/Benchmark/Scale", $tandem_id, $result_scale);
$tandem_xml->addXmlObject("PhoronixTestSuite/Benchmark/Proportion", $tandem_id, $proportion);
$tandem_xml->addXmlObject("PhoronixTestSuite/Benchmark/ResultFormat", $tandem_id, "BAR_GRAPH");
$tandem_xml->addXmlObject("PhoronixTestSuite/Benchmark/TestName", $tandem_id, $benchmark);
$tandem_xml->addXmlObject("PhoronixTestSuite/Benchmark/TestArguments", $tandem_id, trim($default_arguments . " " . $arguments));
$tandem_xml->addXmlObject("PhoronixTestSuite/Benchmark/Results/Group/Entry/Identifier", $tandem_id, $identifier, 5);
$tandem_xml->addXmlObject("PhoronixTestSuite/Benchmark/Results/Group/Entry/Value", $tandem_id, $result, 5);
$BENCHMARK_RAN = true;
}
}
function pts_save_benchmark_file($PROPOSED_FILE_NAME, &$RESULTS = null, $RAW_TEXT = null)
{
$j = 1;
while(is_file(SAVE_RESULTS_LOCATION . "$PROPOSED_FILE_NAME-$j.xml"))
$j++;
$REAL_FILE_NAME = $PROPOSED_FILE_NAME . '-' . $j;
if($RESULTS != null)
$R_FILE = $RESULTS->getXML();
else if($RAW_TEXT != null)
$R_FILE = $RAW_TEXT;
else
return false;
pts_save_result("$REAL_FILE_NAME.xml", $R_FILE);
if(!is_file(SAVE_RESULTS_LOCATION . "$PROPOSED_FILE_NAME.xml"))
copy(SAVE_RESULTS_LOCATION . "$REAL_FILE_NAME.xml", SAVE_RESULTS_LOCATION . "$PROPOSED_FILE_NAME.xml");
else
{
// Merge Results
$MERGED_RESULTS = pts_merge_benchmarks(file_get_contents(SAVE_RESULTS_LOCATION . "$PROPOSED_FILE_NAME.xml"), file_get_contents(SAVE_RESULTS_LOCATION . "$REAL_FILE_NAME.xml"));
pts_save_result("$PROPOSED_FILE_NAME.xml", $MERGED_RESULTS);
}
return $REAL_FILE_NAME;
}
function pts_run_benchmark($benchmark_identifier, $extra_arguments = "")
{
if(pts_process_active($benchmark_identifier))
{
echo "\nThis benchmark ($benchmark_identifier) is already running... Please wait until the first instance is finished.\n";
return 0;
}
pts_process_register($benchmark_identifier);
$xml_parser = new tandem_XmlReader(file_get_contents(XML_PROFILE_LOCATION . "$benchmark_identifier.xml"));
$execute_binary = $xml_parser->getXMLValue("PTSBenchmark/Information/Executable");
$benchmark_title = $xml_parser->getXMLValue("PTSBenchmark/Information/Title");
$times_to_run = intval($xml_parser->getXMLValue("PTSBenchmark/Information/TimesToRun"));
$pre_run_message = $xml_parser->getXMLValue("PTSBenchmark/Information/PreRunMessage");
$result_scale = $xml_parser->getXMLValue("PTSBenchmark/Information/ResultScale");
$arg_identifier = $xml_parser->getXMLArrayValues("PTSBenchmark/Settings/Option/Identifier");
$execute_path = $xml_parser->getXMLValue("PTSBenchmark/Settings/Default/PossiblePaths");
$default_arguments = $xml_parser->getXMLValue("PTSBenchmark/Settings/Default/Arguments");
if(empty($times_to_run) || !is_int($times_to_run))
$times_to_run = 1;
if(is_file(BENCHMARK_ENVIRONMENT . "$benchmark_identifier/$execute_binary") || is_link(BENCHMARK_ENVIRONMENT . "$benchmark_identifier/$execute_binary"))
$to_execute = BENCHMARK_ENVIRONMENT . "$benchmark_identifier/";
else if(is_file($execute_path . $execute_binary) || is_link($execute_path . $execute_binary)) //TODO: Support multiple paths in PossiblePaths separated by : delimiter.
$to_execute = $execute_path;
else
{
echo "This application executable could not be found in " . $execute_path . ". or " . BENCHMARK_ENVIRONMENT . "$benchmark_identifier/.\nBenchmark terminating.";
return;
}
if(is_dir(BENCHMARK_ENVIRONMENT . "$benchmark_identifier/") && file_get_contents(BENCHMARK_ENVIRONMENT . "$benchmark_identifier/pts-install") != md5_file(BENCHMARK_RESOURCE_LOCATION . "$benchmark_identifier/install.sh"))
{
echo "\n=================================\nNOTE: Your benchmarking installation is out of date!\nFor best results, the $benchmark_title benchmark should be reinstalled.\n=================================\n\n";
// Auto reinstall
//require_once("pts-core/functions/pts-functions-run.php");
//pts_install_benchmark($benchmark_identifier);
}
$PTS_BENCHMARK_ARGUMENTS = trim($default_arguments . " " . $extra_arguments);
$BENCHMARK_RESULTS_ARRAY = array();
if(is_file(BENCHMARK_RESOURCE_LOCATION . $benchmark_identifier . "/pre.sh"))
{
echo "\n=================================\nExecuting Pre-Benchmark Tasks\n=================================\n";
echo shell_exec("sh " . BENCHMARK_RESOURCE_LOCATION . $benchmark_identifier . "/pre.sh " . BENCHMARK_ENVIRONMENT . "$benchmark_identifier");
}
if(!empty($pre_run_message))
{
echo "\n=================================\nPre-Run Message\n=================================\n";
echo $pre_run_message . "\n";
echo "\nHit Any Key To Continue Benchmarking.\n";
fgets(STDIN);
}
for($i = 0; $i < $times_to_run; $i++)
{
echo "\n=================================\n$benchmark_title Benchmark (Run " . ($i + 1) . " of " . $times_to_run . ")\n=================================\n";
$result_output = array();
echo $BENCHMARK_RESULTS = pts_exec("cd $to_execute; ./$execute_binary $PTS_BENCHMARK_ARGUMENTS");
if(is_file(BENCHMARK_RESOURCE_LOCATION . $benchmark_identifier . "/parse-results.php"))
{
$BENCHMARK_RESULTS = pts_exec("cd " . BENCHMARK_RESOURCE_LOCATION . $benchmark_identifier . "/ && php parse-results.php \"$BENCHMARK_RESULTS\"");
}
array_push($BENCHMARK_RESULTS_ARRAY, $BENCHMARK_RESULTS);
}
if(is_file(BENCHMARK_RESOURCE_LOCATION . $benchmark_identifier . "/post.sh"))
{
echo "\n=================================\nExecuting Post-Benchmark Tasks\n=================================\n";
echo pts_exec("sh " . BENCHMARK_RESOURCE_LOCATION . $benchmark_identifier . "/post.sh " . BENCHMARK_ENVIRONMENT . "$benchmark_identifier");
}
// End
$RETURN_STRING = "$benchmark_title Results:\n\n";
$TOTAL_RESULT = 0;
foreach($BENCHMARK_RESULTS_ARRAY as $result)
{
$TOTAL_RESULT += $result;
$RETURN_STRING .= $result . " $result_scale\n";
}
$AVG_RESULT = bcdiv($TOTAL_RESULT / sizeof($BENCHMARK_RESULTS_ARRAY), 1, 2);
$RETURN_STRING .= "\nAverage: $AVG_RESULT $result_scale";
echo "\n=================================\n$RETURN_STRING\n=================================\n";
pts_process_remove($benchmark_identifier);
return $AVG_RESULT;
}
?>

View File

@@ -0,0 +1,286 @@
<?php
/*
Copyright (C) 2008, Michael Larabel.
Copyright (C) 2008, Phoronix Media.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
define("PTS_VERSION", "0.1.0");
define("PTS_LINE", "PTSV1LD");
define("PTS_TYPE", "DESKTOP");
define("THIS_RUN_TIME", time());
define("XML_PROFILE_LOCATION", "pts/benchmark-profiles/");
define("XML_SUITE_LOCATION", "pts/benchmark-suites/");
define("BENCHMARK_RESOURCE_LOCATION", "pts/benchmark-resources/");
define("BENCHMARK_ENVIRONMENT", pts_find_home(pts_read_user_config("PhoronixTestSuite/Options/Benchmarking/EnvironmentDirectory", "~/benchmark-env/")));
define("SAVE_RESULTS_LOCATION", pts_find_home(pts_read_user_config("PhoronixTestSuite/Options/Benchmarking/ResultsDirectory", "test-results/")));
// Load OS-specific functions
require_once("pts-core/functions/pts-functions_linux.php");
// Etc
$PTS_GLOBAL_ID = 1;
if(pts_process_active("phoronix-test-suite"))
{
echo "\nWARNING: It appears that the Phoronix Test Suite is already running.\nFor proper results, only run one instance at a time.\n";
}
pts_process_register("phoronix-test-suite");
register_shutdown_function("pts_process_remove", "phoronix-test-suite");
function __autoload($to_load)
{
if(is_file("pts-core/objects/$to_load.php"))
require_once("pts-core/objects/$to_load.php");
}
// Phoronix Test Suite - Functions
function pts_find_home($path)
{
if(strpos($path, '~') !== FALSE)
{
$whoami = trim(shell_exec("whoami"));
if($whoami == "root")
$home_path = "/root";
else
$home_path = "/home/$whoami";
$path = str_replace('~', $home_path, $path);
}
return $path;
}
function pts_current_user()
{
$pts_user = pts_read_user_config("PhoronixTestSuite/GlobalDatabase/UserName", "Default User");
if($pts_user == "Default User")
$pts_user = trim(shell_exec("whoami"));
return $pts_user;
}
function pts_benchmark_names_to_array()
{
$benchmark_names = array();
foreach(glob(XML_PROFILE_LOCATION . "*.xml") as $benchmark_file)
{
$xml_parser = new tandem_XmlReader(file_get_contents($benchmark_file));
$benchmark_name = $xml_parser->getXMLValue("PTSBenchmark/Information/Title");
if(!empty($benchmark_name))
array_push($benchmark_names, $benchmark_name);
}
return $benchmark_names;
}
function pts_suite_names_to_array()
{
$benchmark_suites = array();
foreach(glob(XML_SUITE_LOCATION . "*.xml") as $benchmark_file)
{
$xml_parser = new tandem_XmlReader(file_get_contents($benchmark_file));
$benchmark_name = $xml_parser->getXMLValue("PTSuite/PhoronixTestSuite/Title");
if(!empty($benchmark_name))
array_push($benchmark_suites, $benchmark_name);
}
return $benchmark_suites;
}
function pts_benchmark_name_to_identifier($name)
{
if(empty($name))
return false;
foreach(glob(XML_PROFILE_LOCATION . "*.xml") as $benchmark_file)
{
$xml_parser = new tandem_XmlReader(file_get_contents($benchmark_file));
if($xml_parser->getXMLValue("PTSBenchmark/Information/Title") == $name)
return $xml_parser->getXMLValue("PTSBenchmark/Information/Identifier");
}
return false;
}
function pts_benchmark_identifier_to_name($identifier)
{
if(empty($identifier))
return false;
if(is_file(XML_PROFILE_LOCATION . "$identifier.xml"))
{
$xml_parser = new tandem_XmlReader(file_get_contents(XML_PROFILE_LOCATION . $identifier . ".xml"));
if($xml_parser->getXMLValue("PTSBenchmark/Information/Identifier") == $identifier)
return $xml_parser->getXMLValue("PTSBenchmark/Information/Title");
}
return false;
}
function pts_benchmark_type($identifier)
{
if(empty($identifier))
return false;
if(is_file(XML_PROFILE_LOCATION . $identifier . ".xml"))
return "BENCHMARK";
else if(is_file(XML_SUITE_LOCATION . $identifier . ".xml"))
return "TEST_SUITE";
else
return false;
}
function pts_save_result($save_to, $save_results)
{
if(!is_dir(SAVE_RESULTS_LOCATION))
mkdir(SAVE_RESULTS_LOCATION);
if(!is_dir(SAVE_RESULTS_LOCATION . "pts-results-viewer"))
{
mkdir(SAVE_RESULTS_LOCATION . "pts-results-viewer"); // TODO: Clean this up
copy("pts-core/pts-results-viewer/phoronix-test-suite.gif", SAVE_RESULTS_LOCATION . "pts-results-viewer/phoronix-test-suite.gif");
copy("pts-core/pts-results-viewer/pts.js", SAVE_RESULTS_LOCATION . "pts-results-viewer/pts.js");
copy("pts-core/pts-results-viewer/pts-results-viewer.xsl", SAVE_RESULTS_LOCATION . "pts-results-viewer/pts-results-viewer.xsl");
copy("pts-core/pts-results-viewer/pts-viewer.css", SAVE_RESULTS_LOCATION . "pts-results-viewer/pts-viewer.css");
}
return file_put_contents(SAVE_RESULTS_LOCATION . $save_to, $save_results);
}
function pts_process_register($process)
{
if(!is_dir(BENCHMARK_ENVIRONMENT))
mkdir(BENCHMARK_ENVIRONMENT);
if(!is_dir(BENCHMARK_ENVIRONMENT . ".processes"))
mkdir(BENCHMARK_ENVIRONMENT . ".processes");
return file_put_contents(BENCHMARK_ENVIRONMENT . ".processes/$process.p", time());
}
function pts_process_remove($process)
{
if(is_file(BENCHMARK_ENVIRONMENT . ".processes/$process.p"))
return unlink(BENCHMARK_ENVIRONMENT . ".processes/$process.p");
}
function pts_process_active($process)
{
if(is_file(BENCHMARK_ENVIRONMENT . ".processes/$process.p"))
{
$process_time = intval(file_get_contents(BENCHMARK_ENVIRONMENT . ".processes/$process.p"));
if((time() - $process_time) < 30) // TODO: Replace Lock With Pid based instead of time.
return true;
pts_process_remove($process);
}
return false;
}
function display_web_browser($URL)
{
echo "Do you want to view the results in your web browser (Y/n)? ";
$VIEW_RESULTS = strtolower(trim(fgets(STDIN)));
if($VIEW_RESULTS == "y")
shell_exec("firefox $URL &");
}
function pts_env_variables()
{
return array(
"PTS_TYPE" => PTS_TYPE,
"PTS_LINE" => PTS_LINE,
"PTS_VERSION" => PTS_VERSION,
"NUM_CPU_CORES" => cpu_core_count(),
"NUM_CPU_JOBS" => cpu_job_count(),
"MEM_CAPACITY" => memory_mb_capacity(),
"SCREEN_WIDTH" => current_screen_width(),
"SCREEN_HEIGHT" => current_screen_height(),
"OS" => os_vendor(),
"OS_VERSION" => os_version(),
"OS_ARCH" => kernel_arch(),
"THIS_RUN_TIME" => THIS_RUN_TIME
);
}
function pts_hw_string()
{
$hw_string = "Processor: " . processor_string() . " (Total Cores: " . cpu_core_count() . "), ";
$hw_string .= "Motherboard Chipset: " . motherboard_chipset_string() . ", ";
$hw_string .= "System Memory: " . memory_mb_capacity() . "MB, ";
$hw_string .= "Graphics: " . graphics_processor_string() . ", ";
$hw_string .= "Screen Resolution: " . current_screen_width() . "x" . current_screen_height() . " ";
return $hw_string;
}
function pts_sw_string()
{
$sw_string = "OS: " . operating_system_release() . ", ";
$sw_string .= "Kernel: " . kernel_string() . " (" . kernel_arch() . "), ";
$sw_string .= "X.Org Server: " . graphics_subsystem_version() . ", ";
$sw_string .= "Compiler: " . compiler_version() . " ";
return $sw_string;
}
function pts_input_correct_results_path($path)
{
if(strpos($path, '/') === FALSE)
{
$path = SAVE_RESULTS_LOCATION . $path;
}
if(strpos($MERGE_TO, ".xml") === FALSE)
{
$path = $path . ".xml";
}
return $path;
}
function pts_variables_export_string($vars = null)
{
$return_string = "";
if($vars == null)
$vars = pts_env_variables();
else
$vars = array_merge(pts_env_variables(), $vars);
foreach($vars as $name => $var)
{
$return_string .= "export $name=$var;";
}
return $return_string . " ";
}
function pts_exec($exec, $extra_vars = null)
{
return shell_exec(pts_variables_export_string($extra_vars) . "$exec");
}
function pts_read_user_config($xml_pointer, $value = null)
{
if(is_file("user-config.xml"))
if(($file = file_get_contents("user-config.xml")) != FALSE)
{
$xml_parser = new tandem_XmlReader($file);
unset($file);
$temp_value = $xml_parser->getXmlValue($xml_pointer);
if(!empty($temp_value))
$value = $temp_value;
}
return $value;
}
function pts_request_new_id()
{
global $PTS_GLOBAL_ID;
$PTS_GLOBAL_ID++;
return $PTS_GLOBAL_ID;
}
function operating_system_release()
{
return os_vendor() . " " . os_version();
}
?>

View File

@@ -0,0 +1,143 @@
<?php
//
// SYSTEM RELATED
//
function cpu_core_count()
{
$info = file_get_contents("/proc/cpuinfo");
$info = substr($info, strrpos($info, "\nprocessor"));
$info = trim(substr($info, strpos($info, ":") + 1, strpos($info, "\n") - strpos($info, ":")));
return intval($info) + 1;
}
function cpu_job_count()
{
return cpu_core_count() + 1;
}
function processor_string()
{
//TODO: Support Multiple CPUs
$info = file_get_contents("/proc/cpuinfo");
$info = substr($info, strpos($info, "model name"));
$info = trim(substr($info, strpos($info, ":") + 1, strpos($info, "\n") - strpos($info, ":")));
$info = str_replace(array("Corporation ", "Technologies ", "(R)", "(TM)"), "", $info);
return $info;
}
function memory_mb_capacity()
{
$info = file_get_contents("/proc/meminfo");
$info = substr($info, strpos($info, "MemTotal:") + 9);
$info = intval(trim(substr($info, 0, strpos($info, "kB"))));
return floor($info / 1024);
}
function current_screen_resolution()
{
$info = shell_exec("xrandr");
$info = substr($info, 0, strrpos($info, "*"));
$info = trim(substr($info, strrpos($info, "\n")));
$info = substr($info, 0, strpos($info, " "));
return explode("x", $info);
}
function current_screen_width()
{
$resolution = current_screen_resolution();
return $resolution[0];
}
function current_screen_height()
{
$resolution = current_screen_resolution();
return $resolution[1];
}
function parse_lsb_output($desc)
{
$info = file_get_contents("/etc/lsb-release");
$info = substr($info, strpos($info, $desc) + strlen($desc));
$info = trim(substr($info, 0, strpos($info, "\n")));
if(empty($info) || strlen($info) > 32)
$info = "N/A";
return $info;
}
function os_vendor()
{
return parse_lsb_output("DISTRIB_ID=");
}
function os_version()
{
return parse_lsb_output("DISTRIB_RELEASE=");
}
function kernel_string()
{
return trim(shell_exec("uname -r"));
}
function kernel_arch()
{
return trim(shell_exec("uname -m"));
}
function graphics_processor_string()
{
return parse_lspci_output("VGA compatible controller:");
}
function motherboard_chipset_string()
{
return parse_lspci_output("Host bridge:");
}
function parse_lspci_output($desc)
{
$info = shell_exec("lspci");
$info = substr($info, strpos($info, $desc) + strlen($desc));
$EOL = strpos($info, "\n");
if(($temp = strpos($info, '/')) < $EOL && $temp > 0)
if(($temp = strpos($info, ' ', ($temp + 2))) < $EOL && $temp > 0)
$EOL = $temp;
if(($temp = strpos($info, '(')) < $EOL && $temp > 0)
$EOL = $temp;
if(($temp = strpos($info, '[')) < $EOL && $temp > 0)
$EOL = $temp;
$info = trim(substr($info, 0, $EOL));
if(($strlen = strlen($info)) < 6 || $strlen > 96)
$info = "N/A";
else
$info = str_replace(array("Corporation ", "Technologies ", " Inc ", "processor ", "(R)", "(TM)"), "", $info);
return $info;
}
function graphics_subsystem_version()
{
$info = shell_exec("X -version 2>&1");
$info = trim(substr($info, 0, strrpos($info, "Release Date")));
$info = trim(substr($info, strrpos($info, " ")));
return $info;
}
function compiler_version()
{
$info = shell_exec("gcc -v 2>&1");
if(($pos = strpos($info, "gcc version")) === FALSE)
{
$info = "N/A";
}
else
{
$info = substr($info, $pos + 11);
$info = trim(substr($info, 0, strpos($info, " ", strpos($info, "."))));
}
return "GCC " . $info;
}
?>

View File

@@ -0,0 +1,127 @@
<?php
/*
tandem_XmlReader: A very simple XML parser with a few extras... Does not support attributes on tags, etc.
A work in progress. Was designed for just some select needs in the past. No XML validation is done with this parser, etc.
Copyright Michael Larabel (C) 2004 - 2008
*/
class tandem_XmlReader
{
var $XML_DATA;
function __construct($XML)
{
$this->XML_DATA = $XML;
}
function getStatement($STATEMENT_NAME)
{
return $this->listStatements(TRUE, $STATEMENT_NAME);
}
function listStatements($SEARCH_DO = FALSE, $SEARCH_QUERY = "")
{
// TODO: add check to make sure it doesn't occur in XML, but before XML start after XML declaration
$XML_COPY = $this->XML_DATA;
preg_match_all("'<!--(.*?) -->'si", $XML_COPY, $STATEMENT_MATCHES);
$RETURN_ARRAY = array();
foreach($STATEMENT_MATCHES[0] as $statement)
{
$name = substr($statement, 0, strpos($statement, ':'));
$name = trim(strstr($name, ' '));
if($SEARCH_DO)
{
if($name == $SEARCH_QUERY)
{
$value = strstr($statement, ':');
$value = trim(substr($value, 1, strpos($value, "-->") - 1));
array_push($RETURN_ARRAY, $value);
}
}
else
{
array_push($RETURN_ARRAY, $name);
}
}
return $RETURN_ARRAY;
}
function getXMLValue($XML_TAG)
{
return $this->getValue($XML_TAG, $this->XML_DATA);
}
function getValue($XML_TAG, $XML_MATCH)
{
$XML_LOCATION_OFFSET = 0;
do
{
$LOCATION_NEXT_DEPTH = strpos($XML_TAG, '/', $XML_LOCATION_OFFSET);
if($LOCATION_NEXT_DEPTH === FALSE)
$LOCATION_NEXT_DEPTH = strlen($XML_TAG);
$THIS_XML_TAG = substr($XML_TAG, $XML_LOCATION_OFFSET, $LOCATION_NEXT_DEPTH - $XML_LOCATION_OFFSET);
preg_match("'<$THIS_XML_TAG>(.*?)</$THIS_XML_TAG>'si", $XML_MATCH, $NEW_MATCH);
if(sizeof($NEW_MATCH) > 1)
$XML_MATCH = $NEW_MATCH[1];
else
$XML_MATCH = null;
$XML_LOCATION_OFFSET = $LOCATION_NEXT_DEPTH + 1;
}
while($XML_LOCATION_OFFSET < strlen($XML_TAG));
return $XML_MATCH;
}
function getXMLArrayValues($XML_TAG)
{
return $this->getArrayValues($XML_TAG, $this->XML_DATA);
}
function getArrayValues($XML_TAG, $XML_MATCH)
{
$XML_ARRAY_VALUES = $this->LocationHierarchyToArray($XML_TAG);
$THIS_XML_CONTENTS = $XML_MATCH;
for($i = 0; $i < sizeof($XML_ARRAY_VALUES) - 2; $i++)
$THIS_XML_CONTENTS = $this->getValue($XML_ARRAY_VALUES[$i], $THIS_XML_CONTENTS);
$LAST_XML_VALUE = $XML_ARRAY_VALUES[sizeof($XML_ARRAY_VALUES) - 2];
preg_match_all("'<$LAST_XML_VALUE>(.*?)</$LAST_XML_VALUE>'si", $THIS_XML_CONTENTS, $XML_MATCHES);
$RETURN_ARRAY = array();
for($i = 0; $i < sizeof($XML_MATCHES[1]); $i++)
{
$THIS_ITEM = $this->getValue(end($XML_ARRAY_VALUES), $XML_MATCHES[1][$i]);
// if(!empty($THIS_ITEM))
array_push($RETURN_ARRAY, $THIS_ITEM);
}
return $RETURN_ARRAY;
}
function LocationHierarchyToArray($LOCATION)
{
$RETURN_ARRAY = array();
$TEMP_LOCATION = $LOCATION;
while(($POS_NEXT_DELIMITER = strpos($TEMP_LOCATION, '/')) !== FALSE)
{
array_push($RETURN_ARRAY, substr($TEMP_LOCATION, 0, $POS_NEXT_DELIMITER));
$TEMP_LOCATION = substr($TEMP_LOCATION, $POS_NEXT_DELIMITER + 1);
}
if(!empty($TEMP_LOCATION))
array_push($RETURN_ARRAY, $TEMP_LOCATION);
return $RETURN_ARRAY;
}
}
?>

View File

@@ -0,0 +1,157 @@
<?php
/*
tandem_XmlWriter: A very simple XML writerr with a few extras... Does not support attributes on tags, etc.
A work in progress. Was designed for just some select needs in the past. Does support linking to an XSL as
well as whether to format the XML or not, etc. Also provides a MD5 checksum of the XML body.
Copyright Michael Larabel (C) 2004 - 2008
*/
class tandem_XmlWriter
{
var $XML_OBJECTS = array();
var $XML_STRING_PATHS = array();
var $XML_STATEMENTS = array();
var $FORMAT_XML;
var $XSL_BINDING = null;
function __construct($READ_FROM_XML = "", $ENCRYPTION_ALGORITHM = "", $NICE_FORMATTING = TRUE)
{
// TODOs
// $READ_FROM_XML: Convert existing XML into array, to be appended to
// $ENCRYPTION_ALGORITHM: The encryption algorithm to eval() on XML_OBJECTS
$this->FORMAT_XML = $NICE_FORMATTING;
}
function setXslBinding($URL)
{
$this->XSL_BINDING = $URL;
}
function addXmlObject($XML_LOCATION, $UNIQUE_IDENTIFIER = 0, $XML_VALUE, $STD_STEP = null, $STEP_ID = null)
{
$XML_ARRAY = array();
$ALT_STEP = -1;
$steps = 0;
if($STD_STEP == null)
$STD_STEP = 2;
if($STEP_ID == null)
$STEP_ID = $UNIQUE_IDENTIFIER;
if(array_search("$UNIQUE_IDENTIFIER,$XML_LOCATION", $this->XML_STRING_PATHS) !== FALSE)
$ALT_STEP = 2;
else
array_push($this->XML_STRING_PATHS, "$UNIQUE_IDENTIFIER,$XML_LOCATION");
do
{
$steps++;
$NEXT_POS = strrpos($XML_LOCATION, '/');
$CURRENT_TAG = substr($XML_LOCATION, ($NEXT_POS !== FALSE) ? $NEXT_POS + 1 : 0);
$XML_LOCATION = substr($XML_LOCATION, 0, $NEXT_POS);
if(empty($XML_ARRAY))
{
$XML_ARRAY = $XML_VALUE;
}
if(!empty($CURRENT_TAG))
$XML_ARRAY = array("$CURRENT_TAG" => $XML_ARRAY);
if($steps == $STD_STEP)
$XML_ARRAY = array("id_$UNIQUE_IDENTIFIER" => $XML_ARRAY);
if($steps == $ALT_STEP)
$XML_ARRAY = array("id_$STEP_ID" => $XML_ARRAY);
}
while($NEXT_POS !== FALSE);
$this->XML_OBJECTS = array_merge_recursive($this->XML_OBJECTS, $XML_ARRAY);
}
function addStatement($STATEMENT_NAME, $STATEMENT_VALUE)
{
array_push($this->XML_STATEMENTS, trim($STATEMENT_NAME . ": " . $STATEMENT_VALUE));
}
function getXMLStatements()
{
$RETURN_STRING = "";
$PRINT_STATEMENTS = array_reverse($this->XML_STATEMENTS);
foreach($PRINT_STATEMENTS as $statement)
{
$RETURN_STRING .= "<!-- $statement -->" . "\n";
}
return $RETURN_STRING;
}
function getXML()
{
$FORMATTED_XML = $this->getXMLBelow($this->XML_OBJECTS, 0);
$this->addStatement("Generated", date("Y-m-d H:i:s"));
$this->addStatement("Checksum", md5($FORMATTED_XML));
return "<?xml version=\"1.0\"?>\n" . $this->getXSL() . $this->getXMLStatements() . $FORMATTED_XML;
}
function getXSL()
{
if($this->XSL_BINDING != null)
{
return "<?xml-stylesheet type=\"text/xsl\" href=\"" . $this->XSL_BINDING . "\" ?>\n";
}
}
function getJustXML()
{
return $this->getXMLBelow($this->XML_OBJECTS, 0);
}
function getXMLBelow($XML_ARRAY, $TIMES_DEEP)
{
$FORMATTED_XML = "";
foreach($XML_ARRAY as $KEY => $VALUE)
if(!is_array($VALUE))
{
$FORMATTED_XML .= $this->getXMLTabs($TIMES_DEEP) . "<$KEY>$VALUE</$KEY>" . $this->getXMLBreaks();
}
else
{
if(substr($KEY, 0, 3) === "id_")
$FORMATTED_XML .= $this->getXMLBelow($VALUE, $TIMES_DEEP);
else
{
$FORMATTED_XML .= $this->getXMLTabs($TIMES_DEEP) . "<$KEY>" . $this->getXMLBreaks();
$FORMATTED_XML .= $this->getXMLBelow($VALUE, $TIMES_DEEP + 1);
$FORMATTED_XML .= $this->getXMLTabs($TIMES_DEEP) . "</$KEY>" . $this->getXMLBreaks();
}
}
return $FORMATTED_XML;
}
function getXMLTabs($TIMES_DEEP)
{
if($this->FORMAT_XML !== TRUE)
return;
$RETURN_FORMAT = "";
for($i = 0; $i < $TIMES_DEEP; $i++)
$RETURN_FORMAT .= "\t";
return $RETURN_FORMAT;
}
function getXMLBreaks()
{
if($this->FORMAT_XML !== TRUE)
return;
return "\n";
}
function debugDumpArray()
{
return $this->XML_OBJECTS;
}
}
?>

View File

@@ -0,0 +1,107 @@
<?php
if(!extension_loaded("gtk"))
dl("php_gtk2.so");
require("pts-core/functions/pts-functions.php");
require("pts-core/functions/pts-functions-gtk.php");
require("pts-core/functions/pts-functions-run.php");
$BENCHMARK_IDENTIFIER = $argv[1];
$BENCHMARK_OPTIONS = array();
if(empty($BENCHMARK_IDENTIFIER))
exit;
$BENCHMARK_NAME = pts_benchmark_identifier_to_name($BENCHMARK_IDENTIFIER);
if(empty($BENCHMARK_NAME))
exit;
// Prepare The Parser
$BENCHMARK_XML = new tandem_XmlReader(file_get_contents(XML_PROFILE_LOCATION . "$BENCHMARK_IDENTIFIER.xml"));
$window = new GtkWindow();
$window->set_title("Phoronix Test Suite - " . $BENCHMARK_NAME);
$window->set_border_width(10);
$window->connect_simple("destroy", "gtk_shutdown");
$window->set_size_request(500, -1);
$window->add($vbox = new GtkVBox());
$pts_title = new GtkLabel("Phoronix Test Suite");
$pts_title->modify_font(new PangoFontDescription("FreeSans 21"));
$pts_title->modify_fg(Gtk::STATE_NORMAL, GdkColor::parse("#2b6b29"));
$pts_title->set_size_request(-1, 40);
$vbox->pack_start($pts_title, 0, 0);
$pts_benchmark_title = new GtkLabel($BENCHMARK_NAME);
$pts_benchmark_title->modify_font(new PangoFontDescription("FreeSans 16"));
$pts_benchmark_title->modify_fg(Gtk::STATE_NORMAL, GdkColor::parse("#AE0000"));
$pts_benchmark_title->set_size_request(-1, 24);
$vbox->pack_start($pts_benchmark_title, 0, 0);
// Select Benchmark Row
$benchmark_settings_name = $BENCHMARK_XML->getXMLArrayValues("PTSBenchmark/Settings/Option/DisplayName");
$benchmark_settings_argument = $BENCHMARK_XML->getXMLArrayValues("PTSBenchmark/Settings/Option/ArgumentName");
$benchmark_settings_identifier = $BENCHMARK_XML->getXMLArrayValues("PTSBenchmark/Settings/Option/Identifier");
$benchmark_settings_menu = $BENCHMARK_XML->getXMLArrayValues("PTSBenchmark/Settings/Option/Menu");
$hbox = array();
for($option_count = 0; $option_count < sizeof($benchmark_settings_name); $option_count++)
{
$this_identifier = $benchmark_settings_identifier[$option_count];
$hbox[$option_count] = new GtkHBox();
$hbox[$option_count]->pack_start(new GtkLabel($benchmark_settings_name[$option_count] . ": "), 0, 0);
$hbox[$option_count]->pack_start(new GtkLabel(" "), 0, 0);
if(strlen($benchmark_settings_menu[$option_count]) > 6)
{
$xml_parser = new tandem_XmlReader($benchmark_settings_menu[$option_count]);
$menu_option_names = $xml_parser->getXMLArrayValues("Entry/Name");
// Benchmark Selection GtkComboBox
$$this_identifier = new GtkComboBox();
$list_model = new GtkListStore(Gtk::TYPE_STRING);
$$this_identifier->set_model($list_model);
$cell_renderer = new GtkCellRendererText();
$$this_identifier->pack_start($cell_renderer);
$$this_identifier->set_attributes($cell_renderer, "text", 0);
// Load Up Benchmark List
foreach($menu_option_names as $menu_item)
{
$list_model->append(array($menu_item));
}
// Display
$hbox[$option_count]->pack_start($$this_identifier, 0, 0);
}
else
{
$$this_identifier = new GtkTextView();
$buffer[$option_count] = new GtkTextBuffer();
$$this_identifier->set_buffer($buffer[$option_count]);
$$this_identifier->set_size_request(120, -1);
// Display
$hbox[$option_count]->pack_start($$this_identifier, 0, 0);
}
$vbox->pack_start($hbox[$option_count], 0, 0);
$vbox->pack_start(new GtkLabel(" "), 0, 0);
array_push($BENCHMARK_OPTIONS, $this_identifier);
}
$vbox->pack_start(new GtkLabel(" "), 0, 0);
$submit_button = new GtkButton("Run Benchmark");
$submit_button->set_size_request(128, 28);
$submit_button->connect("clicked", "run_gtk_benchmark");
$vbox->pack_start($submit_button, 0, 0);
$window->show_all();
Gtk::main();
?>

View File

@@ -0,0 +1,34 @@
<?php
/*
Copyright (C) 2008, Michael Larabel.
Copyright (C) 2008, Phoronix Media.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
require("pts-core/functions/pts-functions.php");
require("pts-core/functions/pts-functions-install.php");
$TO_INSTALL = strtolower($argv[1]);
if(empty($TO_INSTALL))
{
echo "\nThe benchmark or suite name to install must be supplied.\n";
exit;
}
pts_recurse_install_benchmark($TO_INSTALL);
?>

86
pts-core/pts-main.php Normal file
View File

@@ -0,0 +1,86 @@
<?php
/*
Copyright (C) 2008, Michael Larabel.
Copyright (C) 2008, Phoronix Media.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
if(!extension_loaded("gtk"))
dl("php_gtk2.so");
require("pts-core/functions/pts-functions.php");
require("pts-core/functions/pts-functions-gtk.php");
$window = new GtkWindow();
$window->set_title("Phoronix Test Suite");
$window->set_border_width(10);
$window->connect_simple("destroy", "gtk_shutdown");
$window->set_size_request(450, -1);
$window->add($vbox = new GtkVBox());
$pts_title = new GtkLabel("Phoronix Test Suite");
$pts_title->modify_font(new PangoFontDescription("FreeSans 21"));
$pts_title->modify_fg(Gtk::STATE_NORMAL, GdkColor::parse("#2b6b29"));
$pts_title->set_size_request(-1, 60);
$vbox->pack_start($pts_title, 0, 0);
$vbox->pack_start($hbox = new GtkHBox(), 0, 0);
// Select Benchmark Row
$hbox->pack_start(new GtkLabel("Benchmark: "), 0, 0);
// Benchmark Selection GtkComboBox
$benchmark_combobox = new GtkComboBox();
$list_model = new GtkListStore(Gtk::TYPE_STRING);
$benchmark_combobox->set_model($list_model);
$cell_renderer = new GtkCellRendererText();
$benchmark_combobox->pack_start($cell_renderer);
$benchmark_combobox->set_attributes($cell_renderer, "text", 0);
// Load Up Benchmark List
foreach(pts_benchmark_names_to_array() as $menu_item)
{
$list_model->append(array($menu_item));
}
// Display
$hbox->pack_start($benchmark_combobox, 0, 0);
$hbox->pack_start(new GtkLabel(" "), 0, 0);
$submit_button = new GtkButton("Submit");
$submit_button->set_size_request(74, 28);
$submit_button->connect("clicked", "combobox_select", $benchmark_combobox);
$hbox->pack_start($submit_button, 0, 0);
$vbox->pack_start(new GtkLabel(" "), 0, 0);
$pts_desc = new GtkLabel("Select the benchmark you would like to run. The application must be installed prior to running the Phoronix Test Suite. Any requests or issues can be addressed in the Phoronix Forums.");
$pts_desc->set_size_request(430, -1);
$pts_desc->set_line_wrap(true);
$vbox->pack_start($pts_desc, 0, 0);
$vbox->pack_start(new GtkLabel(" "), 0, 0);
$pts_link = new GtkLabel("www.phoronix.com");
$pts_link->modify_font(new PangoFontDescription("FreeSans 14"));
$pts_link->modify_fg(Gtk::STATE_NORMAL, GdkColor::parse("#2b6b29"));
$pts_link->set_size_request(-1, 30);
$vbox->pack_start($pts_link, 0, 0);
$window->show_all();
Gtk::main();
?>

View File

@@ -0,0 +1,37 @@
<?php
require("pts-core/functions/pts-functions.php");
require("pts-core/functions/pts-functions-merge.php");
$BASE_FILE = $argv[1];
$MERGE_FROM_FILE = $argv[2];
$MERGE_TO = $argv[3];
if(empty($BASE_FILE) || empty($MERGE_FROM_FILE))
{
echo "\nTwo saved result profile names must be supplied.\n";
exit;
}
if(empty($MERGE_TO))
$MERGE_TO = $OLD_RESULTS;
$BASE_FILE = pts_find_file($BASE_FILE);
$MERGE_FROM_FILE = pts_find_file($MERGE_FROM_FILE);
if(empty($MERGE_TO))
{
do
{
$rand_file = rand(100, 999);
$MERGE_TO = SAVE_RESULTS_LOCATION . "merge-$rand_file.xml";
}while(is_file($MERGE_TO));
}
$MERGE_TO = pts_input_correct_results_path($MERGE_TO);
// Merge Results
$MERGED_RESULTS = pts_merge_benchmarks(file_get_contents($BASE_FILE), file_get_contents($MERGE_FROM_FILE));
file_put_contents($MERGE_TO, $MERGED_RESULTS);
display_web_browser($MERGE_TO);
?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

View File

@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Phoronix Test Suite - Results Viewer</title>
<link href="pts-results-viewer/pts-viewer.css" rel="stylesheet" type="text/css" />
<script src="pts-results-viewer/pts.js" type="text/javascript"></script>
</head>
<body>
<div id="pts_container">
<div id="pts_description_area">
<div id="pts_logo"></div>
<div id="pts_benchmark_main_header"><xsl:value-of select="PhoronixTestSuite/Suite/Title"/></div>
<div class="pts_benchmark_descriptor" id="tsd_show" style="display: none;"><div class="pts_area_box"><p><xsl:value-of select="PhoronixTestSuite/Suite/Description"/></p><p style="font-size: 11px;"><em><xsl:value-of select="PhoronixTestSuite/Suite/Name" /> v<xsl:value-of select="PhoronixTestSuite/Suite/Version" /> is maintained by <xsl:value-of select="PhoronixTestSuite/Suite/Maintainer"/></em></p><p><span style="font-size: 11px;" onclick="switchShow('tsd_hidden');switchShow('tsd_show');">&lt;&lt; Hide Test Details</span></p></div></div>
<div class="pts_benchmark_descriptor" id="tsd_hidden"><span style="font-size: 11px;" onclick="switchShow('tsd_hidden');switchShow('tsd_show');hideObject('tips_show');showObject('tips_hidden');">Show Test Details &gt;&gt;</span></div>
<div class="pts_benchmark_descriptor"><xsl:value-of select="PhoronixTestSuite/System/Hardware"/></div>
<div class="pts_benchmark_descriptor"><xsl:value-of select="PhoronixTestSuite/System/Software"/></div>
<div class="pts_benchmark_descriptor"><strong>Phoronix Test Suite v<xsl:value-of select="PhoronixTestSuite/System/Version"/></strong></div>
<div class="pts_benchmark_descriptor"><strong>Generated by <xsl:value-of select="PhoronixTestSuite/System/Author"/> on <xsl:value-of select="PhoronixTestSuite/System/TestDate"/></strong></div>
<div class="pts_benchmark_descriptor"><strong>Test Notes:</strong> <xsl:value-of select="PhoronixTestSuite/System/TestNotes"/></div>
<div style="display: none">
<div class="pts_benchmark_descriptor" id="tips_hidden"><span style="font-size: 11px;" onclick="switchShow('tips_hidden');switchShow('tips_show');showObject('tsd_hidden');hideObject('tsd_show');">Performance Optimization Tips &gt;&gt;</span></div>
<div class="pts_benchmark_descriptor" id="tips_show" style="display: none;"><div class="pts_area_box"><p><span style="font-size: 11px;" onclick="switchShow('tips_hidden');switchShow('tips_show');">&lt;&lt; Hide Tips</span></p>
<p><span style="font-size: 11px;" onclick="switchShow('tips_hidden');switchShow('tips_show');">&lt;&lt; Hide Tips</span></p></div></div>
</div>
</div>
<div id="pts_benchmark_area">
<xsl:for-each select="PhoronixTestSuite/Benchmark">
<div class="pts_benchmark_bar"><span class="pts_benchmark_bar_header"><xsl:value-of select="Name"/></span> <span class="pts_benchmark_bar_version">v<xsl:value-of select="Version"/></span><br /><strong><xsl:value-of select="Attributes"/></strong></div>
<div class="pts_benchmark_text">
<xsl:for-each select="Results/Group">
<div style="padding: 5px 0;">
<xsl:for-each select="Entry">
<strong><xsl:value-of select="Identifier"/>:</strong><span style="padding-left: 5px;"><xsl:value-of select="Value"/></span><br />
</xsl:for-each>
</div>
</xsl:for-each>
</div>
<div class="pts_benchmark_img_area"><img width="580" height="300"><xsl:attribute name="src">http://www.phoronix-test-suite.com/pts-grapher/r/graph-remote.php?t=<xsl:value-of select="Name" />&amp;s=<xsl:value-of select="Attributes"/>&amp;n=<xsl:value-of select="Version"/>&amp;u=<xsl:value-of select="Scale"/>&amp;p=<xsl:value-of select="Proportion"/>&amp;i=<xsl:for-each select="Results/Group"><xsl:for-each select="Entry"><xsl:value-of select="Identifier"/>;</xsl:for-each></xsl:for-each>&amp;v=<xsl:for-each select="Results/Group"><xsl:for-each select="Entry"><xsl:value-of select="Value"/>;</xsl:for-each></xsl:for-each>
</xsl:attribute></img></div>
</xsl:for-each>
</div>
<p align="center">The <a href="http://www.phoronix-test-suite.com/">Phoronix Test Suite</a> is developed by <a href="http://www.phoronix.com/">Phoronix</a>, an Internet resource devoted to Linux hardware reviews, video driver articles, and much more.</p>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

View File

@@ -0,0 +1,96 @@
body
{
text-align: left;
margin: 0;
padding: 0;
font-family: arial, helvetica, sans-serif;
font-size: 14px;
background-color: #3b433a;
}
div#pts_container
{
width: 960px;
margin: 0 auto;
text-align: left;
color: #FFF;
overflow: hidden;
background-color: #222;
border: solid #000;
border-width: 0 1px 1px;
}
div#pts_container a
{
color: #FFF;
}
div#pts_logo
{
margin: 0;
width: 960px;
height: 70px;
background: #222 url(phoronix-test-suite.gif) no-repeat;
border: solid #000;
border-width: 0 0 1px 0;
}
div#pts_benchmark_main_header
{
color: #FFF;
font-size: 36px;
font-weight: bold;
padding: 5px 0 5px 15px;
}
div#pts_description_area
{
padding: 0 0 5px;
}
div#pts_benchmark_area
{
background-color: #FFF;
padding: 15px 10px;
color: #000;
overflow: hidden;
}
div.pts_benchmark_descriptor
{
color: #EFEFEF;
padding: 5px 20px;
}
div.pts_area_box
{
background-color: #66695B;
color: #EFEFEF;
padding: 1px 5px 0;
border: solid #000 1px;
}
div.pts_benchmark_bar
{
background-color: #2b6b29;
color: #FFF;
padding: 4px;
border: solid #000 1px;
clear: both;
}
span.pts_benchmark_bar_header
{
font-size: 18px;
font-weight: bold;
}
span.pts_benchmark_bar_version
{
vertical-align: super;
padding-left: 5px;
font-size: 10px;
}
div.pts_benchmark_text
{
padding: 50px 15px 15px;
float: left;
overflow: hidden;
}
div.pts_benchmark_img_area
{
padding: 15px 0 15px 35px;
float: right;
overflow: hidden;
height: 100%;
vertical-align: middle;
}

View File

@@ -0,0 +1,15 @@
function switchShow(i)
{
if(document.getElementById(i).style.display == "none")
showObject(i);
else
hideObject(i);
}
function hideObject(i)
{
document.getElementById(i).style.display = "none";
}
function showObject(i)
{
document.getElementById(i).style.display = "block";
}

View File

@@ -0,0 +1,257 @@
<?php
/*
Copyright (C) 2008, Michael Larabel.
Copyright (C) 2008, Phoronix Media.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
require("pts-core/functions/pts-functions.php");
require("pts-core/functions/pts-functions-run.php");
require("pts-core/functions/pts-functions-merge.php");
$TO_RUN = strtolower($argv[1]);
$TO_RUN_TYPE = pts_benchmark_type($TO_RUN);
$BENCHMARK_RAN = false;
if(empty($TO_RUN))
{
echo "\nThe benchmark, suite name, or saved file name must be supplied.\n";
exit;
}
if(!$TO_RUN_TYPE)
{
if(is_file(pts_input_correct_results_path($TO_RUN)))
{
$SAVE_RESULTS = true;
$TO_RUN_TYPE = "LOCAL_COMPARISON";
$PROPOSED_FILE_NAME = $TO_RUN;
$RES_NULL = null;
do
{
echo "Enter a unique identifier for distinguishing this series of tests: ";
$RESULTS_IDENTIFIER = trim(str_replace(array('/'), '', fgets(STDIN)));
}while(empty($RESULTS_IDENTIFIER));
$RESULTS = new tandem_XmlWriter();
}
else if(trim(file_get_contents("http://www.phoronix-test-suite.com/global/profile-check.php?id=$TO_RUN")) == "REMOTE_FILE")
{
$SAVE_RESULTS = true;
$TO_RUN_TYPE = "GLOBAL_COMPARISON";
$PROPOSED_FILE_NAME = $TO_RUN;
$RES_NULL = null;
pts_save_benchmark_file($PROPOSED_FILE_NAME, $RES_NULL, file_get_contents("http://www.phoronix-test-suite.com/global/pts-results-viewer.php?id=$TO_RUN"));
do
{
echo "Enter a unique identifier for distinguishing this series of tests: ";
$RESULTS_IDENTIFIER = trim(str_replace(array('/'), '', fgets(STDIN)));
}while(empty($RESULTS_IDENTIFIER));
$RESULTS = new tandem_XmlWriter();
}
else
{
"\n$TO_RUN is not a recognized benchmark, suite, or PTS Global ID. Exiting...\n";
exit(0);
}
}
else
{
echo "Would you like to save these benchmark results (Y/n)? ";
$SAVE_RESULTS = trim(fgets(STDIN));
if(strtolower($SAVE_RESULTS) == "y")
{
$SAVE_RESULTS = true;
}
else if(strtolower($SAVE_RESULTS) == "n")
{
echo "Benchmark results will NOT be saved!\n";
$SAVE_RESULTS = false;
}
else
{
echo "\nInput not understood. Results will not be saved.\n";
$SAVE_RESULTS = false;
}
if($SAVE_RESULTS)
{
do
{
echo "Enter a name to save (or merge) these results: ";
$PROPOSED_FILE_NAME = trim(fgets(STDIN));
}while(empty($PROPOSED_FILE_NAME));
$CUSTOM_TITLE = $PROPOSED_FILE_NAME;
$PROPOSED_FILE_NAME = trim(str_replace(array(' ', '/', '&', '\''), "", strtolower($PROPOSED_FILE_NAME))); // Clean up name
if(empty($PROPOSED_FILE_NAME))
$PROPOSED_FILE_NAME = date("Y-m-d-Hi");
do
{
echo "Enter a unique identifier for distinguishing this series of tests: ";
$RESULTS_IDENTIFIER = trim(str_replace(array('/'), '', fgets(STDIN)));
}while(empty($RESULTS_IDENTIFIER));
$RESULTS = new tandem_XmlWriter();
echo "\nPhoronix Test Suite will record results!\n";
}
}
if($TO_RUN_TYPE == "BENCHMARK")
{
$xml_parser = new tandem_XmlReader(file_get_contents(XML_PROFILE_LOCATION . "$TO_RUN.xml"));
$settings_name = $xml_parser->getXMLArrayValues("PTSBenchmark/Settings/Option/DisplayName");
$settings_argument = $xml_parser->getXMLArrayValues("PTSBenchmark/Settings/Option/ArgumentName");
$settings_identifier = $xml_parser->getXMLArrayValues("PTSBenchmark/Settings/Option/Identifier");
$settings_menu = $xml_parser->getXMLArrayValues("PTSBenchmark/Settings/Option/Menu");
$USER_ARGS = "";
$TEXT_ARGS = "";
for($option_count = 0; $option_count < sizeof($settings_name); $option_count++)
{
$this_identifier = $settings_identifier[$option_count];
echo "\n$settings_name[$option_count]:\n";
if(!empty($settings_menu[$option_count]))
{
$xml_parser = new tandem_XmlReader($settings_menu[$option_count]);
$option_names = $xml_parser->getXMLArrayValues("Entry/Name");
$option_values = $xml_parser->getXMLArrayValues("Entry/Value");
echo "\n";
for($i = 0; $i < count($option_names); $i++)
{
echo ($i + 1) . ": " . $option_names[$i] . "\n";
}
do
{
echo "\nPlease Enter Your Choice: ";
$bench_choice = strtolower(trim(fgets(STDIN)));
}while($bench_choice < 1 || $bench_choice > count($option_names));
$TEXT_ARGS .= "$settings_name[$option_count]: " . $option_names[($bench_choice - 1)];
$USER_ARGS .= $settings_argument[$option_count] . $option_values[($bench_choice - 1)] . " ";
if($option_count < sizeof($settings_name) - 1)
$TEXT_ARGS .= "; ";
}
else
{
echo "\nEnter Value: ";
$value = strtolower(trim(fgets(STDIN)));
$USER_ARGS .= $settings_argument[$option_count] . $value;
}
}
unset($xml_parser);
if($SAVE_RESULTS)
{
$xml_parser = new tandem_XmlReader(file_get_contents(XML_PROFILE_LOCATION . "$TO_RUN.xml"));
$test_description = $xml_parser->getXMLValue("PTSBenchmark/Information/Description");
$test_version = $xml_parser->getXMLValue("PTSBenchmark/PhoronixTestSuite/Version");
$test_type = $xml_parser->getXMLValue("PTSBenchmark/PhoronixTestSuite/ApplicationType");
$test_maintainer = $xml_parser->getXMLValue("PTSBenchmark/PhoronixTestSuite/Maintainer");
unset($xml_parser);
}
pts_recurse_call_benchmark(array($TO_RUN), array($USER_ARGS), $SAVE_RESULTS, $RESULTS, $RESULTS_IDENTIFIER, array($TEXT_ARGS));
}
else if($TO_RUN_TYPE == "TEST_SUITE")
{
echo "\n=================================\n";
echo ucwords($TO_RUN) . " Test Suite";
echo "\n=================================\n";
echo "\nRunning Benchmarks For " . ucwords($TO_RUN) . " Test Suite...\n\n";
$xml_parser = new tandem_XmlReader(file_get_contents(XML_SUITE_LOCATION . "$TO_RUN.xml"));
if($SAVE_RESULTS)
{
$test_description = $xml_parser->getXMLValue("PTSuite/PhoronixTestSuite/Description");
$test_version = $xml_parser->getXMLValue("PTSuite/PhoronixTestSuite/Version");
$test_type = $xml_parser->getXMLValue("PTSuite/PhoronixTestSuite/BenchmarkType");
$test_maintainer = $xml_parser->getXMLValue("PTSuite/PhoronixTestSuite/Maintainer");
}
$suite_benchmarks = $xml_parser->getXMLArrayValues("PTSuite/PTSBenchmark/Benchmark");
$arguments = $xml_parser->getXMLArrayValues("PTSuite/PTSBenchmark/Arguments");
$arguments_description = $xml_parser->getXMLArrayValues("PTSuite/PTSBenchmark/Description");
unset($xml_parser);
pts_recurse_call_benchmark($suite_benchmarks, $arguments, $SAVE_RESULTS, $RESULTS, $RESULTS_IDENTIFIER, $arguments_description);
}
else if($SAVE_RESULTS && ($TO_RUN_TYPE == "GLOBAL_COMPARISON" || $TO_RUN_TYPE == "LOCAL_COMPARISON"))
{
echo "\n=================================\n";
echo "Global Comparison Against: " . $TO_RUN;
echo "\n=================================\n";
$xml_parser = new tandem_XmlReader(file_get_contents(SAVE_RESULTS_LOCATION . $TO_RUN . ".xml"));
$CUSTOM_TITLE = $xml_parser->getXMLValue("PhoronixTestSuite/Suite/Title");
$test_description = $xml_parser->getXMLValue("PhoronixTestSuite/Suite/Description");
$test_version = $xml_parser->getXMLValue("PhoronixTestSuite/Suite/Version");
$test_type = $xml_parser->getXMLValue("PhoronixTestSuite/Suite/Type");
$test_maintainer = $xml_parser->getXMLValue("PhoronixTestSuite/Suite/Maintainer");
$suite_benchmarks = $xml_parser->getXMLArrayValues("PhoronixTestSuite/Benchmark/TestName");
$arguments = $xml_parser->getXMLArrayValues("PhoronixTestSuite/Benchmark/TestArguments");
$arguments_description = $xml_parser->getXMLArrayValues("PhoronixTestSuite/Benchmark/Attributes");
unset($xml_parser);
pts_recurse_call_benchmark($suite_benchmarks, $arguments, $SAVE_RESULTS, $RESULTS, $RESULTS_IDENTIFIER, $arguments_description);
}
else
{
echo "\nUnrecognized option: $TO_RUN_TYPE\n";
}
if($SAVE_RESULTS)
{
$id = pts_request_new_id();
$RESULTS->setXslBinding("pts-results-viewer/pts-results-viewer.xsl");
$RESULTS->addXmlObject("PhoronixTestSuite/System/Hardware", $id, pts_hw_string());
$RESULTS->addXmlObject("PhoronixTestSuite/System/Software", $id, pts_sw_string());
$RESULTS->addXmlObject("PhoronixTestSuite/System/Author", $id, pts_current_user());
$RESULTS->addXmlObject("PhoronixTestSuite/System/TestDate", $id, date("F j, Y h:i A"));
$RESULTS->addXmlObject("PhoronixTestSuite/System/TestNotes", $id, " ");
$RESULTS->addXmlObject("PhoronixTestSuite/System/Version", $id, PTS_VERSION);
$RESULTS->addXmlObject("PhoronixTestSuite/System/AssociatedIdentifiers", $id, $RESULTS_IDENTIFIER);
$id = pts_request_new_id();
$RESULTS->addXmlObject("PhoronixTestSuite/Suite/Title", $id, $CUSTOM_TITLE);
$RESULTS->addXmlObject("PhoronixTestSuite/Suite/Name", $id, $TO_RUN);
$RESULTS->addXmlObject("PhoronixTestSuite/Suite/Version", $id, $test_version);
$RESULTS->addXmlObject("PhoronixTestSuite/Suite/Description", $id, $test_description);
$RESULTS->addXmlObject("PhoronixTestSuite/Suite/Type", $id, $test_type);
$RESULTS->addXmlObject("PhoronixTestSuite/Suite/Maintainer", $id, $test_maintainer);
if($BENCHMARK_RAN)
{
pts_save_benchmark_file($PROPOSED_FILE_NAME, $RESULTS);
echo "Results Saved To: " . SAVE_RESULTS_LOCATION . "$PROPOSED_FILE_NAME.xml\n";
display_web_browser(SAVE_RESULTS_LOCATION . "$PROPOSED_FILE_NAME.xml");
}
}
?>

123
pts-core/pts-run-cmd.php Normal file
View File

@@ -0,0 +1,123 @@
<?php
require("pts-core/functions/pts-functions.php");
$COMMAND = $argv[1];
$ARG_1 = $argv[2];
$ARG_2 = $argv[3];
switch($COMMAND)
{
case "REMOVE_RESULT":
if(is_file(SAVE_RESULTS_LOCATION . "$ARG_1.xml"))
{
unlink(SAVE_RESULTS_LOCATION . "$ARG_1.xml");
echo "\nRemoved: $ARG_1.xml\n";
$i = 1;
while(is_file(SAVE_RESULTS_LOCATION . "$ARG_1-$i.xml"))
{
unlink(SAVE_RESULTS_LOCATION . "$ARG_1-$i.xml");
echo "Removed: $ARG_1-$i.xml\n";
$i++;
}
}
else
echo "\nThis result doesn't exist!\n";
break;
case "UPLOAD_RESULT":
if(is_file($ARG_1))
$USE_FILE = $ARG_1;
else if(is_file(SAVE_RESULTS_LOCATION . $ARG_1 . ".xml"))
$USE_FILE = SAVE_RESULTS_LOCATION . $ARG_1 . ".xml";
else
{
echo "\nThis result doesn't exist!\n";
exit(0);
}
echo "\nUploading: $USE_FILE\n";
$TO_UPLOAD = rawurlencode(base64_encode(file_get_contents($USE_FILE)));
$GlobalUser = pts_current_user();
$Globalkey = pts_read_user_config("PhoronixTestSuite/GlobalDatabase/UploadKey", "");
$RETURN_RESPONSE = file_get_contents("http://www.phoronix-test-suite.com/global/user-upload.php?result_xml=$TO_UPLOAD&global_user=$GlobalUser&global_key=$Globalkey"); // Rudimentary, but works
echo "Results Uploaded To: " . $RETURN_RESPONSE . "\n\n"; // TODO: Add checks to make sure it did work out
break;
case "REMOTE_COMPARISON":
echo "Now Use merge-results for remote comparison with integrated Global ID support.";
echo "merge-results <Saved File 1 OR Global ID> <Saved File 2 OR Global ID> <Save To>: Merge two saved result sets";
break;
case "LIST_TESTS":
echo "\n=================================\n";
echo "Phoronix Test Suite - Benchmarks\n";
echo "=================================\n\n";
foreach(glob(XML_PROFILE_LOCATION . "*.xml") as $benchmark_file)
{
$xml_parser = new tandem_XmlReader(file_get_contents($benchmark_file));
$name = $xml_parser->getXMLValue("PTSBenchmark/Information/Title");
$identifier = $xml_parser->getXMLValue("PTSBenchmark/Information/Identifier");
$license = $xml_parser->getXMLValue("PTSBenchmark/PhoronixTestSuite/License");
$status = $xml_parser->getXMLValue("PTSBenchmark/PhoronixTestSuite/Status");
echo "- $name ($identifier)\n";
echo "\tStatus: $status License: $license\n\n";
}
echo "\n";
break;
case "LIST_SUITES":
echo "\n=================================\n";
echo "Phoronix Test Suite - Suites\n";
echo "=================================\n\n";
$benchmark_suites = array();
foreach(glob(XML_SUITE_LOCATION . "*.xml") as $benchmark_file)
{
$xml_parser = new tandem_XmlReader(file_get_contents($benchmark_file));
$name = $xml_parser->getXMLValue("PTSuite/PhoronixTestSuite/Title");
$identifier = basename($benchmark_file, ".xml");
echo "- $name ($identifier)\n";
}
echo "\n";
break;
case "LIST_SAVED_TESTS":
echo "\n=================================\n";
echo "Phoronix Test Suite - Saved Results\n";
echo "=================================\n\n";
foreach(glob(SAVE_RESULTS_LOCATION . "*.xml") as $benchmark_file)
{
// TODO: Clean up this check...
$bt = substr($benchmark_file, strrpos($benchmark_file, '-') + 1);
$bt = intval(substr($bt, 0, strpos($bt, '.')));
if($bt == 0)
{
$xml_parser = new tandem_XmlReader(file_get_contents($benchmark_file));
$title = $xml_parser->getXMLValue("PhoronixTestSuite/Suite/Title");
$suite = $xml_parser->getXMLValue("PhoronixTestSuite/Suite/Name");
$raw_results = $xml_parser->getXMLArrayValues("PhoronixTestSuite/Benchmark/Results");
$results_xml = new tandem_XmlReader($raw_results[0]);
$identifiers = $results_xml->getXMLArrayValues("Group/Entry/Identifier");
if(!empty($title))
{
echo "Saved Name: " . basename($benchmark_file, ".xml") . "\n";
echo "$title (Test: $suite)\n";
foreach($identifiers as $id)
echo "\t- $id\n";
echo "\n";
}
}
}
echo "\n";
break;
default:
echo "Phoronix Test Suite: Internal Error. Not Recognized Command ($COMMAND).\n";
}
?>

View File

@@ -0,0 +1,20 @@
<PTSBenchmark>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>Processor</BenchmarkType>
<ApplicationType>Utility</ApplicationType>
<License>FREE</License>
<Status>VERIFIED</Status>
<Maintainer>Michael Larabel</Maintainer>
</PhoronixTestSuite>
<Information>
<Title>ImageMagick Compilation</Title>
<Version>6.4.0</Version>
<Identifier>build-imagemagick</Identifier>
<Executable>time-compile-imagemagick</Executable>
<TimesToRun>1</TimesToRun>
<ResultScale>Seconds</ResultScale>
<Description>This test times how long it takes to build ImageMagick.</Description>
<Notes> </Notes>
</Information>
</PTSBenchmark>

View File

@@ -0,0 +1,20 @@
<PTSBenchmark>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>Processor</BenchmarkType>
<ApplicationType>Utility</ApplicationType>
<License>FREE</License>
<Status>VERIFIED</Status>
<Maintainer>Michael Larabel</Maintainer>
</PhoronixTestSuite>
<Information>
<Title>Timed Linux Kernel Compilation</Title>
<Version>2.6.24</Version>
<Identifier>build-linux-kernel</Identifier>
<Executable>time-compile-kernel</Executable>
<TimesToRun>1</TimesToRun>
<ResultScale>Seconds</ResultScale>
<Description>This test times how long it takes to build the Linux 2.6.25 kernel.</Description>
<Notes> </Notes>
</Information>
</PTSBenchmark>

View File

@@ -0,0 +1,20 @@
<PTSBenchmark>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>Processor</BenchmarkType>
<ApplicationType>Utility</ApplicationType>
<License>FREE</License>
<Status>VERIFIED</Status>
<Maintainer>Michael Larabel</Maintainer>
</PhoronixTestSuite>
<Information>
<Title>Timed MPlayer Compilation</Title>
<Version>1.0-rc2</Version>
<Identifier>build-mplayer</Identifier>
<Executable>time-compile-mplayer</Executable>
<TimesToRun>1</TimesToRun>
<ResultScale>Seconds</ResultScale>
<Description>This test times how long it takes to build the MPlayer media program.</Description>
<Notes> </Notes>
</Information>
</PTSBenchmark>

View File

@@ -0,0 +1,20 @@
<PTSBenchmark>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>Processor</BenchmarkType>
<ApplicationType>Utility</ApplicationType>
<License>FREE</License>
<Status>VERIFIED</Status>
<Maintainer>Michael Larabel</Maintainer>
</PhoronixTestSuite>
<Information>
<Title>Timed PHP Compilation</Title>
<Version>5.2.5</Version>
<Identifier>build-php</Identifier>
<Executable>time-compile-php</Executable>
<TimesToRun>1</TimesToRun>
<ResultScale>Seconds</ResultScale>
<Description>This test times how long it takes to build PHP 5 with the Zend engine.</Description>
<Notes> </Notes>
</Information>
</PTSBenchmark>

View File

@@ -0,0 +1,20 @@
<PTSBenchmark>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>Processor</BenchmarkType>
<ApplicationType>Utility</ApplicationType>
<License>FREE</License>
<Status>VERIFIED</Status>
<Maintainer>Michael Larabel</Maintainer>
</PhoronixTestSuite>
<Information>
<Title>Time Gzip Compression</Title>
<Version></Version>
<Identifier>compress-gzip</Identifier>
<Executable>compress-gzip</Executable>
<TimesToRun>5</TimesToRun>
<ResultScale>Seconds</ResultScale>
<Description>Timed Gzip compression benchmarks.</Description>
<Notes> </Notes>
</Information>
</PTSBenchmark>

View File

@@ -0,0 +1,110 @@
<PTSBenchmark>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>Graphics</BenchmarkType>
<ApplicationType>Game</ApplicationType>
<License>NON-FREE</License>
<Status>UNKNOWN</Status>
<Maintainer>Michael Larabel</Maintainer>
</PhoronixTestSuite>
<Information>
<Title>Doom 3 (Demo)</Title>
<Version>1.1.1286</Version>
<Identifier>doom3-demo</Identifier>
<Executable>doom3</Executable>
<TimesToRun>1</TimesToRun>
<ResultScale>FPS</ResultScale>
<Description>This test calculates the average frame-rate within the Doom 3 (demo) game.</Description>
<Notes> </Notes>
</Information>
<Settings>
<Default>
<Arguments>+timedemoquit doom3-pts-demo +set r_mode -1</Arguments>
<PossiblePaths></PossiblePaths>
</Default>
<Option>
<DisplayName>Video RAM</DisplayName>
<Identifier>video-ram</Identifier>
<ArgumentName>+set sys_VideoRam </ArgumentName>
<Menu>
<Entry>
<Name>128MB</Name>
<Value>128</Value>
</Entry>
<Entry>
<Name>256MB</Name>
<Value>256</Value>
</Entry>
<Entry>
<Name>512MB</Name>
<Value>512</Value>
</Entry>
<Entry>
<Name>640MB</Name>
<Value>640</Value>
</Entry>
<Entry>
<Name>1GB</Name>
<Value>1024</Value>
</Entry>
</Menu>
</Option>
<Option>
<DisplayName>Resolution (Width)</DisplayName>
<Identifier>width-resolution</Identifier>
<ArgumentName>+set r_customWidth </ArgumentName>
<Menu>
<Entry>
<Name>1024</Name>
<Value>1024</Value>
</Entry>
<Entry>
<Name>1280</Name>
<Value>1280</Value>
</Entry>
<Entry>
<Name>1680</Name>
<Value>1680</Value>
</Entry>
</Menu>
</Option>
<Option>
<DisplayName>Resolution (Height)</DisplayName>
<Identifier>height-resolution</Identifier>
<ArgumentName>+set r_customHeight </ArgumentName>
<Menu>
<Entry>
<Name>768</Name>
<Value>768</Value>
</Entry>
<Entry>
<Name>1024</Name>
<Value>1024</Value>
</Entry>
<Entry>
<Name>1050</Name>
<Value>1050</Value>
</Entry>
</Menu>
</Option>
<Option>
<DisplayName>In-Game</DisplayName>
<Identifier>game-quality</Identifier>
<ArgumentName>+set com_machineSpec </ArgumentName>
<Menu>
<Entry>
<Name>Low Quality</Name>
<Value>0</Value>
</Entry>
<Entry>
<Name>High Quality</Name>
<Value>2</Value>
</Entry>
<Entry>
<Name>Ultra Quality</Name>
<Value>3</Value>
</Entry>
</Menu>
</Option>
</Settings>
</PTSBenchmark>

View File

@@ -0,0 +1,110 @@
<PTSBenchmark>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>Graphics</BenchmarkType>
<ApplicationType>Game</ApplicationType>
<License>NON-FREE</License>
<Status>UNKNOWN</Status>
<Maintainer>Michael Larabel</Maintainer>
</PhoronixTestSuite>
<Information>
<Title>Doom 3</Title>
<Version>1.3.1</Version>
<Identifier>doom3</Identifier>
<Executable>doom3</Executable>
<TimesToRun>3</TimesToRun>
<ResultScale>FPS</ResultScale>
<Description>This test calculates the average frame-rate within the Doom 3 game.</Description>
<Notes> </Notes>
</Information>
<Settings>
<Default>
<Arguments>+timedemoquit demo1 +set r_mode -1</Arguments>
<PossiblePaths></PossiblePaths>
</Default>
<Option>
<DisplayName>Video RAM</DisplayName>
<Identifier>video-ram</Identifier>
<ArgumentName>+set sys_VideoRam </ArgumentName>
<Menu>
<Entry>
<Name>128MB</Name>
<Value>128</Value>
</Entry>
<Entry>
<Name>256MB</Name>
<Value>256</Value>
</Entry>
<Entry>
<Name>512MB</Name>
<Value>512</Value>
</Entry>
<Entry>
<Name>640MB</Name>
<Value>640</Value>
</Entry>
<Entry>
<Name>1GB</Name>
<Value>1024</Value>
</Entry>
</Menu>
</Option>
<Option>
<DisplayName>Resolution (Width)</DisplayName>
<Identifier>width-resolution</Identifier>
<ArgumentName>+set r_customWidth </ArgumentName>
<Menu>
<Entry>
<Name>1024</Name>
<Value>1024</Value>
</Entry>
<Entry>
<Name>1280</Name>
<Value>1280</Value>
</Entry>
<Entry>
<Name>1680</Name>
<Value>1680</Value>
</Entry>
</Menu>
</Option>
<Option>
<DisplayName>Resolution (Height)</DisplayName>
<Identifier>height-resolution</Identifier>
<ArgumentName>+set r_customHeight </ArgumentName>
<Menu>
<Entry>
<Name>768</Name>
<Value>768</Value>
</Entry>
<Entry>
<Name>1024</Name>
<Value>1024</Value>
</Entry>
<Entry>
<Name>1050</Name>
<Value>1050</Value>
</Entry>
</Menu>
</Option>
<Option>
<DisplayName>In-Game</DisplayName>
<Identifier>game-quality</Identifier>
<ArgumentName>+set com_machineSpec </ArgumentName>
<Menu>
<Entry>
<Name>Low Quality</Name>
<Value>0</Value>
</Entry>
<Entry>
<Name>High Quality</Name>
<Value>2</Value>
</Entry>
<Entry>
<Name>Ultra Quality</Name>
<Value>3</Value>
</Entry>
</Menu>
</Option>
</Settings>
</PTSBenchmark>

View File

@@ -0,0 +1,26 @@
<PTSBenchmark>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>Processor</BenchmarkType>
<ApplicationType>Utility</ApplicationType>
<License>FREE</License>
<Status>VERIFIED</Status>
<Maintainer>Michael Larabel</Maintainer>
</PhoronixTestSuite>
<Information>
<Title>FLAC Audio Encoding</Title>
<Version>1.2.1</Version>
<Identifier>encode-flac</Identifier>
<Executable>flac</Executable>
<TimesToRun>3</TimesToRun>
<ResultScale>Seconds</ResultScale>
<Description>This test times how long it takes to encode a sample WAV file to FLAC format.</Description>
<Notes> </Notes>
</Information>
<Settings>
<Default>
<Arguments></Arguments>
<PossiblePaths></PossiblePaths>
</Default>
</Settings>
</PTSBenchmark>

View File

@@ -0,0 +1,20 @@
<PTSBenchmark>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>Processor</BenchmarkType>
<ApplicationType>Utility</ApplicationType>
<License>FREE</License>
<Status>VERIFIED</Status>
<Maintainer>Michael Larabel</Maintainer>
</PhoronixTestSuite>
<Information>
<Title>LAME MP3 Encoding</Title>
<Version>3.97</Version>
<Identifier>encode-mp3</Identifier>
<Executable>lame</Executable>
<TimesToRun>3</TimesToRun>
<ResultScale>Seconds</ResultScale>
<Description>LAME is an MP3 encoder licensed under the LGPL. This test measures the time required to encode a WAV file to MP3 format.</Description>
<Notes> </Notes>
</Information>
</PTSBenchmark>

View File

@@ -0,0 +1,20 @@
<PTSBenchmark>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>Processor</BenchmarkType>
<ApplicationType>Utility</ApplicationType>
<License>FREE</License>
<Status>VERIFIED</Status>
<Maintainer>Michael Larabel</Maintainer>
</PhoronixTestSuite>
<Information>
<Title>Ogg Encoding</Title>
<Version>1.2.0</Version>
<Identifier>encode-ogg</Identifier>
<Executable>oggenc</Executable>
<TimesToRun>3</TimesToRun>
<ResultScale>Seconds</ResultScale>
<Description>This test times how long it takes to encode a sample WAV file to Ogg format.</Description>
<Notes> </Notes>
</Information>
</PTSBenchmark>

View File

@@ -0,0 +1,53 @@
<PTSBenchmark>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>Graphics</BenchmarkType>
<ApplicationType>Game</ApplicationType>
<License>NON-FREE</License>
<Status>UNKNOWN</Status>
<Maintainer>Michael Larabel</Maintainer>
</PhoronixTestSuite>
<Information>
<Title>Enemy Territory: Quake Wars</Title>
<Version>demo2</Version>
<Identifier>etqw-demo</Identifier>
<Executable>etqw</Executable>
<TimesToRun>3</TimesToRun>
<ResultScale>FPS</ResultScale>
<Description>This test calculates the average frame-rate within the demo for the game ET:QW game.</Description>
<Notes> </Notes>
</Information>
<Settings>
<Default>
<Arguments>+timenetdemoquit pts +set r_mode -1</Arguments>
<PossiblePaths></PossiblePaths>
</Default>
<Option>
<DisplayName>Video RAM</DisplayName>
<Identifier>video-ram</Identifier>
<ArgumentName>+set sys_VideoRam </ArgumentName>
<Menu>
<Entry>
<Name>128MB</Name>
<Value>128</Value>
</Entry>
<Entry>
<Name>256MB</Name>
<Value>256</Value>
</Entry>
<Entry>
<Name>512MB</Name>
<Value>512</Value>
</Entry>
<Entry>
<Name>640MB</Name>
<Value>640</Value>
</Entry>
<Entry>
<Name>1GB</Name>
<Value>1024</Value>
</Entry>
</Menu>
</Option>
</Settings>
</PTSBenchmark>

View File

@@ -0,0 +1,77 @@
<PTSBenchmark>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>Graphics</BenchmarkType>
<ApplicationType>Game</ApplicationType>
<License>NON-FREE</License>
<Status>UNKNOWN</Status>
<Maintainer>Michael Larabel</Maintainer>
</PhoronixTestSuite>
<Information>
<Title>Enemy Territory: Quake Wars</Title>
<Version>1.4</Version>
<Identifier>etqw</Identifier>
<Executable>etqw</Executable>
<TimesToRun>3</TimesToRun>
<PreRunMessage>Due to a current limitation of Nexuiz, once the benchmark has completed you hit the quit button to leave the game.</PreRunMessage>
<ResultScale>FPS</ResultScale>
<Description>This test calculates the average frame-rate within the ET:QW game.</Description>
<Notes> </Notes>
</Information>
<Settings>
<Default>
<Arguments>+timenetdemo pts +set r_mode -1</Arguments>
<PossiblePaths></PossiblePaths>
</Default>
<Option>
<DisplayName>Video RAM</DisplayName>
<Identifier>video-ram</Identifier>
<ArgumentName>+set sys_VideoRam </ArgumentName>
<Menu>
<Entry>
<Name>128MB</Name>
<Value>128</Value>
</Entry>
<Entry>
<Name>256MB</Name>
<Value>256</Value>
</Entry>
<Entry>
<Name>512MB</Name>
<Value>512</Value>
</Entry>
<Entry>
<Name>640MB</Name>
<Value>640</Value>
</Entry>
<Entry>
<Name>1GB</Name>
<Value>1024</Value>
</Entry>
</Menu>
</Option>
<Option>
<DisplayName>Resolution</DisplayName>
<Identifier>display-resolution</Identifier>
<ArgumentName></ArgumentName>
<Menu>
<Entry>
<Name>800 x 600</Name>
<Value>+set r_customWidth 800 +set r_customHeight 600</Value>
</Entry>
<Entry>
<Name>1024 x 768</Name>
<Value>+set r_customWidth 1024 +set r_customHeight 768</Value>
</Entry>
<Entry>
<Name>1280 x 1024</Name>
<Value>+set r_customWidth 1280 +set r_customHeight 1024</Value>
</Entry>
<Entry>
<Name>1680 x 1050</Name>
<Value>+set r_customWidth 1680 +set r_customHeight 1050</Value>
</Entry>
</Menu>
</Option>
</Settings>
</PTSBenchmark>

View File

@@ -0,0 +1,44 @@
<PTSBenchmark>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>Graphics</BenchmarkType>
<ApplicationType>Demo</ApplicationType>
<License>CLOSED</License>
<Status>VERIFIED</Status>
<Maintainer>Michael Larabel</Maintainer>
</PhoronixTestSuite>
<Information>
<Title>ATI fgl_glxgears</Title>
<Identifier>fgl-glxgears</Identifier>
<Executable>fgl_glxgears</Executable>
<TimesToRun>5</TimesToRun>
<ResultScale>FPS</ResultScale>
<Description>This test calculates the average frame-rate within the ATI fgl_glxgears test.</Description>
<Notes>This is a very poor benchmark.</Notes>
</Information>
<Settings>
<Default>
<Arguments></Arguments>
<PossiblePaths>/usr/bin/</PossiblePaths>
</Default>
<Option>
<DisplayName>Time To Loop</DisplayName>
<Identifier>time-to-loop</Identifier>
<ArgumentName>-loop </ArgumentName>
<Menu>
<Entry>
<Name>5 Seconds</Name>
<Value>5000</Value>
</Entry>
<Entry>
<Name>10 Seconds</Name>
<Value>10000</Value>
</Entry>
<Entry>
<Name>30 Seconds</Name>
<Value>30000</Value>
</Entry>
</Menu>
</Option>
</Settings>
</PTSBenchmark>

View File

@@ -0,0 +1,44 @@
<PTSBenchmark>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>Disk</BenchmarkType>
<ApplicationType>Utility</ApplicationType>
<License>FREE</License>
<Status>UNVERIFIED</Status>
<Maintainer>Michael Larabel</Maintainer>
</PhoronixTestSuite>
<Information>
<Title>hdparm Timed Disk Reads</Title>
<Identifier>hdparm-read</Identifier>
<Executable>hdparm-su</Executable>
<TimesToRun>3</TimesToRun>
<ResultScale>MB/s</ResultScale>
<Description> </Description>
<Notes>On most systems, hdparm requires root access</Notes>
</Information>
<Settings>
<Default>
<Arguments></Arguments>
<PossiblePaths></PossiblePaths>
</Default>
<Option>
<DisplayName>Disk To Read</DisplayName>
<Identifier>disk-to-read</Identifier>
<ArgumentName>-t </ArgumentName>
<Menu>
<Entry>
<Name>First SATA Disk (sda)</Name>
<Value>/dev/sda</Value>
</Entry>
<Entry>
<Name>Second SATA Disk (sdb)</Name>
<Value>/dev/sdb</Value>
</Entry>
<Entry>
<Name>Third SATA Disk (sdc)</Name>
<Value>/dev/sdc</Value>
</Entry>
</Menu>
</Option>
</Settings>
</PTSBenchmark>

View File

@@ -0,0 +1,64 @@
<PTSBenchmark>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>Graphics</BenchmarkType>
<ApplicationType>Game</ApplicationType>
<License>FREE</License>
<Status>VERIFIED</Status>
<Maintainer>Michael Larabel</Maintainer>
</PhoronixTestSuite>
<Information>
<Title>Nexuiz</Title>
<Version>2.4</Version>
<Identifier>nexuiz</Identifier>
<Executable>nexuiz</Executable>
<TimesToRun>3</TimesToRun>
<ResultScale>Average FPS</ResultScale>
<Description>This is a benchmark of Nexuiz, a popular open-source first-person shooter.</Description>
<Notes> </Notes>
</Information>
<Settings>
<Default>
<Arguments>-benchmark demos/demo1</Arguments>
<PossiblePaths></PossiblePaths>
</Default>
<Option>
<DisplayName>Resolution</DisplayName>
<Identifier>display-resolution</Identifier>
<ArgumentName></ArgumentName>
<Menu>
<Entry>
<Name>800 x 600</Name>
<Value>+vid_width 800 +vid_height 600</Value>
</Entry>
<Entry>
<Name>1024 x 768</Name>
<Value>+vid_width 1024 +vid_height 768</Value>
</Entry>
<Entry>
<Name>1280 x 1024</Name>
<Value>+vid_width 1280 +vid_height 1024</Value>
</Entry>
<Entry>
<Name>1680 x 1050</Name>
<Value>+vid_width 1680 +vid_height 1050</Value>
</Entry>
</Menu>
</Option>
<Option>
<DisplayName>High Dynamic Range</DisplayName>
<Identifier>hdr-rendering</Identifier>
<ArgumentName>+r_hdr </ArgumentName>
<Menu>
<Entry>
<Name>Yes</Name>
<Value>1</Value>
</Entry>
<Entry>
<Name>No</Name>
<Value>0</Value>
</Entry>
</Menu>
</Option>
</Settings>
</PTSBenchmark>

View File

@@ -0,0 +1,110 @@
<PTSBenchmark>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>Graphics</BenchmarkType>
<ApplicationType>Game</ApplicationType>
<License>NON-FREE</License>
<Status>UNKNOWN</Status>
<Maintainer>Michael Larabel</Maintainer>
</PhoronixTestSuite>
<Information>
<Title>Quake 4</Title>
<Version>1.4.2</Version>
<Identifier>quake4</Identifier>
<Executable>quake4</Executable>
<TimesToRun>1</TimesToRun>
<ResultScale>FPS</ResultScale>
<Description>This test calculates the average frame-rate within the ET:QW game.</Description>
<Notes> </Notes>
</Information>
<Settings>
<Default>
<Arguments>+timedemoquit pts +set r_mode -1</Arguments>
<PossiblePaths></PossiblePaths>
</Default>
<Option>
<DisplayName>Video RAM</DisplayName>
<Identifier>video-ram</Identifier>
<ArgumentName>+set sys_VideoRam </ArgumentName>
<Menu>
<Entry>
<Name>128MB</Name>
<Value>128</Value>
</Entry>
<Entry>
<Name>256MB</Name>
<Value>256</Value>
</Entry>
<Entry>
<Name>512MB</Name>
<Value>512</Value>
</Entry>
<Entry>
<Name>640MB</Name>
<Value>640</Value>
</Entry>
<Entry>
<Name>1GB</Name>
<Value>1024</Value>
</Entry>
</Menu>
</Option>
<Option>
<DisplayName>Resolution (Width)</DisplayName>
<Identifier>width-resolution</Identifier>
<ArgumentName>+set r_mode -1 +set r_customWidth </ArgumentName>
<Menu>
<Entry>
<Name>1024</Name>
<Value>1024</Value>
</Entry>
<Entry>
<Name>1280</Name>
<Value>1280</Value>
</Entry>
<Entry>
<Name>1680</Name>
<Value>1680</Value>
</Entry>
</Menu>
</Option>
<Option>
<DisplayName>Resolution (Height)</DisplayName>
<Identifier>height-resolution</Identifier>
<ArgumentName>+set r_mode -1 +set r_customHeight </ArgumentName>
<Menu>
<Entry>
<Name>768</Name>
<Value>768</Value>
</Entry>
<Entry>
<Name>1024</Name>
<Value>1024</Value>
</Entry>
<Entry>
<Name>1050</Name>
<Value>1050</Value>
</Entry>
</Menu>
</Option>
<Option>
<DisplayName>In-Game</DisplayName>
<Identifier>game-quality</Identifier>
<ArgumentName>+set com_machineSpec </ArgumentName>
<Menu>
<Entry>
<Name>Low Quality</Name>
<Value>0</Value>
</Entry>
<Entry>
<Name>High Quality</Name>
<Value>2</Value>
</Entry>
<Entry>
<Name>Ultra Quality</Name>
<Value>3</Value>
</Entry>
</Menu>
</Option>
</Settings>
</PTSBenchmark>

View File

@@ -0,0 +1,60 @@
<PTSBenchmark>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>Memory</BenchmarkType>
<ApplicationType>Utility</ApplicationType>
<License>FREE</License>
<Status>VERIFIED</Status>
<Maintainer>Michael Larabel</Maintainer>
</PhoronixTestSuite>
<Information>
<Title>RAMspeed</Title>
<Version>1.5.0</Version>
<Identifier>ramspeed</Identifier>
<Executable>ramspeed</Executable>
<TimesToRun>1</TimesToRun>
<ResultScale> </ResultScale>
<Description>This benchmark tests the system memory (RAM) performance.</Description>
<Notes> </Notes>
</Information>
<Settings>
<Default>
<Arguments></Arguments>
<PossiblePaths></PossiblePaths>
</Default>
<Option>
<DisplayName>Benchmark</DisplayName>
<Identifier>benchmark</Identifier>
<ArgumentName>-b </ArgumentName>
<Menu>
<Entry>
<Name>Integer</Name>
<Value>3</Value>
</Entry>
<Entry>
<Name>Floating Point</Name>
<Value>6</Value>
</Entry>
</Menu>
</Option>
<Option>
<DisplayName>Length</DisplayName>
<Identifier>length</Identifier>
<ArgumentName>-l </ArgumentName>
<Menu>
<Entry>
<Name>3 Times</Name>
<Value>3</Value>
</Entry>
<Entry>
<Name>10 Times</Name>
<Value>10</Value>
</Entry>
<Entry>
<Name>25 Times</Name>
<Value>25</Value>
</Entry>
</Menu>
</Option>
</Settings>
</PTSBenchmark>

View File

@@ -0,0 +1,25 @@
#!/bin/sh
cd $1
if [ ! -f image-magick.tar.bz2 ]
then
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.4.0-2.tar.bz2 -O image-magick.tar.bz2
fi
echo "#!/bin/sh
if [ ! -f image-magick.tar.bz2 ]
then
echo \"Image Magick Not Downloaded... Build Fails.\"
exit
fi
rm -rf ImageMagick-6.4.0/
tar -xjf image-magick.tar.bz2
cd ImageMagick-6.4.0/
./configure > /dev/null
sleep 3
/usr/bin/time -f \"ImageMagick Build Time: %e Seconds\" make -s -j \$NUM_CPU_JOBS 2>&1 | grep Seconds" > time-compile-imagemagick
chmod +x time-compile-imagemagick

View File

@@ -0,0 +1,5 @@
<?php
$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "ImageMagick Build Time:") + 23);
echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "Seconds")));
?>

View File

@@ -0,0 +1,4 @@
#!/bin/sh
cd $1
rm -rf php-5.2.5/

View File

@@ -0,0 +1,27 @@
#!/bin/sh
cp -f linux-2624-config $1
cd $1
if [ ! -f linux-2.6.24.tar.bz2 ]
then
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.24.tar.bz2 -O linux-2.6.24.tar.bz2
fi
echo "#!/bin/sh
if [ ! -f linux-2.6.24.tar.bz2 ]
then
echo \"Linux Kernel Not Downloaded... Build Fails.\"
exit
fi
rm -rf linux-2.6.24/
tar -xjf linux-2.6.24.tar.bz2
cp -f linux-2624-config linux-2.6.24/.config
cd linux-2.6.24/
sleep 3
/usr/bin/time -f \"Kernel Build Time: %e Seconds\" make -s -j \$NUM_CPU_JOBS 2>&1 | grep Seconds" > time-compile-kernel
chmod +x time-compile-kernel

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,5 @@
<?php
$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "Kernel Build Time:") + 18);
echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "Seconds")));
?>

View File

@@ -0,0 +1,4 @@
#!/bin/sh
cd $1
rm -rf linux-2.6.24/

View File

@@ -0,0 +1,14 @@
#!/bin/sh
if [ ! -f linux-2.6.24.tar.bz2 ]
then
echo "Linux Kernel Not Downloaded... Build Fails."
exit
fi
rm -rf linux-2.6.24/
tar -xjf linux-2.6.24.tar.bz2
cp -f linux-2624-config linux-2.6.24/.config
cd linux-2.6.24/
sleep 3
/usr/bin/time -f "Kernel Build Time: %e Seconds" make -s -j $NUM_CPU_JOBS 2>&1 | grep Seconds

View File

@@ -0,0 +1,26 @@
#!/bin/sh
cd $1
if [ ! -f mplayer.tar.bz2 ]
then
wget http://www3.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2 -O mplayer.tar.bz2
fi
echo "#!/bin/sh
if [ ! -f mplayer.tar.bz2 ]
then
echo \"MPlayer Not Installed... Build Failed.\"
exit
fi
rm -rf MPlayer-1.0rc2/
tar -xjf mplayer.tar.bz2
cd MPlayer-1.0rc2/
./configure > /dev/null
sleep 3
/usr/bin/time -f \"MPlayer Build Time: %e Seconds\" make -s -j \$NUM_CPU_JOBS 2>&1 | grep Seconds" > time-compile-mplayer
chmod +x time-compile-mplayer

View File

@@ -0,0 +1,5 @@
<?php
$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "MPlayer Build Time:") + 19);
echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "Seconds")));
?>

View File

@@ -0,0 +1,4 @@
#!/bin/sh
cd $1
rm -rf MPlayer-1.0rc2/

View File

@@ -0,0 +1,4 @@
#!/bin/sh
cd $1
rm -rf MPlayer-1.0rc2/

View File

@@ -0,0 +1,42 @@
#!/bin/sh
cd $1
if [ ! -f libxml2.tar.gz ]
then
wget ftp://xmlsoft.org/libxml2/libxml2-2.6.31.tar.gz -O libxml2.tar.gz
fi
if [ ! -f php5.tar.bz2 ]
then
wget http://us3.php.net/get/php-5.2.5.tar.bz2/from/us2.php.net/mirror -O php5.tar.bz2
fi
THIS_DIR=$(pwd)
mkdir $THIS_DIR/libxml2
tar -xvf libxml2.tar.gz
cd libxml2-2.6.31/
./configure --prefix=$THIS_DIR/libxml2
make -j $NUM_CPU_JOBS
make install
cd ..
echo "#!/bin/sh
if [ ! -f php5.tar.bz2 ]
then
echo \"PHP5 Not Downloaded... Build Fails.\"
exit
fi
rm -rf php-5.2.5/
tar -xjf php5.tar.bz2
cd php-5.2.5/
./configure --with-libxml-dir=$THIS_DIR/libxml2 > /dev/null
sleep 3
/usr/bin/time -f \"PHP Build Time: %e Seconds\" make -s -j \$NUM_CPU_JOBS 2>&1 | grep Seconds" > time-compile-php
chmod +x time-compile-php

View File

@@ -0,0 +1,5 @@
<?php
$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "PHP Build Time:") + 15);
echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "Seconds")));
?>

View File

@@ -0,0 +1,4 @@
#!/bin/sh
cd $1
rm -rf php-5.2.5/

View File

@@ -0,0 +1,21 @@
#!/bin/sh
cd $1
if [ ! -f ../pts-shared/pts-wav-sample-file.tar.bz2 ]
then
wget http://www.phoronix-test-suite.com/benchmark-files/pts-wav-sample-file.tar.bz2 -O ../pts-shared/pts-wav-sample-file.tar.bz2
fi
rm -f bigfile
tar -jxvf ../pts-shared/pts-wav-sample-file.tar.bz2
for i in 1 2 3 4 5 6 7 8
do
cat pts-wav-sample-file.wav >> bigfile-orig
done
echo "#!/bin/sh\ncp -f bigfile-orig bigfile\n/usr/bin/time -f \"Gzip Compress Time: %e Seconds\" gzip bigfile 2>&1
rm -f bigfile.gz" > compress-gzip
chmod +x compress-gzip

View File

@@ -0,0 +1,5 @@
<?php
$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "Gzip Compress Time:") + 19);
echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "Seconds")));
?>

View File

@@ -0,0 +1,4 @@
#!/bin/sh
cd $1
rm -f bigfile.gz

View File

@@ -0,0 +1,4 @@
#!/bin/sh
cd $1
rm -f bigfile.gz

View File

@@ -0,0 +1,24 @@
#!/bin/sh
cd $1
if [ ! -f doom3-demo-linux.run ]
then
wget ftp://ftp.idsoftware.com/idstuff/doom3/linux/doom3-linux-1.1.1286-demo.x86.run -O doom3-demo-linux.run
fi
if [ ! -f doom3-pts-demo.tar.bz2 ]
then
wget http://www.phoronix-test-suite.com/benchmark-files/doom3-pts-demo-1.tar.bz2 -O doom3-pts-demo.tar.bz2
fi
chmod +x doom3-demo-linux.run
./doom3-demo-linux.run --noexec --target .
ln bin/Linux/x86/doom.x86 doom3-real
echo "#!/bin/sh\n./doom3-real \$@ | grep fps" > doom3
chmod +x doom3
tar -jxvf doom3-pts-demo.tar.bz2
mkdir demo/demos
mv -f doom3-pts-demo.demo demo/demos/doom3-pts-demo

View File

@@ -0,0 +1,5 @@
<?php
$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "seconds =") + 9);
echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "fps")));
?>

View File

@@ -0,0 +1,20 @@
#!/bin/sh
cd $1
if [ ! -f doom3-linux.run ]
then
wget ftp://ftp.idsoftware.com/idstuff/doom3/linux/doom3-linux-1.3.1.1304.x86.run -O doom3-linux.run
fi
chmod +x doom3-linux.run
./doom3-linux.run --noexec --target .
ln bin/Linux/x86/doom.x86 doom3-real
echo "#!/bin/sh\n./doom3-real \$@ | grep fps" > doom3
chmod +x doom3
echo "Doom 3 Game Files (*.pk4) Must Be Copied Into $1/base"
echo "Also Copy Your Game Key File To ~/.doom3/base/doomkey (If Not Already There)"

View File

@@ -0,0 +1,5 @@
<?php
$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "seconds =") + 9);
echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "fps")));
?>

View File

@@ -0,0 +1,26 @@
#!/bin/sh
cd $1
if [ ! -f flac.tar.gz ]
then
wget http://internap.dl.sourceforge.net/sourceforge/flac/flac-1.2.1.tar.gz -O flac.tar.gz
fi
if [ ! -f ../pts-shared/pts-wav-sample-file.tar.bz2 ]
then
wget http://www.phoronix-test-suite.com/benchmark-files/pts-wav-sample-file.tar.bz2 -O ../pts-shared/pts-wav-sample-file.tar.bz2
fi
tar -xvf flac.tar.gz
cd flac-1.2.1/
./configure
make -j $NUM_CPU_JOBS
cd ..
echo "#!/bin/sh\n/usr/bin/time -f \"WAV To FLAC Encode Time: %e Seconds\" ./flac-1.2.1/src/flac/flac -s --best audio.wav 2>&1
rm -f audio.flac" > flac
chmod +x flac
tar -jxvf ../pts-shared/pts-wav-sample-file.tar.bz2

View File

@@ -0,0 +1,5 @@
<?php
$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "WAV To FLAC Encode Time:") + 24);
echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "Seconds")));
?>

View File

@@ -0,0 +1,5 @@
#!/bin/sh
cd $1
rm -f audio.wav
rm -f audio.flac

View File

@@ -0,0 +1,6 @@
#!/bin/sh
cd $1
rm -f audio.wav
rm -f audio.flac
cp pts-wav-sample-file.wav audio.wav

View File

@@ -0,0 +1,25 @@
#!/bin/sh
cd $1
if [ ! -f lame.tar.gz ]
then
wget http://superb-east.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz -O lame.tar.gz
fi
if [ ! -f ../pts-shared/pts-wav-sample-file.tar.bz2 ]
then
wget http://www.phoronix-test-suite.com/benchmark-files/pts-wav-sample-file.tar.bz2 -O ../pts-shared/pts-wav-sample-file.tar.bz2
fi
tar -xvf lame.tar.gz
cd lame-3.97/
./configure
make -j $NUM_CPU_JOBS
cd ..
echo "#!/bin/sh\n/usr/bin/time -f \"WAV To MP3 Encode Time: %e Seconds\" ./lame-3.97/frontend/lame --silent -h audio.wav audio.mp3 2>&1" > lame
chmod +x lame
tar -jxvf ../pts-shared/pts-wav-sample-file.tar.bz2

View File

@@ -0,0 +1,5 @@
<?php
$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "WAV To MP3 Encode Time:") + 23);
echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "Seconds")));
?>

View File

@@ -0,0 +1,5 @@
#!/bin/sh
cd $1
rm -f audio.wav
rm -f audio.mp3

View File

@@ -0,0 +1,6 @@
#!/bin/sh
cd $1
rm -f audio.wav
rm -f audio.mp3
cp pts-wav-sample-file.wav audio.wav

View File

@@ -0,0 +1,53 @@
#!/bin/sh
cd $1
if [ ! -f libogg.tar.gz ]
then
wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz -O libogg.tar.gz
fi
if [ ! -f libvorbis.tar.gz ]
then
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.tar.gz -O libvorbis.tar.gz
fi
if [ ! -f vorbis-tools.tar.gz ]
then
wget http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.2.0.tar.gz -O vorbis-tools.tar.gz
fi
if [ ! -f ../pts-shared/pts-wav-sample-file.tar.bz2 ]
then
wget http://www.phoronix-test-suite.com/benchmark-files/pts-wav-sample-file.tar.bz2 -O ../pts-shared/pts-wav-sample-file.tar.bz2
fi
THIS_DIR=$(pwd)
mkdir $THIS_DIR/vorbis
tar -xvf libogg.tar.gz
tar -xvf libvorbis.tar.gz
tar -xvf vorbis-tools.tar.gz
cd libogg-1.1.3/
./configure --prefix=$THIS_DIR/vorbis
make -j $NUM_CPU_JOBS
make install
cd ..
cd libvorbis-1.2.0/
./configure --prefix=$THIS_DIR/vorbis
make -j $NUM_CPU_JOBS
make install
cd ..
cd vorbis-tools-1.2.0/
./configure --prefix=$THIS_DIR/vorbis
make -j $NUM_CPU_JOBS
make install
cd ..
echo "#!/bin/sh\n/usr/bin/time -f \"WAV To OGG Encode Time: %e Seconds\" ./vorbis/bin/oggenc --quiet audio.wav -q 10 -o audio.ogg 2>&1" > oggenc
chmod +x oggenc
tar -jxvf ../pts-shared/pts-wav-sample-file.tar.bz2

View File

@@ -0,0 +1,5 @@
<?php
$BENCHMARK_RESULTS = substr($argv[1], strpos($argv[1], "WAV To OGG Encode Time:") + 23);
echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "Seconds")));
?>

View File

@@ -0,0 +1,5 @@
#!/bin/sh
cd $1
rm -f audio.wav
rm -f audio.ogg

View File

@@ -0,0 +1,6 @@
#!/bin/sh
cd $1
rm -f audio.wav
rm -f audio.ogg
cp pts-wav-sample-file.wav audio.wav

View File

@@ -0,0 +1,21 @@
#!/bin/sh
cd $1
if [ ! -f ETQW-demo2-client-full.r1.x86.run ]
then
wget ftp://ftp.idsoftware.com/idstuff/etqw/ETQW-demo2-client-full.r1.x86.run -O ETQW-demo2-client-full.r1.x86.run
fi
if [ ! -f etqw-demo-demo.tar.bz2 ]
then
wget http://www.phoronix-test-suite.com/benchmark-files/etqw-demo-demo-1.tar.bz2 -O etqw-demo-demo.tar.bz2
fi
unzip -o ETQW-demo2-client-full.r1.x86.run
echo "#!/bin/sh\ncd data/\n./etqw.x86 \$@ | grep fps" > etqw
chmod +x etqw
tar -jxvf etqw-demo-demo.tar.bz2
mkdir data/base/demos
mv -f pts.ndm data/base/demos/pts.ndm

View File

@@ -0,0 +1,5 @@
<?php
$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "seconds =") + 9);
echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "fps")));
?>

View File

@@ -0,0 +1,27 @@
#!/bin/sh
cd $1
if [ ! -f etqw-linux.run ]
then
wget ftp://ftp.idsoftware.com/idstuff/etqw/ETQW-client-1.4-full.x86.run -O etqw-linux.run
fi
chmod +x etqw-linux.run
unzip -o etqw-linux.run
ln data/etqw.x86 etqw-real
echo "#!/bin/sh\n./etqw-real \$@ | grep fps" > etqw
chmod +x etqw
if [ ! -f etqw-demo.tar.bz2 ]
then
wget http://www.phoronix-test-suite.com/benchmark-files/etqw-demo-1.tar.bz2 -O etqw-demo.tar.bz2
fi
tar -jxvf etqw-demo.tar.bz2
mkdir data/base/demos
mv -f pts.ndm data/base/demos/pts.ndm
echo "ET:QW Game Files (*.pk4) Must Be Copied Into $1/base"

View File

@@ -0,0 +1,5 @@
<?php
$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "seconds =") + 9);
echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "fps")));
?>

View File

@@ -0,0 +1,6 @@
<?php
$BENCHMARK_RESULTS = trim(substr($argv[1], strpos($argv[1], '=') + 1));
echo substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, ' '));
?>

View File

@@ -0,0 +1,7 @@
#!/bin/sh
cd $1
echo "#!/bin/sh\necho \"Root permission needed to run hdparm benchmark.\"\ngksudo -w hdparm \$@" > hdparm-su
chmod +x hdparm-su

View File

@@ -0,0 +1,6 @@
<?php
$BENCHMARK_RESULTS = trim(substr($argv[1], strpos($argv[1], '=') + 1));
echo substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, ' '));
?>

View File

@@ -0,0 +1,114 @@
seta _alientrap_net_banlist ""
seta bot_prefix "[BOT]"
seta bot_suffix ""
seta bot_usemodelnames "0"
seta cl_autoswitch "1"
seta cl_hidewaypoints "0"
seta cl_nogibs "0"
seta cl_playerdetailreduction "0"
seta cl_shownames "1"
seta cl_zoomfactor "5"
seta cl_zoomspeed "3.5"
seta fraglimit_override "-1"
seta g_balance_cloaked_alpha "0.25"
seta g_balance_teams "0"
seta g_balance_teams_complain "0"
seta g_balance_teams_force "0"
seta g_balance_teams_prevent_imbalance "0"
seta g_campaign_index "0"
seta g_campaign_name ""
seta g_ctf_capture_limit "-1"
seta g_domination_point_limit "-1"
seta g_friendlyfire "0.0"
seta g_grappling_hook "0"
seta g_keyhunt_point_limit "-1"
seta g_maplist "aggressor aneurysm basement basementctf bleach bloodprison bluesky darkzone dieselpower dismal downer evilspace farewell final_rage reslimed ruiner runningman runningman_1on1remix runningmanctf silvercity skyway slimepit soylent starship stormkeep strength toxic warfare"
seta g_maplist_index "0"
seta g_maplist_mostrecent_count "3"
seta g_maplist_selectrandom "0"
seta g_maplist_shuffle "1"
seta g_maplist_votable "5"
seta g_maplist_votable_abstain "0"
seta g_maplist_votable_keeptwotime "15"
seta g_maplist_votable_nodetail "0"
seta g_maplist_votable_suggestions "2"
seta g_maplist_votable_suggestions_override_mostrecent "0"
seta g_maplist_votable_timeout "30"
seta g_mirrordamage "0.2"
seta g_runematch_point_limit "-1"
seta g_tdm_teams "2"
seta menu_maxplayers "8"
seta menu_skin ""
seta menu_slist_showempty "1"
seta menu_slist_showfull "1"
seta skill_auto "0"
seta sv_defaultcharacter "0"
seta sv_defaultplayercolors ""
seta sv_defaultplayermodel "models/player/nexus.zym"
seta sv_defaultplayermodel_blue ""
seta sv_defaultplayermodel_pink ""
seta sv_defaultplayermodel_red ""
seta sv_defaultplayermodel_yellow ""
seta sv_defaultplayerskin "0"
seta sv_defaultplayerskin_blue "0"
seta sv_defaultplayerskin_pink "0"
seta sv_defaultplayerskin_red "0"
seta sv_defaultplayerskin_yellow "0"
seta sv_eventlog_files_counter "0"
seta sv_precacheitems "0"
seta sv_precacheplayermodels "1"
seta sv_precacheweapons "0"
seta sv_servermodelsonly "1"
seta sv_spectate "1"
seta teamplay_default "4"
seta timelimit_maxovertime "5"
seta timelimit_override "-1"
seta userbind10_description ""
seta userbind10_press ""
seta userbind10_release ""
seta userbind11_description ""
seta userbind11_press ""
seta userbind11_release ""
seta userbind12_description ""
seta userbind12_press ""
seta userbind12_release ""
seta userbind13_description ""
seta userbind13_press ""
seta userbind13_release ""
seta userbind14_description ""
seta userbind14_press ""
seta userbind14_release ""
seta userbind15_description ""
seta userbind15_press ""
seta userbind15_release ""
seta userbind16_description ""
seta userbind16_press ""
seta userbind16_release ""
seta userbind1_description ""
seta userbind1_press ""
seta userbind1_release ""
seta userbind2_description ""
seta userbind2_press ""
seta userbind2_release ""
seta userbind3_description ""
seta userbind3_press ""
seta userbind3_release ""
seta userbind4_description ""
seta userbind4_press ""
seta userbind4_release ""
seta userbind5_description ""
seta userbind5_press ""
seta userbind5_release ""
seta userbind6_description ""
seta userbind6_press ""
seta userbind6_release ""
seta userbind7_description ""
seta userbind7_press ""
seta userbind7_release ""
seta userbind8_description ""
seta userbind8_press ""
seta userbind8_release ""
seta userbind9_description ""
seta userbind9_press ""
seta userbind9_release ""
seta vid_x11_display ""

View File

@@ -0,0 +1,14 @@
#!/bin/sh
cd $1
if [ ! -f nexuiz-24.zip ]
then
wget http://internap.dl.sourceforge.net/sourceforge/nexuiz/nexuiz-24.zip -O nexuiz-24.zip
fi
unzip -o nexuiz-24.zip
echo "#!/bin/sh\ncd Nexuiz\n./nexuiz-linux-glx.sh +exec normal.cfg \$@ | grep fps" > nexuiz
chmod +x nexuiz

View File

@@ -0,0 +1,7 @@
<?php
$BENCHMARK_RESULTS = trim(substr($argv[1], strrpos($argv[1], "min/avg/max:") + 12));
$BENCHMARK_RESULTS = trim(substr($BENCHMARK_RESULTS, strpos($BENCHMARK_RESULTS, ' ')));
$BENCHMARK_RESULTS = trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, ' ')));
echo $BENCHMARK_RESULTS;
?>

View File

@@ -0,0 +1,28 @@
#!/bin/sh
cd $1
if [ ! -f quake4-linux.run ]
then
wget ftp://ftp.idsoftware.com/idstuff/quake4/linux/quake4-linux-1.4.2.x86.run -O quake4-linux.run
fi
if [ ! -f quake4-demo.tar.bz2 ]
then
wget http://www.phoronix-test-suite.com/benchmark-files/quake4-demo-1.tar.bz2 -O quake4-demo.tar.bz2
fi
chmod +x quake4-linux.run
./quake4-linux.run --noexec --target .
ln bin/Linux/x86/quake4.x86 quake4-real
chmod +x quake4-real
echo "#!/bin/sh\n./quake4-real \$@ | grep fps" > quake4
chmod +x quake4
tar -jxvf quake4-demo.tar.bz2
mkdir q4base/demos
mv -f pts.demo q4base/demos/pts.demo
echo "Quake 4 Game Files (*.pk4) Must Be Copied Into $1/q4base"
echo "Also Copy Your Game Key File To ~/.quake4/q4base/quake4key (If Not Already There)"

View File

@@ -0,0 +1,5 @@
<?php
$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "seconds =") + 9);
echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "fps")));
?>

View File

@@ -0,0 +1,16 @@
#!/bin/sh
cd $1
if [ ! -f ramspeed.tar.gz ]
then
wget http://www.alasir.com/software/ramspeed/ramspeed-2.5.1.tar.gz -O ramspeed.tar.gz
fi
tar -xvf ramspeed.tar.gz
cd ramspeed-2.5.1/
cat build.sh | grep -v 'read ANS' > build_pts.sh
chmod +x build_pts.sh
./build_pts.sh
ln ramspeed ../

View File

@@ -0,0 +1,5 @@
<?php
echo trim(substr($argv[1], strpos($argv[1], "BatchRun", strpos($argv[1], "BatchRun") + 1)));
?>

View File

@@ -0,0 +1,25 @@
<PTSuite>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>System</BenchmarkType>
<Title>Audio Encoding Test Suite</Title>
<Maintainer>Michael Larabel</Maintainer>
<Description>This test suite consists of benchmarks that measure the amount of time needed to encode a sample WAV file to various audio formats. Among the formats are MP3, Ogg, and FLAC. This suite is good for testing the system's processor, memory, and overall system performance.</Description>
<Official>0</Official>
</PhoronixTestSuite>
<PTSBenchmark>
<Benchmark>encode-mp3</Benchmark>
<Arguments></Arguments>
<Description>time lame -h audio.wav audio.mp3 (45.0MB)</Description>
</PTSBenchmark>
<PTSBenchmark>
<Benchmark>encode-ogg</Benchmark>
<Arguments></Arguments>
<Description>time oggenc audio.wav -q 10 -o audio.ogg (45.0MB)</Description>
</PTSBenchmark>
<PTSBenchmark>
<Benchmark>encode-flac</Benchmark>
<Arguments></Arguments>
<Description>time flac --best audio.wav (45.0MB)</Description>
</PTSBenchmark>
</PTSuite>

View File

@@ -0,0 +1,25 @@
<PTSuite>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>Processor</BenchmarkType>
<Title>Timed Code Compilation Tests</Title>
<Maintainer>Michael Larabel</Maintainer>
<Description>This test suite consists of benchmarks that measure the amount of time needed to build common open-source software packages. These benchmarks will use your default compiler (likely GCC) and will adjust the number of compiling jobs based upon the number of detected CPU cores in your system. This suite is good for testing the system's processor, memory, and overall system performance.</Description>
<Official>0</Official>
</PhoronixTestSuite>
<PTSBenchmark>
<Benchmark>build-mplayer</Benchmark>
<Arguments></Arguments>
<Description>Time To Compile</Description>
</PTSBenchmark>
<PTSBenchmark>
<Benchmark>build-php</Benchmark>
<Arguments></Arguments>
<Description>Time To Compile</Description>
</PTSBenchmark>
<PTSBenchmark>
<Benchmark>build-imagemagick</Benchmark>
<Arguments></Arguments>
<Description>Time To Compile</Description>
</PTSBenchmark>
</PTSuite>

View File

@@ -0,0 +1,25 @@
<PTSuite>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>Graphics</BenchmarkType>
<Title>Phoronix Test Suite For Gaming</Title>
<Maintainer>Michael Larabel</Maintainer>
<Description>This test suite consists of benchmarks designed to test your graphics card and display driver.</Description>
<Official>1</Official>
</PhoronixTestSuite>
<PTSBenchmark>
<Benchmark>nexuiz</Benchmark>
<Arguments>+vid_width 1024 +vid_height 768</Arguments>
<Description>1024 x 768</Description>
</PTSBenchmark>
<PTSBenchmark>
<Benchmark>doom3</Benchmark>
<Arguments>+set r_customWidth 1280 +set r_customHeight 1024 +set com_machineSpec 2</Arguments>
<Description>1280 x 1024 - High Quality</Description>
</PTSBenchmark>
<PTSBenchmark>
<Benchmark>quake4</Benchmark>
<Arguments>+set r_customWidth 1280 +set r_customHeight 1024 +set com_machineSpec 0</Arguments>
<Description>1280 x 1024 - Low Quality</Description>
</PTSBenchmark>
</PTSuite>

View File

@@ -0,0 +1,19 @@
<PTSuite>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>Graphics</BenchmarkType>
<Title>Phoronix Test Suite For Graphics</Title>
<Maintainer>Michael Larabel</Maintainer>
<Description>This test suite consists of benchmarks designed to test your graphics card and display driver.</Description>
<Official>1</Official>
</PhoronixTestSuite>
<PTSBenchmark>
<Benchmark>nexuiz</Benchmark>
<Arguments>+vid_width 1024 +vid_height 768</Arguments>
<Description>1024 x 768</Description>
</PTSBenchmark>
<PTSBenchmark>
<Benchmark>doom3</Benchmark>
<Arguments>+set r_customWidth 1024 +set r_customHeight 768 +set com_machineSpec 2</Arguments>
</PTSBenchmark>
</PTSuite>

View File

@@ -0,0 +1,22 @@
<PTSuite>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>Motherboard</BenchmarkType>
<Title>Motherboard Tests</Title>
<Maintainer>Michael Larabel</Maintainer>
<Description>This test suite consists of benchmarks designed to test your motherboard.</Description>
<Official>1</Official>
</PhoronixTestSuite>
<PTSBenchmark>
<Benchmark>lame-mp3</Benchmark>
<Arguments></Arguments>
</PTSBenchmark>
<PTSBenchmark>
<Benchmark>ogg-encode</Benchmark>
<Arguments></Arguments>
</PTSBenchmark>
<PTSBenchmark>
<Benchmark>ramspeed</Benchmark>
<Arguments>-b 3 -l 2</Arguments>
</PTSBenchmark>
</PTSuite>

View File

@@ -0,0 +1,15 @@
<PTSuite>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>System</BenchmarkType>
<Title>Recursion Test Of Audio Encoding</Title>
<Maintainer>Michael Larabel</Maintainer>
<Description>Recursion Test For Phoronix Test Suite... Should Produce Identical Design To Audio Encoding suite when running recursion-test.</Description>
<Official>0</Official>
</PhoronixTestSuite>
<PTSBenchmark>
<Benchmark>audio-encoding</Benchmark>
<Arguments></Arguments>
<Description>Running The Audio Encoding Suite in PTS.</Description>
</PTSBenchmark>
</PTSuite>

View File

@@ -0,0 +1,50 @@
<PTSuite>
<PhoronixTestSuite>
<Version>0.1</Version>
<BenchmarkType>System</BenchmarkType>
<Title>Universe Test Suite</Title>
<Maintainer>Michael Larabel</Maintainer>
<Description>The Universe Phoronix Test Suite contains all benchmark profiles that are known to be in a working and good overall state. Among the profiles are encoding, compilation, graphics, and other system tests. The Universe test suite may take many minutes to complete.</Description>
<Official>0</Official>
</PhoronixTestSuite>
<PTSBenchmark>
<Benchmark>encode-mp3</Benchmark>
<Arguments></Arguments>
<Description>time lame -h audio.wav audio.mp3 (45.0MB)</Description>
</PTSBenchmark>
<PTSBenchmark>
<Benchmark>encode-ogg</Benchmark>
<Arguments></Arguments>
<Description>time oggenc audio.wav -q 10 -o audio.ogg (45.0MB)</Description>
</PTSBenchmark>
<PTSBenchmark>
<Benchmark>encode-flac</Benchmark>
<Arguments></Arguments>
<Description>time flac --best audio.wav (45.0MB)</Description>
</PTSBenchmark>
<PTSBenchmark>
<Benchmark>build-mplayer</Benchmark>
<Arguments></Arguments>
<Description>Time To Compile</Description>
</PTSBenchmark>
<PTSBenchmark>
<Benchmark>build-php</Benchmark>
<Arguments></Arguments>
<Description>Time To Compile</Description>
</PTSBenchmark>
<PTSBenchmark>
<Benchmark>build-imagemagick</Benchmark>
<Arguments></Arguments>
<Description>Time To Compile</Description>
</PTSBenchmark>
<PTSBenchmark>
<Benchmark>nexuiz</Benchmark>
<Arguments>+vid_width 1024 +vid_height 768</Arguments>
<Description>1024 x 768</Description>
</PTSBenchmark>
<PTSBenchmark>
<Benchmark>compress-gzip</Benchmark>
<Arguments></Arguments>
<Description></Description>
</PTSBenchmark>
</PTSuite>

18
user-config.xml Normal file
View File

@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<PhoronixTestSuite>
<GlobalDatabase>
<UserName>Default User</UserName>
<UploadKey></UploadKey>
<AutoUploadResults>FALSE</AutoUploadResults>
</GlobalDatabase>
<Options>
<Results>
<BuildGraphsLocally>FALSE</BuildGraphsLocally>
</Results>
<Benchmarking>
<EnvironmentDirectory>~/pts-benchmark-env/</EnvironmentDirectory>
<ResultsDirectory>test-results/</ResultsDirectory>
<SleepTimeBetweenTests>5</SleepTimeBetweenTests>
</Benchmarking>
</Options>
</PhoronixTestSuite>