Skip to content

BackstopJS image comparison performance

Compare
Choose a tag to compare
@garris garris released this 08 Dec 07:32
· 931 commits to master since this release

During a test, BackstopJS processes image comparisons in parallel. By default, this value is limited to 50. Used this way, BackstopJS can utilize available processor power while keeping RAM usage under control.

This value can be adjusted as needed to increase/decrease the amount of RAM required during a test.

As a (very approximate) rule of thumb, BackstopJS will use 100MB RAM plus approximately 5 MB for each concurrent image comparison.

To adjust this value add an asyncCompareLimit property to the root of your config like so...

"asyncCompareLimit": 100
// Would require 600MB to run tests.