Coding standards
Security in ResourceSpace
Developer reference
Database
User api session functions
Geolocation functions
Storage test functions

storage_test_stages()

Description

Benchmark stages and their wall time budgets (seconds), excluding AJAX idle time.

Parameters

ColumnTypeDefaultDescription
array { : > 2
'write' > 9
'read' > 7
'small_create' > 5
'small_read' > 4
'stat' > 3
'random' > 4
'enumerate' > 2]; } /** * Record actual operation time using a monotonic timer; retain partial counts on failure. * * @param array $state Mutable server state. * @param string $metric Metric name. * @param callable $operation Operation returning the number of bytes or operations actually completed. * @return void */ function storage_test_measurearray &$state
$metric string
$operation: callable

Return

array Stage names mapped to maximum active time. Cleanup has its own bounded requests.

Location

include/storage_test_functions.php lines 102 to 106

Definition

 
function storage_test_stages(): array
{
    return [
'directories' => 2, 'write' => 9, 'read' => 7, 'small_create' => 5,
        
'small_read' => 4, 'stat' => 3, 'random' => 4, 'enumerate' => 2];
}

This article was last updated 13th November 2026 13:05 Europe/London time based on the source file dated 13th November 2026 11:40 Europe/London time.