View ComponentAttributesRulesIntegrationTest.groovy
/*
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
View VariantAttributesRulesIntegrationTest.groovy
/*
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
View voxel.kts
/**
* An approximate port of https://github.com/s-macke/VoxelSpace
* using Kotlin and JavaFX.
*
* Run with : kotlinc -script voxel.kts
*
* Click on the panel to "fly".
*
* Twitter: @CedricChampeau
*/
View voxel.groovy
/**
* An approximate port of https://github.com/s-macke/VoxelSpace
* using static Groovy and JavaFX.
*
* Click on the panel to "fly".
*
* Run with : groovy voxel.groovy
*
* Twitter: @CedricChampeau
*/
View gist:02f5b93ec4daabadaca2d5148ad7188e
/opt/jdk9  ll ../jdk9-b176/lib/security/
total 256K
-rw-r--r-- 1 cchampeau cchampeau 4.0K Jun 29 03:47 blacklist
-rw-r--r-- 1 cchampeau cchampeau 1.3K Jun 29 03:47 blacklisted.certs
-rw-r--r-- 1 cchampeau cchampeau 111K Jun 29 03:47 cacerts
-rw-r--r-- 1 cchampeau cchampeau 8.5K Jun 29 03:47 default.policy
-rw-r--r-- 1 cchampeau cchampeau 122K Jun 29 03:47 public_suffix_list.dat
-rw-r--r-- 1 cchampeau cchampeau 0 Jun 29 03:47 trusted.libraries
/opt/jdk9  ll lib/security/
total 16K
View bench-string-concat.groovy
@Grab(group='org.gperfutils', module='gbench', version='0.4.3-groovy-2.4')
String a = 'The quick brown fox'
String b = 'jumps over the lazy dog'
int x = 1
double y = 2
benchmark {
'simple concat' {
String concat = a + ' ' + b + ' ' + x + ' ' + y
View README.md

Gradle vs Maven performance reproduction instructions

Install the Gradle Profiler

This page explains how to reproduce the Gradle vs Maven performance numbers yourself. For that, you need to install the Gradle profiler, a tool which will automate benchmarking by running several builds in a row, with the appropriate options (it also runs Maven builds).

Generate the test projects

Our performance comparison uses 4 test projects:

View gist:cdb961434347056ba66207acfdb4e6c3
Structural Search Template
$ReturnType$ $Method$($ParameterType$ $Parameter$);
Found Matches in JDK (206 usages found)
Library (206 usages found)
Unclassified match (206 usages found)
/home/cchampeau/.gradle/caches/modules-2/files-2.1/net.java.dev.jna/platform/3.4.0/e3f70017be8100d3d6923f50b3d2ee17714e9c13/platform-3.4.0.jar (2 usages found)
com.sun.jna.platform.win32 (2 usages found)
W32Errors (2 usages found)
FAILED(int) (1 usage found)
19public static final boolean FAILED(int hr) {
View quicksort.groovy
import groovy.transform.CompileStatic
@CompileStatic
void swap(int[] a, int i, int j) {
int temp = a[i]
a[i] = a[j]
a[j] = temp
}
@CompileStatic
View Support_for_String_&toUpperCase_method_closures.patch
Index: src/main/org/codehaus/groovy/runtime/MethodClosure.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/main/org/codehaus/groovy/runtime/MethodClosure.java (revision Local version)
+++ src/main/org/codehaus/groovy/runtime/MethodClosure.java (revision Shelved version)
@@ -19,8 +19,8 @@
package org.codehaus.groovy.runtime;