in reply to Re^8: If I am tied to a db and I join a thread, program chrashes
in thread If I am tied to a db and I join a thread, program chrashes
Ah, I didn't see that with the count not subtracting 64. So another bug. Checking time only every 64th round is legitimate though as benchmarks should exclude any overhead of the measurements. As the ithreads version has no disadvantage from that and the Coro measurements are more exact, this is not weighting the die
I don't know what the copying is about. It generally makes sense to unshare data...
Sorry, my english has bugs as well. I think you misunderstood what I was saying here. I hope the sentence is more understandable now with the added word "generally". That his use of it in this benchmark is massively weighting the die is without question
As I was saying in the last post (maybe not clear enough), this script can only work as a Coro benchmark. I'm not arguing that the ithreads side of that code has any merit (I didn't even look at it when I was inspecting the code). But apart from the bug with the time measurement the Coro side of the benchmark seems to be a valid benchmark. And on that side the design decisions of the writer make sense (to me at least). And I suspect that Marc Lehmann first had the (sensible) coro version and then added an ithread version without taking into account that a direct translation to ithreads makes no sense. Whether he did that on purpose, who knows? It is at least incredibly sloppy or stupid if it wasn't on purpose. That he put the benchmark on the net might indicate the former
...means constantly reallocating and copying the underlying shared array...
I thought with "cleaning up the queues" you meant processing the rest of the queue after the last time measurement was done. Now your point makes more sense
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: If I am tied to a db and I join a thread, program chrashes
by BrowserUk (Patriarch) on Jun 11, 2009 at 14:29 UTC | |
by jethro (Monsignor) on Jun 12, 2009 at 02:12 UTC | |
by Anonymous Monk on Jul 04, 2009 at 16:20 UTC | |
by BrowserUk (Patriarch) on Jul 04, 2009 at 17:26 UTC | |
by jethro (Monsignor) on Jul 05, 2009 at 13:42 UTC |