sample/sample.php
/**
     * Run performance test for encoding many times a relatively small but nested resources.
     *
     * @param int $num
     *
     * @return void
     */
Run performance test for encoding many times a relatively small but nested resources.
@param int $num

@return void
Run performance test for encoding many times a relatively small but nested resources . @param int $num @return void
private function runPerformanceTestForSmallNestedResources(int $num): void
    {
        echo "Neomerx JSON API performance test ($num iterations for small resources)... ";
        [$time, $bytes] = $this->samples->runPerformanceTestForSmallNestedResources($num);
        $bytes = number_format($bytes);
        echo "$time  seconds ($bytes bytes used)." . PHP_EOL;
    }
private function runPerformanceTestForSmallNestedResources ( int $ num ) : void { echo " Neomerx JSON API performance test ( $ num  iterations for small resources)...  " ; [ $ time , $ bytes ] = $ this -> samples -> runPerformanceTestForSmallNestedResources ( $ num ) ; $ bytes = number_format ( $ bytes ) ; echo " $ time   seconds ( $ bytes  bytes used). " . PHP_EOL ; }
Run performance test for encoding many times a relatively small but nested resources.
Run performance test for encoding many times a relatively small but nested resources .