Test ETP enabled in Tor Browser
Last year I ran some experiments comparing the loading of pages with Enhanced Tracking Protection (ETP) disabled and then with it enabled. The results from these experiments were not statistically significant, but the preliminary results showed that ETP noticeably reduces the best and average case timing, but the variance is still problematic.
On the bright side, this is a good starting point. From an email I sent:
#30939 (moved) is a consequence of this work.
I described in another email how the tests were run:
I pushed a branch page_load_timing on https://github.com/sysrqb/tor-browser-selenium/ It requires the same setup configuration as described in the README. I installed the dependencies with --user. - pip install --user tbselenium - pip install --user -r tor-browser-selenium/requirements-dev.txt - Downloaded geckodriver from the Github repo I didn't use xvfb (simply for convenience), so I ran the page-load test directly with: $ NO_XVFB=1 TBB_PATH=~/tor-browser_en-US/ py.test tor-browser-selenium/tbselenium/test/test_pageload.py Change TBB_PATH and path/to/test_pageload.py, as needed. Don't be surprised if the browser doesn't launch immediately (it take 5-10 seconds on slower computers). And, in case you're not aware, tor-browser-selenium currently only works on Linux (the README says Debian/Ubuntu and I successfully used it on Fedora). You'll need a system tor installed, too (or at least an instance of tor running already listening on port 9050). I'd like to add support for letting Tor Browser bootstrap and control its own tor in the future.
See #32976 (moved) for a better way we get geckodriver.