Skip to main content

Python module to provide performance analysis tools and storage of the metrics for a further comparison

Project description

pwperformance is a Scipion plugin with tests to measure performance and send benchmarks to a Codespeed server

Plugin installation

git clone https://github.com/scipion-em/scipion-em-pwperformance.git
scipion3 installp -p /path/to/scipion-em-pwperformance --devel

Environment variables

Define the following environment vars:

CODESPEED_URL = Codespeed server URL to send benchmarks to. Defaults to "http://localhost:8000"
CODESPEED_ENV = Environment name. Environment describes your testing PC configuration. Defaults to "unknown"
CODESPEED_PROJECT = This should be the plugin you want to test. Defaults to "pyworkflow"
CODESPEED_BRANCH = Git branch of your project. Defaults to "devel"
CODESPEED_COMMIT = Git commit id of your project. Defaults to "1"

Codespeed server installation

  1. conda create -y -n codespeed python=3.6

  2. conda activate codespeed

  3. pip3 install pypandoc==1.7.5 setuptools==57.5.0 gunicorn

  4. git clone https://github.com/tobami/codespeed

  5. cd codespeed

  6. pip3 install -e .

  7. pip3 install “django<2.2,>=1.11”

  8. python manage.py migrate

  9. python manage.py createsuperuser

  10. python manage.py runserver 8000

  11. Go to http://localhost:8000/admin
    1. create an environment (your CODESPEED_ENV)

    2. create a Github-type project (name = CODESPEED_PROJECT) with a correct url (e.g. https://github.com/scipion-em/scipion-pyworkflow), branch (e.g. “devel” or your own CODESPEED_BRANCH) and tick “Track changes”

    3. create a “devel” (or your own CODESPEED_BRANCH) branch

Example run

Run any of the following plugin tests to save the data on the codespeed server, e.g.:

scipion3 tests pwperformance.tests.test_profiling_load.TestProfilingLoadGUI
scipion3 tests pwperformance.tests.test_set_performance.TestSetPerformanceSteps
scipion3 tests pwperformance.tests.test_exportsteps.TestExportSteps

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scipion-em-pwperformance-0.0.5.tar.gz (24.7 kB view details)

Uploaded Source

File details

Details for the file scipion-em-pwperformance-0.0.5.tar.gz.

File metadata

File hashes

Hashes for scipion-em-pwperformance-0.0.5.tar.gz
Algorithm Hash digest
SHA256 0017fc7de392f832b88cdc4c0990e1483615c3a78a9285b0143feae198e36a1e
MD5 e013a01b26f9f714c6ba94ab8e2d68df
BLAKE2b-256 314f487a0f5b964de4eb663c291ece71af9c71573d83119c88f869085fdfa030

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page