Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webcaetano/mongo-mysql
Mongo vs Mysql Test Performance in Nodejs
https://github.com/webcaetano/mongo-mysql
database mongo mongo-mysql mysql nodejs test testing
Last synced: 28 days ago
JSON representation
Mongo vs Mysql Test Performance in Nodejs
- Host: GitHub
- URL: https://github.com/webcaetano/mongo-mysql
- Owner: webcaetano
- Created: 2015-09-16T13:43:32.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-05T15:43:09.000Z (about 9 years ago)
- Last Synced: 2024-09-27T17:22:33.141Z (about 1 month ago)
- Topics: database, mongo, mongo-mysql, mysql, nodejs, test, testing
- Language: JavaScript
- Size: 126 KB
- Stars: 92
- Watchers: 5
- Forks: 27
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Mongo Mysql Test Performance in Nodejs
#### Installation
```
git clone https://github.com/webcaetano/mongo-mysql.git
cd mongo-mysql
npm install
node index
```Comparison tests made by this repo
With data size in rows numbers :
10 rows
```
mysql insert: 1702ms
mysql select: 11msmongo insert: 47ms
mongo select: 12ms
```100 rows
```
mysql insert: 8171ms
mysql select: 10msmongo insert: 167ms
mongo select: 60ms
```1.000 rows
```
mysql insert: 94813ms (1.58 minutes)
mysql select: 13msmongo insert: 1013ms
mongo select: 677ms
```10.000 rows
```
mysql insert: 924695ms (15.41 minutes)
mysql select: 144msmongo insert: 9956ms (9.95 seconds)
mongo select: 4539ms (4.539 seconds)
```[@ivanpopelyshev](https://github.com/ivanpopelyshev) results :
On SSD virtual server [vultr.com](vultr.com)
```
1000:
mysql insert: 1214ms
mongo insert: 1401ms
mysql select: 9ms
mongo select: 326ms10000:
mysql insert: 11557ms
mongo insert: 7751ms
mysql select: 30ms
mongo select: 2957ms
```ENGINE='MyISAM' for mysql tables:
```
1000:
mysql insert: 361ms
mongo insert: 938ms
mysql select: 9ms
mongo select: 345ms10000:
mysql insert: 3394ms
mongo insert: 6985ms
mysql select: 31ms
mongo select: 3080ms
```