in reply to Re^10: 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
I tried to resist but eventually I lost my resolve and responded ;-)
What exactly is it benchmarking?
My answer would be matrix multiplication. Ok, his test matrices are too small (which makes it a worst case benchmark). But in the proceedings of the perl workshop there is a diagram where matrix multiplications/s (not simply multiplications/s) are compared to the matrix size. The diagram shows that he tested variable matrix sizes, up to 1000x1000 matrices, and also used a different benchmark metric. PS: I found the diagram on the same server where the test script is, http://data.plan9.de/mat.png
Naturally the coro-version is slower than pure perl. But the interesting thing is how much slower. Threads allow different programming styles or paradigms, for example producer/consumer relationships. How much is the penalty to do it this way instead of the simple iterative way?
...I'll attempt to produce a fair comparison...
I'm anxious to hear those results. I even might show Marc Lehmann the results at the next perl workshop, if he is there.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^12: If I am tied to a db and I join a thread, program chrashes
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 |