All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.demo.ManualWarmUpDemo.groovy Maven / Gradle / Ivy

There is a newer version: 0.4.3-groovy-2.4
Show newest version
def bm = new groovyx.gbench.BenchmarkBuilder().run(warmUpTime:3, verbose:true) {
    'StringBuilder' {
        def sb = new StringBuilder()
        sb.append('foo')
        sb.append('bar')
        sb.append('baz')
        sb.toString()
    }
    'StringBuffer' {
        def sb = new StringBuffer()
        sb.append('foo')
        sb.append('bar')
        sb.append('baz')
        sb.toString()
    }
}
bm.prettyPrint()




© 2015 - 2024 Weber Informatics LLC | Privacy Policy