On May 28, 2008, at 5:19 AM, Ittay Dror wrote:


Hi,

I've noticed that Gradle is much slower compared to ant. A build that copies
only one file takes ~6 seconds.

Gradle is slower than Ant, but six seconds is a lot.

On my machine (Mac OS X and 1.5 year old Core Duo 2.33 GHz) such a simple build would take one second to execute.

If you go to GRADLE_HOME/samples/tutorial and execute:

gradle -bantChecksumfile checksum

How long does this take on your machine?


Are there any thoughts of focusing on the aspect of performance? What about
gradle compiling the gradlefile into a .class file and using it in
subsequent builds (if not changed of course)?

In general we want Gradle to be as fast as possible. Some aspects are it in our hand. For example the groovy startup time is something like 0.3 seconds on my machine, compared to 0.1 seconds of Java. It looks like there are possibilities to improve this but I don't know what priority this has within the Groovy team. The other aspect not in our hands is the runtime performance of Groovy. This is a main focus of the Groovy guys right now and with 1.6 this will already improve significantly with still a lot of potential for improvement in the future. The third aspect is compile time speed. This will also be improved with 1.6. But of course we could use caching and timestamps to avoid this step altogether. Yet for a simple build script, I would think the compile time of the gradlefile is insignificant. The fourth aspect is the Gradle processing. Again I don't think this is significant. Anyway, we need to do some proper profiling of gradle builds to get a solid understanding here.

But six seconds for a simple build I consider as not acceptable. I'm curios why it takes so long on your machine.

- Hans


Thank you,
Ittay
--
View this message in context: http://www.nabble.com/performance- tp17504383p17504383.html
Sent from the gradle-user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



--
Hans Dockter
Gradle Project lead
http://www.gradle.org





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to