Re: Implementing let-over-lambda chapter 7 badger network for sorting

2010-08-08 Thread Christian Schuhegger
Hi all, just out of interest I've done the tests with double arrays in Java. The results for the Arrays.sort are 1.060us. Now it's becoming interesting. The results for the Batcher sort are: 803.784ns. Already an improvement! Finally I've tried once again to do the Batcher double sort in the same

Re: Implementing let-over-lambda chapter 7 badger network for sorting

2010-08-08 Thread Christian Schuhegger
I understand the differenece between Object vs doubles and in fact I do not want to point out that C is faster than Java (which it is not) but I want to see the 10:1 speed improvement between my Batcher sort implementation and the standard sort. The ellipticgroup Benchmark class is very soffistica

Re: Implementing let-over-lambda chapter 7 badger network for sorting

2010-08-08 Thread Nicolas Oury
Object vs doubles is a huge difference. In Java, you pay for compilation of a lot of small methods. Has compilation of every of your method time to happen? What part of the computation does it take? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To p

Re: Implementing let-over-lambda chapter 7 badger network for sorting

2010-08-08 Thread Christian Schuhegger
Hello, after my first attempts with clojure I needed to evaluate the clojure results against pure Java results. First to make my report complete here are my OS and JVM details. I run my tests on an Ubuntu 64bit 10.04 on Intel i7 3GHz hardware with a custom compiled kernel using the BFS scheduler.

Implementing let-over-lambda chapter 7 badger network for sorting

2010-08-01 Thread Christian Schuhegger
Hello, I am currently trying to implement part of chapter 7 in let-over- lambda in Clojure. I am used to writing ANSI Common Lisp code and relatively new to Clojure. In CL it is possible to get a performance gain over the standard lisp sort function by using compiled sort networks. I am trying to