Skip to content

Internal benchmarks for measuring Agrest performance between releases

Notifications You must be signed in to change notification settings

agrestio/agrest-benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

agrest-benchmark

Used to find bottlenecks in Agrest code, as well as for relative performance testing between the releases.

Dataset

This benchmark is using the Metropolitan Museum of Art database available from here.

Running the Test

Prerequisites:

  • Install Locust
  • Start the DB with the Met dataset
  • Create a YAML file with DB connection info outside the version controlled folder. E.g. ../mysql.yml:
jdbc:
  db1:
    jdbcUrl: "jdbc:mysql://127.0.0.1:8306/met?connectTimeout=0&autoReconnect=true&useSSL=false"
    username: root
    password: root
    minimumIdle: 1
    maximumPoolSize: 20

Build and run the benchmark:

mvn clean package

# use "-v" to increase log verbosity level
java -jar target/agrest-benchmark-*.jar -s -c ../mysql.yml

Start Locust:

locust -f locust/get.py

Open Locust console in the browser and start the test via UI.

About

Internal benchmarks for measuring Agrest performance between releases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published