From: "M. Edward (Ed) Borasky" Date: 2006-10-27T08:47:35+09:00 Subject: Re: simple math question Rick DeNatale wrote: > Thanks guys, I figured that it was something like that. I looked at > the source code for benchmark and it's just getting Process.times > before and after the block. > > That said, I wonder what these presumably purely computational blocks > are doing in the kernel at all. In a way that's why I wasn't sure, in > the context of ruby benchmarking I was sort of hoping that it was > differentiating between library C code and ruby code, but it really > isn't. > > I guess that the system time must be spent in something like process > switching overhead, yes? Well ... maybe. What OS are you running? If it's any flavor of Linux, I can point you at some higher-resolution tools. And remind me ... what was the code supposed to be doing?