sequelize-benchmark
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -7,3 +7,3 @@ 'use strict'; | ||
, Config = require('./config') | ||
, Sequelize = require('sequelize'); | ||
, Sequelize = require(process.cwd()); | ||
@@ -10,0 +10,0 @@ /** |
@@ -5,3 +5,3 @@ 'use strict'; | ||
, defaults = require('lodash.defaults') | ||
, Sequelize = require('sequelize'); | ||
, Sequelize = require(process.cwd()); | ||
@@ -8,0 +8,0 @@ module.exports = { |
{ | ||
"name": "sequelize-benchmark", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "benchmark for sequelize orm", | ||
"main": "index.js", | ||
"preferGlobal": "true", | ||
"bin": { | ||
"sequelize-benchmark": "bin.js" | ||
}, | ||
"scripts": { | ||
@@ -7,0 +11,0 @@ "start": "node test.js", |
@@ -5,5 +5,5 @@ ## Sequelize Benchmark | ||
Benchmark which is used to record sequelize performance trends. | ||
Benchmark which is used to measure sequelize performance | ||
<p align="center"><img src="http://i.imgur.com/4z11JUe.png" /></p> | ||
<p align="center"><img src="http://i.imgur.com/vSNc49a.png" /></p> | ||
@@ -14,3 +14,3 @@ ### Config | ||
``` | ||
```bash | ||
@@ -24,2 +24,3 @@ `SEQ_USER`, Username for database | ||
`DIALECT`, Dialect to use , `mysql` default | ||
`LARGE_SAMPLE_SIZE`, Sample size for large tests | ||
@@ -30,8 +31,21 @@ `SMALL_SAMPLE_SIZE`, Sample size for small tests | ||
### Usage | ||
### How to install and use | ||
```bash | ||
# 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 | ||
``` | ||
### Using via NPM Link (Hard mode) | ||
```bash | ||
# Open your local sequelize development path | ||
cd /path/to/sequelize | ||
# Link current repo with sequelize global symlink | ||
@@ -38,0 +52,0 @@ npm link # may be --production as well |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16806
13
420
65
17