Page MenuHomePhabricator

xhpast_tree.php

Authored By
joshuaspence
Nov 17 2015, 8:29 PM
Size
482 B
Referenced Files
None
Subscribers
None

xhpast_tree.php

<?php
require_once __DIR__.'/scripts/__init_script__.php';
$console = PhutilConsole::getConsole();
$iterations = 10;
$source = Filesystem::readFile(__DIR__.'/../phabricator/src/__phutil_library_map__.php');
$start = microtime(true);
for ($ii = 0; $ii < $iterations; $ii++) {
XHPASTTree::newFromData($source);
}
$end = microtime(true);
$duration = $end - $start;
$console->writeOut("Average: %fs\n", $duration / $iterations);
$console->writeOut("Total: %fs\n", $duration);

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/qh/i7/vxapujtboccrbc3n
Default Alt Text
xhpast_tree.php (482 B)

Event Timeline