Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P1892
xhpast_tree.php
Active
Public
Actions
Authored by
joshuaspence
on Nov 17 2015, 8:29 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
XHPAST
Referenced Files
F974629: xhpast_tree.php
Feb 24 2016, 1:31 AM
2016-02-24 01:31:56 (UTC+0)
Subscribers
None
<?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
);
Event Timeline
joshuaspence
changed the title of this paste from untitled to
xhpast_tree.php
.
Nov 17 2015, 8:29 PM
2015-11-17 20:29:48 (UTC+0)
joshuaspence
edited the content of this paste.
(Show Details)
joshuaspence
added a project:
XHPAST
.
joshuaspence
mentioned this in
D14496: Add previous and next sibling pointers to `AASTNode`
.
Nov 17 2015, 8:32 PM
2015-11-17 20:32:12 (UTC+0)
joshuaspence
mentioned this in
D14504: Use setters instead of public properties
.
Nov 17 2015, 9:04 PM
2015-11-17 21:04:51 (UTC+0)
joshuaspence
mentioned this in
rPHU67f26422b91a: Use setters instead of public properties
.
Nov 18 2015, 12:30 PM
2015-11-18 12:30:19 (UTC+0)
Log In to Comment