Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F974629
xhpast_tree.php
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
joshuaspence
Nov 17 2015, 8:29 PM
2015-11-17 20:29:48 (UTC+0)
Size
482 B
Referenced Files
None
Subscribers
None
xhpast_tree.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
P1892 xhpast_tree.php
Attached
Detach File
Event Timeline
Log In to Comment