
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Tool for opening your adaptive project in a mobile web view and gathering it's metrics using browser-perf
brew install selenium-server-standalone
Download the binary here: https://sites.google.com/a/chromium.org/chromedriver/downloads
Move it to somewhere in your path so Selenium can find it (eg. /usr/bin
)
git clone git@github.com:mobify/speedtrap.git
cd speedtrap
npm install
npm link
Performs selenium tests on your project and logs out performance metrics.
selenium-server-standalone
.grunt preview
and copy the preview path URL to the tool.speedtrap
:speedtrap browser-perf --url "<preview-url>"
This command can be used to log performance stats to a CouchDB dashboard. This can be useful to run on a per-commit basis to track performance over time. It is a wrapper for perfjankie (https://github.com/axemclion/perfjankie).
Run grunt preview
and copy the preview path URL to the tool.
speedtrap perfjankie -u "<url>" -slug "<project-slug>" -n "<project-name>"
Notes:
""
so that special characters aren't interpreted by bashhttp://
or https://
)SPEEDTRAP_DB_SERVER
, SPEEDTRAP_DB_USERNAME
and SPEEDTRAP_DB_PASSWORD
environment variables need to be set in order for test data to be posted to the CloudDB site.Troubleshooting:
speedtrap
may be linked to a version of perfjankie
without the web files built. You will need to go into the linked perfjankie
project and run grunt dist
to generate the html/css/js for the dashboard. The site will then need to have the new files pushed to it (see perfjankie updateSite
option).Perfjankie was designed to be integrated into project CI environments to track performance over time.
SPEEDTRAP_DB_SERVER
, SPEEDTRAP_DB_USERNAME
and SPEEDTRAP_DB_PASSWORD
on CircleCI.scripts/speedtrap-ci.sh
script to your project.SPEEDTRAP_URL
, SPEEDTRAP_SLUG
, and SPEEDTRAP_NAME
.speedtrap-ci.sh
script in your circle.yml (recommended spot is with in the deployment
section so tests can be run when merging to a specific branch vs. on every commit):deployment:
send_statistics:
branch: [develop]
commands:
- <path_to_script>/speedtrap-ci.sh
# OR
# - <path_to_script>/speedtrap-ci.sh:
# pwd: <path_to_adaptive_project_root>
# If your adaptive project isn't at the root of your repo
grunt test
grunt lint
grunt coverage
Report viewable through coverage/lcov-report/index.html
FAQs
Tool for measuring performance of adaptivejs projects
We found that speedtrap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.