This is an experiment. Don't expect production quality code, it currently expects a Unix-like operating system and default application paths. The point is quickly comparing performance of the master
(classic) and emscripten
branches of the adblockpluscore repository.
- Node.js 7.0 or higher
- Python 2.7
- Firefox 40 or higher
- marionette_driver Python module
- jinja2 Python module
Check out master
and emscripten
branches of the adblockpluscore repository in two different directories, make sure to run compile
for the latter (additional requirements of that branch apply). Adjust CLASSIC_LIB
and EMSCRIPTEN_LIB
paths at the top of run_test
script if necessary. Then execute run_test
script. The script will currently time processing of EasyList filters, ten times for each combination of Node.js vs. Firefox and master
branch vs. emscripten
branch. It will then print the median values for execution time and memory usage.