René's URL Explorer Experiment


Title: Provide a way to reset state/caches at every loop · Issue #304 · phpbench/phpbench · GitHub

Open Graph Title: Provide a way to reset state/caches at every loop · Issue #304 · phpbench/phpbench

X Title: Provide a way to reset state/caches at every loop · Issue #304 · phpbench/phpbench

Description: As of today's twitter thread and related example, it is currently not supported to run benchmarks and reset state at each execution of the benchmark methods. Basically: class MyBench { public function __construct() { $this->foo = new Foo...

Open Graph Description: As of today's twitter thread and related example, it is currently not supported to run benchmarks and reset state at each execution of the benchmark methods. Basically: class MyBench { public funct...

X Description: As of today's twitter thread and related example, it is currently not supported to run benchmarks and reset state at each execution of the benchmark methods. Basically: class MyBench { public f...

Opengraph URL: https://github.com/phpbench/phpbench/issues/304

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Provide a way to reset state/caches at every loop","articleBody":"As of today's [twitter thread](https://twitter.com/Ocramius/status/691293008428429313) and related [example](https://gist.github.com/Ocramius/c495f7104ab5881072ac), it is currently not supported to run benchmarks and reset state at each execution of the benchmark methods.\n\nBasically:\n\n``` php\nclass MyBench\n{\n    public function __construct()\n    {\n        $this->foo = new Foo();\n    }\n    public function benchFoo()\n    {\n        $this->foo->reset(); // \u003c- should not be included in benchmark measurement\n        $this->foo->doFoo();\n    }\n}\n```\n\nA workaround (for now), is to ensure immutability by de-referencing the system under bench:\n\n``` php\nclass MyBench\n{\n    public function __construct()\n    {\n        $this->foo = new Foo();\n    }\n    public function benchFoo()\n    {\n        $foo = clone $this->foo; // \u003c- still some overhead\n\n        $foo->doFoo();\n    }\n}\n```\n\nThis needs some research, but it may be possible to have a separate `resetInstance` method (or such) on the benchmark, that can be measured and excluded from the output measurements.\n","author":{"url":"https://github.com/Ocramius","@type":"Person","name":"Ocramius"},"datePublished":"2016-01-24T17:34:32Z","url":"https://github.com/phpbench/phpbench/issues/304"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:aa48b7ad-69d6-07cd-8e56-5fb575ed21bc
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE770:1453CC:FA2CB:15BD81:6B04640A
html-safe-nonceee1c7497a33a0e19c2dff1665ede02da4593095877625b2341cad120c38dcc49
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzcwOjE0NTNDQzpGQTJDQjoxNUJEODE6NkIwNDY0MEEiLCJ2aXNpdG9yX2lkIjoiNTA1NjU3MDUxMzgzNzgxMDY5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb3a505e82073edd93b92364a2e50021fa5d6e4ce35c03aefa087282ab3de4e4c
hovercard-subject-tagissue:128412452
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/phpbench/phpbench/304/issue_layout
twitter:imagehttps://opengraph.githubassets.com/76164a40dd13562be5caa14aca43e76e828d33ec6431dc4bf6b88caf9a42eec2/phpbench/phpbench/issues/304
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/76164a40dd13562be5caa14aca43e76e828d33ec6431dc4bf6b88caf9a42eec2/phpbench/phpbench/issues/304
og:image:altAs of today's twitter thread and related example, it is currently not supported to run benchmarks and reset state at each execution of the benchmark methods. Basically: class MyBench { public funct...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameOcramius
hostnamegithub.com
expected-hostnamegithub.com
None2d58451b4bcb73c33c67bfb6b28fb75fe6d5e279daf9b560fa4fd832f3d8c9a6
turbo-cache-controlno-preview
go-importgithub.com/phpbench/phpbench git https://github.com/phpbench/phpbench.git
octolytics-dimension-user_id12785153
octolytics-dimension-user_loginphpbench
octolytics-dimension-repository_id34982189
octolytics-dimension-repository_nwophpbench/phpbench
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id34982189
octolytics-dimension-repository_network_root_nwophpbench/phpbench
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release03e114520787ad27289207f153520ef97461127c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/phpbench/phpbench/issues/304#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpbench%2Fphpbench%2Fissues%2F304
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpbench%2Fphpbench%2Fissues%2F304
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=phpbench%2Fphpbench
Reloadhttps://github.com/phpbench/phpbench/issues/304
Reloadhttps://github.com/phpbench/phpbench/issues/304
Reloadhttps://github.com/phpbench/phpbench/issues/304
phpbenchhttps://github.com/phpbench
phpbenchhttps://github.com/phpbench/phpbench
Codehttps://github.com/phpbench/phpbench
Issues29 (29)https://github.com/phpbench/phpbench/issues
Pull requests12 (12)https://github.com/phpbench/phpbench/pulls
Discussionshttps://github.com/phpbench/phpbench/discussions
Actionshttps://github.com/phpbench/phpbench/actions
Projectshttps://github.com/phpbench/phpbench/projects
Security and qualityhttps://github.com/phpbench/phpbench/security
Insightshttps://github.com/phpbench/phpbench/insights
https://github.com/phpbench/phpbench
New issuehttps://github.com/login?return_to=https://github.com/phpbench/phpbench/issues/304
New issuehttps://github.com/login?return_to=https://github.com/phpbench/phpbench/issues/304
Provide a way to reset state/caches at every loophttps://github.com/phpbench/phpbench/issues/304#top
https://github.com/Ocramius
Ocramiushttps://github.com/Ocramius
on Jan 24, 2016https://github.com/phpbench/phpbench/issues/304#issue-128412452
twitter threadhttps://twitter.com/Ocramius/status/691293008428429313
examplehttps://gist.github.com/Ocramius/c495f7104ab5881072ac
https://github.com/dantleech
dantleechhttps://github.com/dantleech
on Feb 10, 2016https://github.com/phpbench/phpbench/issues/304#issuecomment-182447404
deep copyhttps://packagist.org/packages/myclabs/deep-copy
https://github.com/Ocramius
Ocramiushttps://github.com/Ocramius
on Feb 10, 2016https://github.com/phpbench/phpbench/issues/304#issuecomment-182458243
@dantleechhttps://github.com/dantleech
https://github.com/dantleech
dantleechhttps://github.com/dantleech
on Feb 17, 2016https://github.com/phpbench/phpbench/issues/304#issuecomment-185085111
https://github.com/Ocramius
Ocramiushttps://github.com/Ocramius
on Feb 17, 2016https://github.com/phpbench/phpbench/issues/304#issuecomment-185113616
@dantleechhttps://github.com/dantleech
https://github.com/dantleech
dantleechhttps://github.com/dantleech
on May 19, 2018https://github.com/phpbench/phpbench/issues/304#issuecomment-390393678
https://github.com/dantleech
dantleechhttps://github.com/dantleech
on May 1, 2021https://github.com/phpbench/phpbench/issues/304#issuecomment-830669841
dantleechhttps://github.com/dantleech
completedhttps://github.com/phpbench/phpbench/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 1, 2021https://github.com/phpbench/phpbench/issues/304#event-4673867903
Ocramiushttps://github.com/Ocramius
on Jul 24, 2021https://github.com/phpbench/phpbench/issues/304#event-5064298128
Rewrote `ServiceManager#has()` tests to avoid mutating the benchmarke…https://github.com/boesing/laminas-servicemanager/commit/d6e7fe4646c2325747f0a3ee0f747e3d81d9f746
d6e7fe4https://github.com/boesing/laminas-servicemanager/commit/d6e7fe4646c2325747f0a3ee0f747e3d81d9f746
Sign up for freehttps://github.com/signup?return_to=https://github.com/phpbench/phpbench/issues/304
Sign in to commenthttps://github.com/login?return_to=https://github.com/phpbench/phpbench/issues/304
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.