alexherbo2 has quit [Remote host closed the connection]
quazimodo has quit [Ping timeout: 248 seconds]
ur5us has quit [Ping timeout: 255 seconds]
Sankalp has quit [Read error: Connection reset by peer]
Sankalp has joined #crystal-lang
jhass has quit [Ping timeout: 252 seconds]
jhass has joined #crystal-lang
jmdaemon has quit [Ping timeout: 246 seconds]
_ht has joined #crystal-lang
<frojnd>
Hi there.
<frojnd>
https://carc.in/#/r/ekox I'm trying to benchmark simple usage of fibers... what I don't understand is why when using benchmark loop is executed multiple times? Without benchmark I get puts messages from 0-990 only once. But with benchmark multiple loops?
<frojnd>
Should I be using other approach to measure execution times?
_ht has quit [Ping timeout: 260 seconds]
_ht has joined #crystal-lang
<brycek>
frojnd: (on Caribbean internet so the code’s not loading) is it doing a warmup run or something like that?
<riza>
frojnd: for this type of benchmarking you probably want to use something other than ips, or have a stronger architecture around standing up your fibers and channels
<riza>
IPS is really designed to hammer an algorithm with a few thousand (or more) iterations to measure both warm up time and throughput at full-warm state