← Back to team overview

sysbench-developers team mailing list archive

Re: [Question #254386]: Writing something else than 0 in memory ?

 

Question #254386 on sysbench changed:
https://answers.launchpad.net/sysbench/+question/254386

    Status: Answered => Open

Erwan Velu is still having a problem:
Ok, make sense.

While reading this part of the code, don't you think we should move the
" LOG_EVENT_START(msg, thread_id);" just after the "    rand =
sb_rnd();" to avoid counting some potential cpu time inside the memory
loop ?

I do agree that's very few but if someday sb_rnd() generates some
slowdow due to lack of entropy or change of code (who knows), that could
induced a lowered perf result while it's not the case.

Getting the LOG_EVENT_START as close as possible to the code sounds
better to my eyes.

Cheers,

-- 
You received this question notification because you are a member of
sysbench-developers, which is an answer contact for sysbench.