This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint node: true, maxlen: 100 */ | |
'use strict'; | |
var fs = require('fs'), | |
log4js = require('log4js'), | |
async = require('async'), | |
NB_ITERATION = 150000; | |
function fileStreamSpeedTest(callback) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint indent: 4, node: true, nomen:true, maxlen: 125*/ | |
/*global emit */ | |
'use strict'; | |
var DATABASE_URL = 'mongodb://127.0.0.1:27017,127.0.0.1:27018,127.0.0.1:27019/dbName?replicaSet=rs0', | |
mongodb = require('mongodb'), | |
assert = require('assert'), | |
dbConnectConfig = {db: { w: 1 }}; | |
mongodb.Db.connect(DATABASE_URL, dbConnectConfig, function (err, db) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 info it worked if it ends with ok | |
1 verbose cli [ '/usr/local/bin/node', | |
1 verbose cli '/usr/local/bin/npm', | |
1 verbose cli 'run', | |
1 verbose cli 'test', | |
1 verbose cli '--verbose' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose run-script [ 'pretest', 'test', 'posttest' ] | |
5 info pretest [email protected] |