On Tuesday 06 April 2010 16:19:21, Hans Dockter wrote:
> On Tue, Apr 6, 2010 at 3:49 PM, Geronimo M. H. <[email protected]> wrote:
> > Well - not every script makes sense to convert to gradle, cause the
> > startup-time of gradle is quite notable. Just to give you an idea of the
> > time
> > differences: when I call the perlscript to assemble all my webpages
> > (currently 34 pages) perl takes 0.3s where as the same job with gradle
> > takes
> > 9s
>
> That's way too long. I could offer you to have a look at the script to
> check for potential improvements. This difference can't be just Groovy
> startup time (which will continue to improve).
Thank you for that offer!
My task definition is this:
task website << {
binDir = new File(rootProject.projectDir, '../common/bin')
ant.exec(outputproperty: 'wsOut',
errorproperty: 'wsErr',
failonerror: 'true',
dir: 'web',
executable: binDir.absolutePath + '/genSite.pl') {
arg(value: version)
}
logger.info("result of gen-site:\n${ant.project.properties.wsOut}")
logger.quiet("gen-site stats: ${ant.project.properties.wsErr}")
}
and here the measured execution time (by: time gradle website):
Total time: 10.096 secs
real 0m10.504s
user 0m17.853s
sys 0m0.568s
and the execution time of the script (by: time genSite.pl)
real 0m0.057s
user 0m0.052s
sys 0m0.004s
kind regards
Geronimo
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email