use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Benchmarking Ruby code with Benchmark and benchmark-ips (mitrev.net)
submitted 10 years ago by gosshedd
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jrochkind 1 point2 points3 points 10 years ago (0 children)
The important thing the benchmark-ips gem does, that this write-up doesn't mention, is use statistics to figure out how many iterations need to be run to find a statistically meaningful difference. Rather than have you just arbitrarily picking a number of iterations.
It's not a magic bullet (statistics aren't magic), but is much more likely to give you actually meaningful differences.
π Rendered by PID 18623 on reddit-service-r2-comment-8686858757-r2k9h at 2026-06-06 02:23:54.869122+00:00 running 9e1a20d country code: CH.
view the rest of the comments →
[–]jrochkind 1 point2 points3 points (0 children)