Skip to content

Conversation

paulovap
Copy link
Contributor

  • Fix benchmark run after change in flatbuffers-java deps
    Commit 6e214c3 fixes Kotlin build,
    but makes the kotlin-benchmark plugin misses the java classes at
    runtime, causing NotClassFoundError. The alternative to solve the issue
    is to read java's pom.xml to get the latest java version and use it
    as dependency. With that we avoid compilation errors on a new version and
    keep benchmark plugin happy.
  • Remove redundant assign() method (use init() instead)
  • Small optimizations and benchmark on deserialization

paulovap added 3 commits May 26, 2023 23:16
Commit 6e214c3 fixes Kotlin build,
but makes the kotlin-benchmark plugin misses the java classes at
runtime, causing NotClassFoundError. The alternative to solve the issue
is to read java's pom.xml to get the latest java version and use it
as dependency. With that we avoid compilation errors on a new version and
keep benchmark plugin happy.
@github-actions github-actions bot added c++ codegen Involving generating code from schema kotlin labels May 29, 2023
@paulovap
Copy link
Contributor Author

jvm summary:
Benchmark                                          Mode  Cnt         Score         Error  Units
FlatbufferBenchmark.monstersDeserializationJava    avgt    5  60202904,433 ± 2571267,473  ns/op
FlatbufferBenchmark.monstersDeserializationKotlin  avgt    5  63491321,720 ±  582610,015  ns/op
FlatbufferBenchmark.monstersSerializationJava      avgt    5  43302673,950 ±  195710,100  ns/op
FlatbufferBenchmark.monstersSerializationKotlin    avgt    5  46153101,229 ±   87102,836  ns/op

This is the latest from benchmark, for some reason a couple of commits were missing for #7969 although it was pushed 🤷

@paulovap paulovap requested a review from dbaileychess May 29, 2023 05:23
@dbaileychess dbaileychess enabled auto-merge (squash) May 31, 2023 18:02
@dbaileychess dbaileychess merged commit 85088a1 into google:master May 31, 2023
jochenparm pushed a commit to jochenparm/flatbuffers that referenced this pull request Oct 29, 2024
…oogle#7982)

* [Kotlin] Small optimizations and benchmark on deserialization

* [Kotlin] Remove redudant assign() method (use init() instead)

* [Kotlin] Fix benchmark run after change in flatbuffers-java deps

Commit 6e214c3 fixes Kotlin build,
but makes the kotlin-benchmark plugin misses the java classes at
runtime, causing NotClassFoundError. The alternative to solve the issue
is to read java's pom.xml to get the latest java version and use it
as dependency. With that we avoid compilation errors on a new version and
keep benchmark plugin happy.
jochenparm pushed a commit to jochenparm/flatbuffers that referenced this pull request Oct 29, 2024
…oogle#7982)

* [Kotlin] Small optimizations and benchmark on deserialization

* [Kotlin] Remove redudant assign() method (use init() instead)

* [Kotlin] Fix benchmark run after change in flatbuffers-java deps

Commit 6e214c3 fixes Kotlin build,
but makes the kotlin-benchmark plugin misses the java classes at
runtime, causing NotClassFoundError. The alternative to solve the issue
is to read java's pom.xml to get the latest java version and use it
as dependency. With that we avoid compilation errors on a new version and
keep benchmark plugin happy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ codegen Involving generating code from schema kotlin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants