# OT: Micro benchmarks (Was: How convert an integer to a bit a

**URL:** <https://www.ruby-forum.com/t/ot-micro-benchmarks-was-how-convert-an-integer-to-a-bit-a/49868>\
**Category:** Ruby\
**Created:** [November 23, 2005, 8:52pm UTC](https://www.ruby-forum.com/t/ot-micro-benchmarks-was-how-convert-an-integer-to-a-bit-a/49868 "2005-11-23T20:52:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel.Berger](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ac8455/32.png) [@Daniel.Berger](https://www.ruby-forum.com/u/Daniel.Berger)\
**Post date:** [November 23, 2005, 8:52pm UTC](https://www.ruby-forum.com/t/ot-micro-benchmarks-was-how-convert-an-integer-to-a-bit-a/49868/1 "2005-11-23T20:52:40Z")

</div>

> -----Original Message-----  
> From: Curt H. [[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
> Sent: Wednesday, November 23, 2005 11:28 AM  
> To: ruby-talk ML  
> Subject: Re: How convert an integer to a bit array

> Cool! Thanks for doing the benchmark.
> 
> Curt

My filesystem is littered with micro benchmarks. Is there a website out  
there where folks could copy, paste & run benchmarks for Ruby code  
snippets?

Obviously, such a site would be potentially hazardous, but I suspect the  
hazards can be mitigated by using setrlimit(), limiting overall method  
size, setting a maximum number of iterations, etc.

Thoughts?

Dan

---

<div class="post-metadata">

**Author:** ![Daniel.Berger](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ac8455/32.png) [@Daniel.Berger](https://www.ruby-forum.com/u/Daniel.Berger)\
**Post date:** [November 23, 2005, 8:56pm UTC](https://www.ruby-forum.com/t/ot-micro-benchmarks-was-how-convert-an-integer-to-a-bit-a/49868/2 "2005-11-23T20:56:46Z")

</div>

On 11/23/05, Berger, Daniel [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > 
> 
> Thoughts?  
> I’m not aware of anything that currently exists. But it sounds like a  
> wiki  
> would do the job.

How about creating a RubyForge project (possibly named  
“microbenchmarks”)  
and using the wiki that comes with the project.

Curt
