Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump node-mongodb-native driver to 0.9.6.6
- Loading branch information
Showing
60 changed files
with
3,414 additions
and
1,804 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
./data | ||
./benchmark |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
var BSON = require('../lib/mongodb').BSONNative.BSON, | ||
ObjectID = require('../lib/mongodb').BSONNative.ObjectID, | ||
debug = require('util').debug, | ||
inspect = require('util').inspect; | ||
|
||
var BSON = require('../lib/mongodb').BSONPure.BSON; | ||
var ObjectID = require('../lib/mongodb').BSONPure.ObjectID; | ||
|
||
// require('util').debug(require('util').inspect(BSON)) | ||
|
||
var COUNT = 10000; | ||
// var COUNT = 1; | ||
// var object = { | ||
// string: "Strings are great", | ||
// decimal: 3.14159265, | ||
// bool: true, | ||
// integer: 5, | ||
// | ||
// subObject: { | ||
// moreText: "Bacon ipsum dolor sit amet cow pork belly rump ribeye pastrami andouille. Tail hamburger pork belly, drumstick flank salami t-bone sirloin pork chop ribeye ham chuck pork loin shankle. Ham fatback pork swine, sirloin shankle short loin andouille shank sausage meatloaf drumstick. Pig chicken cow bresaola, pork loin jerky meatball tenderloin brisket strip steak jowl spare ribs. Biltong sirloin pork belly boudin, bacon pastrami rump chicken. Jowl rump fatback, biltong bacon t-bone turkey. Turkey pork loin boudin, tenderloin jerky beef ribs pastrami spare ribs biltong pork chop beef.", | ||
// longKeylongKeylongKeylongKeylongKeylongKey: "Pork belly boudin shoulder ribeye pork chop brisket biltong short ribs. Salami beef pork belly, t-bone sirloin meatloaf tail jowl spare ribs. Sirloin biltong bresaola cow turkey. Biltong fatback meatball, bresaola tail shankle turkey pancetta ham ribeye flank bacon jerky pork chop. Boudin sirloin shoulder, salami swine flank jerky t-bone pork chop pork beef tongue. Bresaola ribeye jerky andouille. Ribeye ground round sausage biltong beef ribs chuck, shank hamburger chicken short ribs spare ribs tenderloin meatloaf pork loin." | ||
// }, | ||
// | ||
// subArray: [1,2,3,4,5,6,7,8,9,10], | ||
// anotherString: "another string" | ||
// } | ||
|
||
var x, start, end, i | ||
var objectBSON, objectJSON | ||
|
||
console.log(COUNT + "x (objectBSON = BSON.serialize(object))") | ||
start = new Date | ||
|
||
for (i=COUNT; --i>=0; ) { | ||
var object = { | ||
id: new ObjectID(), | ||
string: "Strings are great", | ||
decimal: 3.14159265, | ||
bool: true, | ||
integer: 5, | ||
|
||
subObject: { | ||
moreText: "Bacon ipsum dolor sit amet cow pork belly rump ribeye pastrami andouille. Tail hamburger pork belly, drumstick flank salami t-bone sirloin pork chop ribeye ham chuck pork loin shankle. Ham fatback pork swine, sirloin shankle short loin andouille shank sausage meatloaf drumstick. Pig chicken cow bresaola, pork loin jerky meatball tenderloin brisket strip steak jowl spare ribs. Biltong sirloin pork belly boudin, bacon pastrami rump chicken. Jowl rump fatback, biltong bacon t-bone turkey. Turkey pork loin boudin, tenderloin jerky beef ribs pastrami spare ribs biltong pork chop beef.", | ||
longKeylongKeylongKeylongKeylongKeylongKey: "Pork belly boudin shoulder ribeye pork chop brisket biltong short ribs. Salami beef pork belly, t-bone sirloin meatloaf tail jowl spare ribs. Sirloin biltong bresaola cow turkey. Biltong fatback meatball, bresaola tail shankle turkey pancetta ham ribeye flank bacon jerky pork chop. Boudin sirloin shoulder, salami swine flank jerky t-bone pork chop pork beef tongue. Bresaola ribeye jerky andouille. Ribeye ground round sausage biltong beef ribs chuck, shank hamburger chicken short ribs spare ribs tenderloin meatloaf pork loin." | ||
}, | ||
|
||
subArray: [1,2,3,4,5,6,7,8,9,10], | ||
anotherString: "another string" | ||
} | ||
|
||
objectBSON = BSON.serialize(object, null, true) | ||
} | ||
|
||
end = new Date | ||
console.log("bson size (bytes): ", objectBSON.length) | ||
console.log("time = ", end - start, "ms -", COUNT * 1000 / (end - start), " ops/sec") | ||
|
||
|
||
// console.log(COUNT + "x (objectJSON = JSON.stringify(object))") | ||
// start = new Date | ||
// | ||
// for (i=COUNT; --i>=0; ) { | ||
// objectJSON = JSON.stringify(object) | ||
// } | ||
// | ||
// end = new Date | ||
// console.log("json size (chars): ", objectJSON.length) | ||
// console.log("time = ", end - start, "ms -", COUNT * 1000 / (end - start), " ops/sec") | ||
|
||
|
||
console.log(COUNT + " BSON.deserialize(objectBSON)") | ||
start = new Date | ||
|
||
for (i=COUNT; --i>=0; ) { | ||
x = BSON.deserialize(objectBSON) | ||
// debug("=====================================================================") | ||
// debug(inspect(x)) | ||
// x = BSON.deserialize2(objectBSON) | ||
// debug(inspect(x)) | ||
} | ||
|
||
end = new Date | ||
console.log("time = ", end - start, "ms -", COUNT * 1000 / (end - start), " ops/sec") | ||
|
||
|
||
// console.log(COUNT + " JSON.parse(objectJSON)") | ||
// start = new Date | ||
// | ||
// for (i=COUNT; --i>=0; ) { | ||
// x = JSON.parse(objectJSON) | ||
// } | ||
// | ||
// end = new Date | ||
// console.log("time = ", end - start, "ms -", COUNT * 1000 / (end - start), " ops/sec") |
This file contains 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
10 changes: 5 additions & 5 deletions
10
support/node-mongodb-native/external-libs/bson/.lock-wscript
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
argv = ['/usr/local/bin/node-waf', 'configure', 'build'] | ||
blddir = '/Users/rauchg/Sites/mongoose/support/node-mongodb-native/external-libs/bson/build' | ||
blddir = '/home/aaron/test/mongoose/support/node-mongodb-native/external-libs/bson/build' | ||
commands = {'dist': 0, 'configure': True, 'distcheck': 0, 'install': 0, 'build': True, 'clean': 0, 'distclean': 0, 'check': 0, 'uninstall': 0} | ||
cwd = '/Users/rauchg/Sites/mongoose/support/node-mongodb-native/external-libs/bson' | ||
environ = {'SSH_AUTH_SOCK': '/tmp/launch-kXs7y7/Listeners', 'LSCOLORS': 'gxfxcxdxbxegedabagacad', 'VERSIONER_PYTHON_PREFER_32_BIT': 'no', 'TMPDIR': '/var/folders/vd/vd3w4ReHF7iw7iMKNtWUu++++TI/-Tmp-/', 'SHELL': '/bin/bash', 'LOGNAME': 'rauchg', 'USER': 'rauchg', 'HOME': '/Users/rauchg', 'PATH': '/opt/local/bin:/opt/local/sbin:/Users/rauchg/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin', 'DISPLAY': '/tmp/launch-DNLBiU/org.x:0', '_': '/usr/bin/make', 'TERM_PROGRAM': 'iTerm.app', 'LANG': 'en_US.UTF-8', 'TERM': 'xterm', 'Apple_PubSub_Socket_Render': '/tmp/launch-dKdga3/Render', 'COLORFGBG': '15;0', 'VERSIONER_PYTHON_VERSION': '2.6', 'SHLVL': '1', 'OLDPWD': '/Users/rauchg/Sites/mongoose/support', 'CLICOLOR': '1', '__CF_USER_TEXT_ENCODING': '0x1F5:0:0', 'MAKELEVEL': '2', 'PWD': '/Users/rauchg/Sites/mongoose/support/node-mongodb-native', 'MAKEFLAGS': '', 'COMMAND_MODE': 'unix2003', 'MFLAGS': '', 'EDITOR': 'vim'} | ||
cwd = '/home/aaron/test/mongoose/support/node-mongodb-native/external-libs/bson' | ||
environ = {'GDM_KEYBOARD_LAYOUT': 'us', 'GIT_PS1_SHOWDIRTYSTATE': '1', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'WINDOWPATH': '7', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'LOGNAME': 'aaron', 'USER': 'aaron', 'GNOME_KEYRING_CONTROL': '/tmp/keyring-2HEsCI', 'HOME': '/home/aaron', 'PS1': '\\[\\e]0;\\u@\\h: \\w\\a\\]\\[\\033[01;32m\\]\\u@\\h\\[\\033[01;34m\\] \\w\\[\\033[01;33m\\]$(__git_ps1)\\[\\033[01;34m\\] \\$\\[\\033[00m\\] ', 'DISPLAY': ':0', 'MAKEFLAGS': 'w', 'SSH_AGENT_PID': '1589', 'LANG': 'en_US.UTF-8', 'TERM': 'xterm-256color', 'SHELL': '/bin/bash', 'XAUTHORITY': '/var/run/gdm/auth-for-aaron-haL4ZG/database', 'LANGUAGE': 'en_US:en', 'SESSION_MANAGER': 'local/aaron-laptop:@/tmp/.ICE-unix/1551,unix/aaron-laptop:/tmp/.ICE-unix/1551', 'XDG_DATA_DIRS': '/usr/share/gnome:/usr/local/share/:/usr/share/', 'MANDATORY_PATH': '/usr/share/gconf/gnome.mandatory.path', 'NODE_ENV': 'development', 'COMPIZ_CONFIG_PROFILE': 'ubuntu', 'WINDOWID': '29361050', '_': '/usr/bin/make', 'MFLAGS': '-w', 'USERNAME': 'aaron', 'MAKELEVEL': '2', 'SSH_AUTH_SOCK': '/tmp/keyring-2HEsCI/ssh', 'EXPRESS_ENV': 'beta-dev', 'PATH': '/home/aaron/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games', 'DEFAULTS_PATH': '/usr/share/gconf/gnome.default.path', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-gnome:/etc/xdg', 'DBUS_SESSION_BUS_ADDRESS': 'unix:abstract=/tmp/dbus-SEarfTjqH4,guid=8bf87c39fcf7f37252dfed5900000022', 'ORBIT_SOCKETDIR': '/tmp/orbit-aaron', 'XDG_SESSION_COOKIE': '6d29b3478038cccf88e50b654c2a80c6-1310064742.534891-1641641818', 'GDMSESSION': 'gnome', 'DESKTOP_SESSION': 'gnome', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'GNOME_KEYRING_PID': '1532', 'UBUNTU_MENUPROXY': 'libappmenu.so', 'OLDPWD': '/home/aaron/test/mongoose/support/node-mongodb-native/test', 'GDM_LANG': 'en_US.utf8', 'GTK_MODULES': 'canberra-gtk-module', 'SPEECHD_PORT': '7560', 'SHLVL': '1', 'PWD': '/home/aaron/test/mongoose/support/node-mongodb-native', 'COLORTERM': 'gnome-terminal', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:'} | ||
files = [] | ||
hash = 0 | ||
options = {'compile_targets': None, 'force': False, 'verbose': 0, 'nocache': False, 'progress_bar': 0, 'check_cxx_compiler': 'g++', 'destdir': '', 'keep': False, 'zones': '', 'blddir': '', 'prefix': '/usr/local/', 'debug': False, 'srcdir': '', 'jobs': 4} | ||
srcdir = '/Users/rauchg/Sites/mongoose/support/node-mongodb-native/external-libs/bson' | ||
options = {'compile_targets': None, 'force': False, 'verbose': 0, 'nocache': False, 'progress_bar': 0, 'check_cxx_compiler': 'g++ icpc sunc++', 'destdir': '', 'keep': False, 'zones': '', 'blddir': '', 'prefix': '/usr/local/', 'debug': False, 'srcdir': '', 'jobs': 2} | ||
srcdir = '/home/aaron/test/mongoose/support/node-mongodb-native/external-libs/bson' |
This file contains 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
Oops, something went wrong.