}
        $time = microtime(true) - $time;
        $this->enterResult($time);
    }
    public function run()
    {
        $this->name = "get_post";
        $this->category = "post page and attachement functions";
        $this->description = "Tests get_post";
        //$this->randomTest();
        $this->constantTest();
    }
}
//end of getPost
//run GetPost
$test = new GetPost($suite, $runs);
$test->run();
class GetPostMimeType extends PerformanceTest
{
    protected function constantTest()
    {
        $post_id_1 = 0;
        $time = microtime(true);
        for ($i = 0; $i < $this->runNumber; $i++) {
            $post_id = 1;
            $post_id_1 = get_post_mime_type($post_id);
        }
        $time = microtime(true) - $time;
        $this->enterResult($time);
    }
    public function run()
Example #2
0
<div class="load-wall"><?
include("get_post.php");
$post = new GetPost("79268570");
$news = $post->nextPost();
echo $post->date;
?></div>