Back to Frameworkbenchmarks

Vert.x-Web Kotlin Dsljson Benchmarking Test

frameworks/Kotlin/vertx-web-kotlin-dsljson/README.md

3968 B
Original Source

Vert.x-Web Kotlin Dsljson Benchmarking Test

Vert.x-Web in Kotlin with Dsljson serialization

The code is written as a realistic server implementation:

  • Code is organized logically into packages
  • Repositories are created for each database entity to handler all operations pertaining to a specific table
  • Handlers map to the logical entities which they serve
  • JSON serialization is provided via Dsljson
    • Doing this effectively required a custom Vert.x Buffer implementation that also extended OutputStream in order to rely on the efficient Vert.x heap memory pool instead of building a novel implementation.

Test URLs

JSON

http://localhost:8080/json

PLAINTEXT

http://localhost:8080/plaintext

DB

http://localhost:8080/db

QUERY

http://localhost:8080/query?queries=

UPDATE

http://localhost:8080/update?queries=

Testing:

shell
../../../tfb \
    --mode benchmark \
    --test vertx-web-kotlin-dsljson \
    --type json