You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the only valid excuse for ignoring the context export resulting from calling include as discovered in #6 is a speculative performance knock it would be interesting to verify just how significant this sacrifice actually is.
What I am thinking is 100 vendors x 100 projects x 100 class files = 1 million includes.
The PSR-0 benchmark class
<?phpnamespaceVendor1\Project1;
if (isset($this) && $this->ignoranceTax) {
$class = __NAMESPACE__.'\\'.pathinfo(__FILE__, PATHINFO_FILENAME);
returnnew$class();
}
class Class1 {}
That should suffice enough punishment over a million and switchable on the loader so we can compare the differences between straight method unpunished, closure, and context-less function.
include in loader static property declared closure
include in function
require in loader method un punished
require in loader method punished
require in loader static method un punished
require in loader static method punished
require in dynamic closure
require in loader property declared closure
require in loader static property declared closure
require in function
include relative path
require relative path
include absolute path
require absolute path
sudden death
include_path vs location_map
This list is a work in progress, if you can think of anything that is missing or something else you think would be worth our time to test in the same exercise all you need to do is ask.
The text was updated successfully, but these errors were encountered:
Since the only valid excuse for ignoring the context export resulting from calling include as discovered in #6 is a speculative performance knock it would be interesting to verify just how significant this sacrifice actually is.
What I am thinking is 100 vendors x 100 projects x 100 class files = 1 million includes.
The PSR-0 benchmark class
That should suffice enough punishment over a million and switchable on the loader so we can compare the differences between straight method unpunished, closure, and context-less function.
This current lis benchmark testis:
exists
absolute path
how do I include you, let me count the ways
sudden death
This list is a work in progress, if you can think of anything that is missing or something else you think would be worth our time to test in the same exercise all you need to do is ask.
The text was updated successfully, but these errors were encountered: