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
@Warmup(iterations = 7, time = 1) | |
@Measurement(iterations = 5, time = 1) | |
@BenchmarkMode(Mode.AverageTime) | |
@OutputTimeUnit(TimeUnit.MILLISECONDS) | |
@State(Scope.Benchmark) | |
@Fork(2) | |
open class PushVsPullBenchmark { | |
private val source = flow { | |
repeat(100_000) { emit(it) } |
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
e: java.lang.NullPointerException | |
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateExplicitArgs(IrToBitcode.kt:2002) | |
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateCall(IrToBitcode.kt:1838) | |
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateExpression(IrToBitcode.kt:851) | |
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateExplicitArgs(IrToBitcode.kt:1996) | |
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateCall(IrToBitcode.kt:1838) | |
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateExpression(IrToBitcode.kt:848) | |
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.generateStatement(IrToBitcode.kt:884) | |
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitFunction(IrToBitcode.kt:732) | |
at org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoid$DefaultImpls.visitSimpleFunction(IrElementVisit |
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
qwwdfsad@qwwdfsad bin % ./native-image -cp /Users/qwwdfsad/Desktop/kotlin-native-macos-1.3.70/konan/lib/kotlin-native.jar org.jetbrains.kotlin.cli.utilities.MainKt | |
Build on Server(pid: 20577, port: 61514) | |
[org.jetbrains.kotlin.cli.utilities.mainkt:20577] classlist: 10,109.01 ms, 1.69 GB | |
[org.jetbrains.kotlin.cli.utilities.mainkt:20577] (cap): 1,580.42 ms, 1.69 GB | |
[org.jetbrains.kotlin.cli.utilities.mainkt:20577] setup: 2,168.81 ms, 1.69 GB | |
[org.jetbrains.kotlin.cli.utilities.mainkt:20577] analysis: 202.72 ms, 1.69 GB | |
3 fatal errors detected: | |
Fatal error:com.oracle.graal.pointsto.util.AnalysisError$ParsingError: Error encountered while parsing org.jetbrains.kotlin.native.interop.indexer.UtilsKt.parseTranslationUnit(kotlinx.cinterop.CPointer, java.io.File, java.util.List, int) | |
Parsing context: | |
parsing org.jetbrains.kotlin.native.interop.indexer.UtilsKt.parse(Utils.kt:117) |
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
package kotlinx.coroutines.benchmarks | |
/* | |
* Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. | |
*/ | |
import kotlinx.coroutines.* | |
import kotlinx.coroutines.channels.* | |
import org.jetbrains.gradle.benchmarks.* | |
import kotlin.js.* | |
import kotlin.random.* |
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
# | |
# A fatal error has been detected by the Java Runtime Environment: | |
# | |
# SIGILL (0x4) at pc=0x000000010fea34e1, pid=10398, tid=0x0000000000002603 | |
# | |
# JRE version: OpenJDK Runtime Environment (8.0) (build 1.8.0-internal-jetbrains_2018_06_20_01_52-b00) | |
# Java VM: OpenJDK 64-Bit Server VM (25.71-b00 mixed mode bsd-amd64 compressed oops) | |
# Problematic frame: | |
# V [libjvm.dylib+0x4a34e1] PerfDataManager::destroy()+0xab | |
# |
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
package kotlinx.coroutines.experimental.channels | |
import com.devexperts.dxlab.lincheck.* | |
import com.devexperts.dxlab.lincheck.annotations.* | |
import com.devexperts.dxlab.lincheck.paramgen.* | |
import com.devexperts.dxlab.lincheck.stress.* | |
import kotlinx.coroutines.experimental.* | |
import org.junit.* | |
@Param(name = "value", gen = IntGen::class, conf = "1:3") |
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
public class AllocateBenchmark { | |
@Benchmark | |
public byte[] allocateArray() { | |
return new byte[1]; | |
} | |
} |
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
package org.qwwdfsad.benchmarks | |
import org.openjdk.jmh.annotations.* | |
import java.util.concurrent.ThreadLocalRandom | |
import java.util.concurrent.TimeUnit | |
@Fork(value = 2) //jvmArgsAppend = arrayOf("-XX:TieredStopAtLevel=1")) | |
@Measurement(iterations = 10) | |
@Warmup(iterations = 10) | |
@State(Scope.Benchmark) |
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
package org.openjdk.jmh.samples; | |
import org.openjdk.jmh.annotations.*; | |
import org.openjdk.jmh.runner.Runner; | |
import org.openjdk.jmh.profile.DTraceAsmProfiler; | |
import org.openjdk.jmh.runner.RunnerException; | |
import org.openjdk.jmh.runner.options.Options; | |
import org.openjdk.jmh.runner.options.OptionsBuilder; | |
import java.nio.ByteBuffer; |
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
Index: jmh/jmh-core/src/main/java/org/openjdk/jmh/util/Utils.java | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- jmh/jmh-core/src/main/java/org/openjdk/jmh/util/Utils.java (revision 1434:1ddf31f810a3100b9433c3fedf24615e85b1d1a7) | |
+++ jmh/jmh-core/src/main/java/org/openjdk/jmh/util/Utils.java (revision 1434+:1ddf31f810a3+) | |
@@ -446,6 +446,31 @@ | |
return messages; | |
} |
NewerOlder