Re: Struct is slow
- From: Sylvain Joyeux <sylvain.joyeux@xxxxxxxxxxxxxxxxx>
- Date: Wed, 17 Oct 2007 15:13:28 +0900
I'm not sure whether you are familiar with Benchmark#bmbm which does aSure. GC does belong to the mix. Now, if GC is enabled you are not able to
rehearsal - personally I rather not switch off GC since in realistic
situations GC time belongs into the mix. But results are rather
similar:
compare anything. Let's assume that GC runs during 'array init', you will
say 'hey, struct init is faster'. Now, if GC runs during 'struct init' the
result may change ...
Keeping GC is meaningful when benchmarking a whole application. In
microbenchmarks like these, it is simply noise.
--
Sylvain Joyeux
.
- Follow-Ups:
- Re: Struct is slow
- From: Joel VanderWerf
- Re: Struct is slow
- References:
- Re: Struct is slow
- From: Robert Klemme
- Re: Struct is slow
- Prev by Date: Re: mathematics and physics
- Next by Date: Re: how can send email message using ruby?
- Previous by thread: Re: Struct is slow
- Next by thread: Re: Struct is slow
- Index(es):
Relevant Pages
|