-
Notifications
You must be signed in to change notification settings - Fork 636
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Introduce lightweight twitter-feed benchmark * Introduce benchmark that does a basic comparison with Jackson mapper * Introduce benchmark that stresses primitives parsing * Introduce more macro benchmarks
- Loading branch information
Showing
15 changed files
with
66,547 additions
and
321 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
25 changes: 0 additions & 25 deletions
25
benchmark/src/jmh/kotlin/kotlinx/benchmarks/SampleBenchmark.kt
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
benchmark/src/jmh/kotlin/kotlinx/benchmarks/json/CitmBenchmark.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,23 @@ | ||
package kotlinx.benchmarks.json | ||
|
||
import kotlinx.benchmarks.model.* | ||
import kotlinx.serialization.json.* | ||
import org.openjdk.jmh.annotations.* | ||
import java.util.concurrent.* | ||
|
||
@Warmup(iterations = 7, time = 1) | ||
@Measurement(iterations = 7, time = 1) | ||
@BenchmarkMode(Mode.Throughput) | ||
@OutputTimeUnit(TimeUnit.SECONDS) | ||
@State(Scope.Benchmark) | ||
@Fork(2) | ||
open class CitmBenchmark { | ||
/* | ||
* For some reason Citm is kind of de-facto standard cross-language benchmark. | ||
* Order of magnitude: 200 ops/sec | ||
*/ | ||
private val citm = CitmBenchmark::class.java.getResource("/citm_catalog.json").readBytes().decodeToString() | ||
|
||
@Benchmark | ||
fun decodeCitm(): CitmCatalog = Json.decodeFromString(CitmCatalog.serializer(), citm) | ||
} |
281 changes: 0 additions & 281 deletions
281
benchmark/src/jmh/kotlin/kotlinx/benchmarks/json/GeneratedBenchmark.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.