This is the Spark portion of a benchmarking test suite comparing a variety of web development platforms. The test utilizes Spark routes, Gson for JSON serialization, Hibernate for ORM and mustache templates rendering. HikariCP is used for connection pooling, using up to 2*cores count. See pool sizing
- Spark application
- Hibernate configuration for local datasource
- Local datasource configuration
- Hibernate utilities
- Database entity
- Local environment with Spark's built in embedded jetty (port=8080, context=/)
- Start application from SparkApplication's main method
http://localhost:8080/db?queries=5
http://localhost:8080/updates?queries=5