-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from JetBrains/master
sync with upstream
- Loading branch information
Showing
7,878 changed files
with
171,566 additions
and
91,196 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
191 | ||
192 | ||
183 | ||
182_183 | ||
as33_182_183 | ||
as34_183 | ||
as35 | ||
as36_192 | ||
193 | ||
191 | ||
183_191 | ||
as34_183_191 | ||
as35_191 | ||
as36 |
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
import kotlinx.benchmark.gradle.benchmark | ||
|
||
val benchmarks_version = "0.2.0-dev-4" | ||
buildscript { | ||
val benchmarks_version = "0.2.0-dev-4" | ||
|
||
repositories { | ||
val cacheRedirectorEnabled = findProperty("cacheRedirectorEnabled")?.toString()?.toBoolean() == true | ||
if (cacheRedirectorEnabled) { | ||
maven("https://cache-redirector.jetbrains.com/dl.bintray.com/kotlin/kotlinx") | ||
maven("https://cache-redirector.jetbrains.com/dl.bintray.com/kotlin/kotlin-dev") | ||
} else { | ||
maven("https://dl.bintray.com/kotlin/kotlinx") | ||
maven("https://dl.bintray.com/kotlin/kotlin-dev") | ||
} | ||
} | ||
dependencies { | ||
classpath("org.jetbrains.kotlinx:kotlinx.benchmark.gradle:$benchmarks_version") | ||
} | ||
} | ||
|
||
apply(plugin = "kotlinx.benchmark") | ||
|
||
plugins { | ||
java | ||
kotlin("jvm") | ||
} | ||
|
||
repositories { | ||
val cacheRedirectorEnabled = findProperty("cacheRedirectorEnabled")?.toString()?.toBoolean() == true | ||
if (cacheRedirectorEnabled) { | ||
maven("https://cache-redirector.jetbrains.com/dl.bintray.com/kotlin/kotlinx") | ||
maven("https://cache-redirector.jetbrains.com/dl.bintray.com/kotlin/kotlin-dev") | ||
} else { | ||
maven("https://dl.bintray.com/kotlin/kotlinx") | ||
maven("https://dl.bintray.com/kotlin/kotlin-dev") | ||
} | ||
} | ||
|
||
dependencies { | ||
compile(kotlinStdlib()) | ||
compile(project(":compiler:frontend")) | ||
compile(project(":compiler:cli")) | ||
compile(intellijCoreDep()) { includeJars("intellij-core") } | ||
compile(jpsStandalone()) { includeJars("jps-model") } | ||
Platform[192].orHigher { | ||
compile(intellijPluginDep("java")) | ||
} | ||
compile(intellijDep()) { includeIntellijCoreJarDependencies(project) } | ||
compile("org.jetbrains.kotlinx:kotlinx.benchmark.runtime-jvm:$benchmarks_version") | ||
} | ||
|
||
sourceSets { | ||
"main" { projectDefault() } | ||
} | ||
|
||
benchmark { | ||
configurations { | ||
named("main") { | ||
warmups = 10 | ||
iterations = 10 | ||
iterationTime = 1 | ||
iterationTimeUnit = "sec" | ||
param("size", 1000) | ||
} | ||
|
||
register("fir") { | ||
warmups = 10 | ||
iterations = 10 | ||
iterationTime = 1 | ||
iterationTimeUnit = "sec" | ||
param("isIR", true) | ||
param("size", 1000) | ||
|
||
include("CommonCallsBenchmark") | ||
//include("InferenceBaselineCallsBenchmark") | ||
} | ||
} | ||
targets { | ||
register("main") | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
benchmarks/src/org/jetbrains/kotlin/benchmarks/AbstractInferenceBenchmark.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors. | ||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. | ||
*/ | ||
|
||
package org.jetbrains.kotlin.benchmarks | ||
|
||
import org.openjdk.jmh.annotations.Param | ||
import org.openjdk.jmh.annotations.Scope | ||
import org.openjdk.jmh.annotations.State | ||
|
||
@State(Scope.Benchmark) | ||
abstract class AbstractInferenceBenchmark : AbstractSimpleFileBenchmark() { | ||
@Param("true", "false") | ||
private var useNI: Boolean = false | ||
|
||
override val useNewInference: Boolean | ||
get() = useNI | ||
} |
Oops, something went wrong.