The timings API is a solution for asserting web UI or API performance during functional/integration tests! The simple idea is that you inject some javascript into the headless browser that you use for UI testing (i.e. webdriver) to collect navigation timing which can then be stored in elasticsearch. In subsequent runs of your tests, the new performance data can be compared to historical results (the 'baseline') and asserted like any other assertion that you may perform in your tests. For API tests, you can set start/stop timers and store the delta in elasticsearch and follow the same routine to assert.
Run this API in your local network => install one of the clients on your dev/test machine => add a few lines of code => assert perf against historical baselines & visualize historical data!
This version of the Timings API introduces a few major updates and you should carefully read the following announcements!
If you have used this repo/product before or if you are a current user, you may face a few challenges and/or breaking changes! Make sure you pay close attention when updating to a new version of Elasticsearch!
< 7.x
, the API will work but no data will be written to Elasticsearch.json
format
.js
and .yml|.yaml
formats - that is no longer the case.json
format!For other changes, please see the CHANGELOG
The
--configfile
argument is no longer supported If you are currently using the--configfile
argument to start your timings API server, you have to replace it with aCONFIGFILE
environment variable! For more info and updated startup commands, see here
It is highly recommended that you run this product in a Docker environment using the timings-docker repo. This repo provides a convenient way to run the timings API as well as the currently supported Elastic Stack.
If you do (or have to) run the API stand-alone and/or run your own Elastic stack, the recommended versions are:
again, if you're updating your Elasticsearch data, you can use the upgrade steps outlined here: timings-docker -> UPDATING.md
You can find extended documentation for the timings API here: USAGE.md
The timings API can be run "stand-alone" as a node/express application, with or without Elasticsearch for data storage: