This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wrapper { | |
| gradleVersion '2.4' | |
| } | |
| buildscript { | |
| repositories { | |
| jcenter() | |
| } | |
| dependencies { | |
| classpath 'com.moowork.gradle:gradle-node-plugin:0.6' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static List<String> parse(File file) throws Exception{ | |
| return file.readLines() | |
| .collect {it.split('\\b')} | |
| .flatten() | |
| .groupBy {it} | |
| .sort {-it.value.size()} | |
| .take(20)*.key | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ./gradlew benchmarks | |
| :compileJava UP-TO-DATE | |
| :processResources UP-TO-DATE | |
| :classes UP-TO-DATE | |
| :jar UP-TO-DATE | |
| :compilePerfJava | |
| warning: Supported source version 'RELEASE_6' from annotation processor 'org.openjdk.jmh.generators.GenerateMicroBenchmarkProcessor' less than -source '1.7' | |
| /Users/Nikem/Documents/workspace/jpoint/src/perf/java/StockExchangeBenchmark.java:4: error: IOException | |
| public class StockExchangeBenchmark { | |
| ^ |