Browse Source

Update readme

Zane Kansil 10 years ago
parent
commit
26d81bfeba

+ 17 - 42
frameworks/JavaScript/nodejs/README.md

@@ -2,55 +2,30 @@
 
 This is the NodeJS portion of a [benchmarking test suite](../) comparing a variety of web development platforms.
 
-### JSON Encoding Test
+### There are individual handlers for each DB approach
+The logic for the test cases live in these.
 
-* [JSON test controller/view](hello.js)
-
-### Data-Store/Database Mapping Test
-
-* [DB test controller/model](hello.js)
+* [MySQL raw](handlers/mysql-raw.js)
+* [Sequelize (MySQL)](handlers/sequelize.js)
+* [MongoDB raw](handlers/mongodb-raw.js)
+* [Mongoose (MySQL)](handlers/mongoose.js)
+* [Hiredis (Redis)](handlers/redis)
 
 ## Infrastructure Software Versions
 The tests were run with:
 * [Node.js v0.12.2](http://nodejs.org/)
-* [Mongoose 4.0.1](http://mongoosejs.com/)
-* [Sequelize 2.0.6](https://github.com/sequelize/sequelize)
-* [Node MySQL 2.6.2](https://github.com/felixge/node-mysql/)
-* [Node MongoDB Driver 2.0.27](https://github.com/mongodb/node-mongodb-native)
-
-## Test URLs
-### JSON Encoding Test
-
-http://localhost:8080/json
-
-### Plaintext Test
-
-http://localhost:8080/plaintext
 
-### Data-Store/Database Mapping Test
+* [Node MySQL 2.7.0](https://github.com/felixge/node-mysql/)
+* [Sequelize 3.1.1](https://github.com/sequelize/sequelize)
+* [Node MongoDB Driver 2.0.33](https://github.com/mongodb/node-mongodb-native)
+* [Mongoose 4.0.4](http://mongoosejs.com/)
+* [Node Redis 0.12.1](https://github.com/mranney/node_redis)
+* [Hiredis 0.4.0 (C lib for Redis)](https://github.com/redis/hiredis)
 
-MongoDB:
-http://localhost:8080/mongoose
-
-MongoDB Raw:
-http://localhost:8080/mongodb
-
-MySQL:
-http://localhost:8080/mysql-orm
-
-MySQL Raw:
-http://localhost:8080/mysql
-
-### Variable Query Test
-
-MongoDB:
-http://localhost:8080/mongoose?queries=2
+## Test URLs
 
-MongoDB Raw:
-http://localhost:8080/mongodb?queries=2
+See the [Benchmark config](benchmark_config.json) file for a list of the tested routes.
 
-MySQL:
-http://localhost:8080/mysql-orm?queries=2
+`/json` and `/plaintext` are implemented
 
-MySQL Raw:
-http://localhost:8080/mysql?queries=2
+The four db-required tests, Single Query, Multiple Query, Fortunes, and Updates have been implemented for each of the 5 database approaches that this test covers

+ 0 - 1
frameworks/JavaScript/nodejs/handlers/sequelize.js

@@ -1,5 +1,4 @@
 var h = require('../helper');
-// var async = require('async');
 var Promise = require('bluebird');
 
 var Sequelize = require('sequelize');