Difference between revisions of "API:EPrints/Bench"
Line 17: | Line 17: | ||
<!-- Pod2Wiki=head_description --> | <!-- Pod2Wiki=head_description --> | ||
==DESCRIPTION== | ==DESCRIPTION== | ||
− | Tools for benchmarking performance of | + | Tools for benchmarking performance of EPrints Repository software. |
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
Line 39: | Line 39: | ||
EPrints::Bench::clear | EPrints::Bench::clear | ||
− | Empties @ids array and $totals and $starts hash references. (So a new benchmarking task can be undertaken). | + | Empties @ids array and $totals and $starts hash references. (So a new set of benchmarking task can be undertaken). |
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | ||
Line 91: | Line 91: | ||
EPrints::Bench::totals | EPrints::Bench::totals | ||
− | + | Prints the individual microseconds for each task carried out since benchmarking was started or last cleared. | |
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | <div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> |
Revision as of 09:46, 20 December 2021
EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects
Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki
Contents
NAME
EPrints::Bench
DESCRIPTION
Tools for benchmarking performance of EPrints Repository software.
METHODS
eprints_bench_clear
EPrints::Bench::clear
Empties @ids array and $totals and $starts hash references. (So a new set of benchmarking task can be undertaken).
eprints_banch_hitime
EPrints::Banch::hitime
Returns an integer representing the number of microseconds since the start of the epoch.
enter
EPrints::Bench::enter( $id )
Sets the (microseconds since start of epoch) start time for specified task with $id.
leave
EPrints::Bench::leave( $id )
Sets the total time (in microseconds) for a specified task with $id based on the time since that set for same ID by EPrints::Bench::enter.
eprints_bench_totals
EPrints::Bench::totals
Prints the individual microseconds for each task carried out since benchmarking was started or last cleared.
COPYRIGHT
© Copyright 2000-2024 University of Southampton.
EPrints 3.4 is supplied by EPrints Services.
http://www.eprints.org/eprints-3.4/
LICENSE
This file is part of EPrints 3.4 http://www.eprints.org/.
EPrints 3.4 and this file are released under the terms of the GNU Lesser General Public License version 3 as published by the Free Software Foundation unless otherwise stated.
EPrints 3.4 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 Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with EPrints 3.4. If not, see http://www.gnu.org/licenses/.