[Pkg-javascript-commits] [node-leveldown] 110/492: added no-compression benchmark engine
Andrew Kelley
andrewrk-guest at moszumanska.debian.org
Sun Jul 6 17:13:50 UTC 2014
This is an automated email from the git hooks/post-receive script.
andrewrk-guest pushed a commit to annotated tag rocksdb-0.10.1
in repository node-leveldown.
commit 51d738488dc23cea31d25cb2c1e799399697d1c3
Author: Rod Vagg <rod at vagg.org>
Date: Sun Dec 16 12:47:06 2012 +1100
added no-compression benchmark engine
---
test/benchmarks/engines/levelup-nosnappy.js | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/test/benchmarks/engines/levelup-nosnappy.js b/test/benchmarks/engines/levelup-nosnappy.js
new file mode 100644
index 0000000..ed04ba2
--- /dev/null
+++ b/test/benchmarks/engines/levelup-nosnappy.js
@@ -0,0 +1,16 @@
+var levelup = require('../../../')
+
+ , createDb = function (location, callback) {
+ levelup(location, { createIfMissing: true, errorIfExists: true, compression: false }, function (err, db) {
+ setTimeout(callback.bind(null, err, db), 50)
+ })
+ }
+
+ , closeDb = function (db, callback) {
+ db.close(callback)
+ }
+
+module.exports = {
+ createDb : createDb
+ , closeDb : closeDb
+}
\ No newline at end of file
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-leveldown.git
More information about the Pkg-javascript-commits
mailing list