Re:On Stack Overflow's recent battles with the .NET Garbage ...
by jbooth on Friday October 28, 2011 @12:35PM
(#3168950)
You're comparing the library-supplied date formatter for each language, not the language's speed at processing Strings. And the Java threading code is mostly benchmarking the speed of thread creation - in a real-world implementation you'd be using a thread pool with fewer lines of code.
[ Parent
| on HN ]
Re:On Stack Overflow's recent battles with the .NET Garbage ...
by Roboprog on Friday October 28, 2011 @03:53PM
(#3169820)
Agreed about the thread usage: the code I put together for threads in various languages is as naive as possible. Having a thread pool in proportion to the number of CPUs and pulling tasks from a queue (a la "Nginex") would be much more efficient.
Interesting comment about the date formatter. I might put in something some time to compare the relative time spent in formatting vs the other concatenation. I suppose I'd be grateful if somebody made a fork with versions showing the split of time between those steps.