trautonen f8b507e646 Conform to db rules. 11 years ago
..
src f8b507e646 Conform to db rules. 11 years ago
README.md d662da26c2 Dependency updates, minor tweaks and plain text test. 11 years ago
__init__.py 2d0e89e53b Test for Spark framework. 12 years ago
benchmark_config d662da26c2 Dependency updates, minor tweaks and plain text test. 11 years ago
pom.xml e89d49fa64 Configure local db setup via maven resource filtering. 11 years ago
setup.py e89d49fa64 Configure local db setup via maven resource filtering. 11 years ago
source_code 66e46ee08e codeLineCount Create source_code file for each framework. Modify count_sloc to use gather_frameworks instead of a large list 12 years ago

README.md

Spark Benchmarking Test

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 a custom OSIV pattern created with Spark filters.

Tests

Infrastructure Software Versions

Different test setups

  • Local environment with Spark's built in embedded jetty (port=4567, context=/)
  • Local environment with Tomcat maven plugin (port=8080, context=/spark)
    • Start application with maven command 'mvn clean tomcat7:run'
    • No maven profiles must be enabled
  • Any servlet container with built WAR (port=any, context=/spark)
    • Create war with maven command 'mvn clean package'
    • No maven profiles must be enabled
    • Built war can be copied from /target/spark.war
  • Local datasource or JNDI datasource can be configured with system property 'jndi'
    • -Djndi=true or no property for JNDI datasource
    • -Djndi=false for local datasource

Test URLs

JSON Encoding Test

http://localhost:4567/json

http://localhost:8080/spark/json

Data-Store/Database Mapping Test

http://localhost:4567/db?queries=5

http://localhost:8080/spark/db?queries=5

Plain Text Test

http://localhost:4567/plaintext

http://localhost:8080/spark/plaintext