René's URL Explorer Experiment


Title: Numeric table columns in report should be aligned right · Issue #975 · phpbench/phpbench · GitHub

Open Graph Title: Numeric table columns in report should be aligned right · Issue #975 · phpbench/phpbench

X Title: Numeric table columns in report should be aligned right · Issue #975 · phpbench/phpbench

Description: In a cli report table, to properly compare numbers, columns with numbers should: be aligned right (\STR_PAD_LEFT). use the same measuring unit (e.g. not ms in one record, but µs in another record). ideally, a unit should be used where al...

Open Graph Description: In a cli report table, to properly compare numbers, columns with numbers should: be aligned right (\STR_PAD_LEFT). use the same measuring unit (e.g. not ms in one record, but µs in another record)....

X Description: In a cli report table, to properly compare numbers, columns with numbers should: be aligned right (\STR_PAD_LEFT). use the same measuring unit (e.g. not ms in one record, but µs in another record)....

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Numeric table columns in report should be aligned right","articleBody":"In a cli report table, to properly compare numbers, columns with numbers should:\r\n- be aligned right (`\\STR_PAD_LEFT`).\r\n- use the same measuring unit (e.g. not `ms` in one record, but `µs` in another record).\r\n- ideally, a unit should be used where all values are > 1, so that big numbers visually stick out with additional digits to the left.\r\n  (for these last points I currently use ` --mode=throughput --time-unit=s` as cli parameters)\r\n\r\nFor the first point, I found that the following addition in `TableRenderer::render()` has the desired effect for the main table:\r\n\r\n```php\r\n        $style = (new TableStyle())->setPadType(\\STR_PAD_LEFT);\r\n        $nColumns = \\count($object->columnNames());\r\n        for ($iCol = 2; $iCol \u003c $nColumns; ++$iCol) {\r\n            $consoleTable->setColumnStyle($iCol, $style);\r\n        }\r\n```\r\n\r\nHowever, this is obviously the wrong place to do this.\r\nI am hard-coding the rule that every column except the first two should be aligned right, which is true for the final overview table but not universally for every table.\r\n\r\nWhat the code example shows is that the symfony console table component _can_ align numbers right.","author":{"url":"https://github.com/donquixote","@type":"Person","name":"donquixote"},"datePublished":"2022-01-02T03:59:06Z","url":"https://github.com/phpbench/phpbench/issues/975"}

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:fc8ecaa3-6b67-cc92-bae0-1dbcd842c3f4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCD2A:D9868:11934F9:18B2E57:6B04515A
html-safe-nonce687dfaeb7ca52a98d3a5d691279da8149404bb9624bb152241bf190f65729e54
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDJBOkQ5ODY4OjExOTM0Rjk6MThCMkU1Nzo2QjA0NTE1QSIsInZpc2l0b3JfaWQiOiI5MDc0OTA4NDc1MzYwMDM5MjU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9f41482ed3c7bcda1c026ba8bf712d4b54205a22a09fa965778107462985096b
hovercard-subject-tagissue:1091945458
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/975/issue_layout
twitter:imagehttps://opengraph.githubassets.com/86bc021a67f0a5db662b3978671ac4fbe89960a4c285d0da15b8e1ca3d6d31fd/phpbench/phpbench/issues/975
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/86bc021a67f0a5db662b3978671ac4fbe89960a4c285d0da15b8e1ca3d6d31fd/phpbench/phpbench/issues/975
og:image:altIn a cli report table, to properly compare numbers, columns with numbers should: be aligned right (\STR_PAD_LEFT). use the same measuring unit (e.g. not ms in one record, but µs in another record)....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedonquixote
hostnamegithub.com
expected-hostnamegithub.com
None002aa6b95ffa730b0aec436a5c383f536ad677284e60056037fb120afe37b730
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
release059f24c781e3a0d7df3f27a97da0e93fab06ae39
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/phpbench/phpbench/issues/975#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpbench%2Fphpbench%2Fissues%2F975
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%2F975
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/975
Reloadhttps://github.com/phpbench/phpbench/issues/975
Reloadhttps://github.com/phpbench/phpbench/issues/975
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/975
New issuehttps://github.com/login?return_to=https://github.com/phpbench/phpbench/issues/975
Numeric table columns in report should be aligned righthttps://github.com/phpbench/phpbench/issues/975#top
https://github.com/donquixote
donquixotehttps://github.com/donquixote
on Jan 2, 2022https://github.com/phpbench/phpbench/issues/975#issue-1091945458
https://github.com/donquixote
donquixotehttps://github.com/donquixote
on Jan 2, 2022https://github.com/phpbench/phpbench/issues/975#issuecomment-1003660303
https://symfony.com/doc/current/components/console/helpers/table.htmlhttps://symfony.com/doc/current/components/console/helpers/table.html
https://github.com/donquixote
donquixotehttps://github.com/donquixote
on Jan 2, 2022https://github.com/phpbench/phpbench/issues/975#issuecomment-1003661386
https://github.com/dantleech
dantleechhttps://github.com/dantleech
on Jan 2, 2022https://github.com/phpbench/phpbench/issues/975#issuecomment-1003695683
https://phpbench.readthedocs.io/en/latest/configuration.html#runner-time-unithttps://phpbench.readthedocs.io/en/latest/configuration.html#runner-time-unit
phpbench/lib/Report/Console/Renderer/TableRenderer.phphttps://github.com/phpbench/phpbench/blob/7c26456ee32cbe57cd4d282d1002ddb426f61cdc/lib/Report/Console/Renderer/TableRenderer.php#L41
7c26456https://github.com/phpbench/phpbench/commit/7c26456ee32cbe57cd4d282d1002ddb426f61cdc
Sign up for freehttps://github.com/signup?return_to=https://github.com/phpbench/phpbench/issues/975
Sign in to commenthttps://github.com/login?return_to=https://github.com/phpbench/phpbench/issues/975
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.