Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sequelize-benchmark

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sequelize-benchmark

benchmark for sequelize orm

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Sequelize Benchmark

Dependency Status npm npm

Benchmark which is used to measure sequelize performance

Config

It support all possible sequelize environment configuration. Following ENV varibales are available generally


`SEQ_USER`, Username for database
`SEQ_PW`, Password for database
`SEQ_DB`, Database name
`SEQ_HOST`, Host addresss
`SEQ_PORT`, Host port
`SEQ_POOL_MAX`, Maximum concurrent connection
`SEQ_POOL_MIN`, Minimum concurrent connection
`DIALECT`, Dialect to use , `mysql` default

`LARGE_SAMPLE_SIZE`, Sample size for large tests
`SMALL_SAMPLE_SIZE`, Sample size for small tests

How to install and use

  # Install sequelize-benchmark globally
  npm install -g sequelize-benchmark

  # Open your local sequelize development path
  cd /path/to/sequelize

  # Run benchmark
  DIALECT=<postgres | mysql | sqlite | mssql > sequelize-benchmark
  # Open your local sequelize development path
  cd /path/to/sequelize

  # Link current repo with sequelize global symlink
  npm link # may be --production as well

  # Clone benchmarking repository via
  git clone https://github.com/sushantdhiman/sequelize-benchmark

  # Open the `sequelize-benchmark` path
  cd /path/to/sequelize-benchmark

  # Install required node modules
  npm install

  # Now use the `sequelize` from your local sequelize repository
  npm link sequelize

  # Run benchmark
  npm run <test-mysql | test-pg | test-sqlite | test-pg-native | test-mssql>

Troubleshooting

ECONNRESET when running mysql benchmark

In case you get ECONNRESET error when starting benchmark, try to increase max_package_size of your mysql server. You can do this with query (it will work till reboot):

SET GLOBAL max_allowed_packet=1073741824;

or by editing mysql configuration.

Keywords

FAQs

Package last updated on 19 Jan 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc