Registry / testing / mysql-bindings-benchmarks

mysql-bindings-benchmarks

JSON →
library0.2.1jsnpmunverified

Benchmarks for Node.js MySQL bindings, version 0.2.1. This package compares performance of different MySQL client libraries on old Node.js 0.6.x. Abandoned since 2012. Not suitable for modern Node.js versions.

npm install mysql-bindings-benchmarks
INSTALL
IMPORT
SIG · MYSQL-BINDINGS-BEN
M
mysql-bindings-benchmarks
testingjavascriptv0.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

benchmark
const benchmark = require('mysql-bindings-benchmarks');
Only CommonJS supported; package predates ESM.
MySQLClient
const MySQLClient = require('mysql-bindings-benchmarks').MySQLClient;
import { MySQLClient } from 'mysql-bindings-benchmarks';
No ESM support; use CommonJS require.
suite
const suite = require('mysql-bindings-benchmarks').suite;
Exports a suite object for running benchmarks.

Runs the MySQL bindings benchmarks using CommonJS require.

const benchmarks = require('mysql-bindings-benchmarks'); const suite = benchmarks.suite; suite.run(); // Outputs benchmark results to console.
Debug
Known issues
gotchaPackage is abandoned and only supports Node.js 0.6.x. Will not work on modern Node versions.
fix
Do not use; consider alternatives like mysql2 benchmark scripts.
affects: >=0.6.x
gotchaNo ESM support; import will fail.
fix
Use require() instead of import.
affects: all
gotchaUnmaintained since 2012, may have security vulnerabilities.
fix
Avoid using in production or security-sensitive contexts.
affects: all
Errors
Common errors & fixes
Error: Cannot find module 'mysql-bindings-benchmarks'
Package not installed or not in node_modules.
fix
npm install mysql-bindings-benchmarks (but only works on Node 0.6.x)
TypeError: require(...) is not a function
Using wrong import style; expecting a function?
fix
Use const benchmarks = require('mysql-bindings-benchmarks'); then call benchmarks.suite.run();
Upgrade
Version history
0.2.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
Amazon
1
Resources
mysql-bindings-benchmarks — npm install mysql-bindings-benchmarks · libregistry