Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameterize width? #131

Open
zenspider opened this issue Dec 11, 2023 · 0 comments · May be fixed by #136
Open

Parameterize width? #131

zenspider opened this issue Dec 11, 2023 · 0 comments · May be fixed by #136

Comments

@zenspider
Copy link
Contributor

8687 % g -w 20
lib/benchmark/ips/report.rb
95:              left.ljust(20) + (" - %s in %10.6fs" % [iters, runtime])
97:              left.ljust(20) + (" - %s" % iters)
103:              left.ljust(20) + (" - %10d in %10.6fs" % [@iterations, runtime])
105:              left.ljust(20) + (" - %10d" % @iterations)
110:        # Return header with padding if +@label+ is < length of 20.
113:          @label.to_s.rjust(20)

lib/benchmark/ips/job/stream_report.rb
51:        # Add padding to label's right if label's length < 20,
52:        # Otherwise add a new line and 20 whitespaces.
56:          if label.size > 20
57:            "#{label}\n#{' ' * 20}"
59:            label.rjust(20)

for the love of all that is holy... please pull this up to a config value

@evanphx evanphx linked a pull request Jan 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants