Skip to content

Instantly share code, notes, and snippets.

View dmahapatro's full-sized avatar

Dhiraj Mahapatro dmahapatro

View GitHub Profile
@dmahapatro
dmahapatro / AddPrimes.groovy
Last active January 1, 2016 22:29
Performance hit using groovy-stream.
//Project Euler # 10
//http://projecteuler.net/problem=10
@Grab(group='org.gperfutils', module='gbench', version='0.4.2-groovy-2.1')
@Grab( 'com.bloidonia:groovy-stream:0.6.2' )
import groovy.stream.Stream
import groovyx.gbench.Benchmark
def usingStream(){