GithubHelp home page GithubHelp logo

ericrahm / atsy Goto Github PK

View Code? Open in Web Editor NEW
28.0 1.0 5.0 53 KB

A dumping ground for cross-platform browser memory testing

License: Mozilla Public License 2.0

Python 81.50% HTML 13.06% Shell 5.44%

atsy's Introduction

atsy

A dumping ground for cross-platform browser memory testing.

Example Usage

An example script can be found under example/comp_analysis.py. It uses the TP5 pageset, but the example can be modified to use any set of URLs.

Prereqs

  • nginx (or some other webserver)
  • The latest chromedriver
  • Install atsy: python setup.py install should do the trick.
  • Install/update the browsers you want to test. Note installation locations.
  • Update the setup portion of the example to specify your binary locations and update the path filters if necessary.

On Ubuntu the following would probably do the job:

# Install a local webserver
sudo apt-get install nginx

mkdir atsy-test
cd atsy-test

# Setup a virtualenv to work in
virtualenv venv
source venv/bin/activate

# Setup atsy
git clone https://github.com/EricRahm/atsy.git
cd atsy
python setup.py install
cd ..

# Get the latest chromedriver
wget http://chromedriver.storage.googleapis.com/2.21/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
rm chromedriver_linux64.zip

# Download the tp5 pageset and setup a webroot
mkdir nginx_root
cd nginx_root

wget http://people.mozilla.org/~jmaher/taloszips/zips/tp5n.zip
unzip tp5n.zip
mkdir html/
mv tp5n html/tp5
rm tp5n.zip

mkdir logs

mkdir conf
cp ../atsy/example/comp_analysis_nginx.conf conf/nginx.conf
cd ..

Running

  1. Launch nginx, I use the config from awsy, so something like:
nginx -p nginx_root/ -c conf/nginx.conf
  1. Launch the example, this assumes chromedriver is in the cwd:
PATH=$PATH:. python atsy/example/comp_analysis.py

Note: On OSX 10.10.5 you'll need to run the example under sudo. On OSX 10.10.11 you're going to need to disable SIP most likely.

atsy's People

Contributors

ericrahm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

atsy's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.