Re:Performance comparison of Functional C++ 11, Java 8, Java...
by defg on Friday June 06, 2014 @05:17AM
(#7856913)
I was curious how a non-functional version would fare, so I wrote one in Nimrod and it's a lot faster than the functional C++: https://gist.github.com/def-/8187448ea7a5c8da8265
[ Parent
| on HN ]
Re:Performance comparison of Functional C++ 11, Java 8, Java...
by defg on Friday June 06, 2014 @12:21PM
(#7858808)
As some people noticed this was broken. Fixed version is not quite as fast, but still faster than functional C++:
Goats Wolves Lions C++11 Nimrod
17 55 6 0.00 0.03
117 155 106 0.17 0.13
217 255 206 0.75 0.62
317 355 306 2.16 1.89
417 455 406 5.28 4.34
517 555 506 10.75 8.42
617 655 606 19.15 14.45
717 755 706 31.58 23.04
817 855 806 46.52 33.69
917 955 906 67.94 48.57
1017 1055 1006 93.75 65.25
2017 2055 2006 731.42 500.95
Re:Performance comparison of Functional C++ 11, Java 8, Java...
by defg on Friday June 06, 2014 @02:54PM
(#7859692)
And a functional version in Nimrod: https://gist.github.com/def-/ccef8bb54170b639c497
Re:Performance comparison of Functional C++ 11, Java 8, Java...
by qznc on Friday June 06, 2014 @06:59AM
(#7857130)
The important word here is "functional" C++. This is not about "fastest" C++. What does your comparison tell us?