rename project to MultiforaDB
Prose and benchmark tables use MultiforaDB; the binary, the CLI usage line, the log-message prefix and the default database file use multiforadb. Two consequences worth noting: - build.zig.zon's fingerprint is derived from the package name, so it had to change with it (Zig refuses to build otherwise). A consumer pinning this package by fingerprint needs updating. - the default --db path is now multiforadb.log, and getCmdLineOpts reports it as dbpath. An existing mongo-lite.log has to be passed explicitly with --db. The e2e harness abbreviated the old name as ML_; that is now MFDB_, including the documented ML_BIN override (MFDB_BIN) and the scratch file names. MD_ (mongod) is untouched. compare-run.sh spawned the server by absolute path under a sandbox/mongo-lite directory that no longer exists; that block already runs from tests/e2e, so it uses a relative path now. The archived reports under tests/e2e/results/ keep the old name: they record what the old binary measured.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// Benchmark: the same workload through the official driver against mongo-lite
|
||||
// Benchmark: the same workload through the official driver against multiforadb
|
||||
// and a real MongoDB. Run once per server URL, then diff the reports.
|
||||
//
|
||||
// node tests/e2e/compare.js --url mongodb://127.0.0.1:27018 --label mongodb
|
||||
// node tests/e2e/compare.js --url mongodb://127.0.0.1:27019 --label mongo-lite
|
||||
// node tests/e2e/compare.js --url mongodb://127.0.0.1:27019 --label multiforadb
|
||||
//
|
||||
// Options:
|
||||
// --url <u> server URL (required)
|
||||
@@ -12,11 +12,11 @@
|
||||
// --batch <n> docs per insertMany (default 500)
|
||||
// --index <field> field to index before the op benchmarks (default k)
|
||||
// --wc <j|none> write concern: 'j' = {w:1, j:true} durable ack on every
|
||||
// write (fair vs mongo-lite's fsync-per-write); 'none' =
|
||||
// write (fair vs multiforadb's fsync-per-write); 'none' =
|
||||
// driver default (default j)
|
||||
//
|
||||
// Every benchmark is awaited (no fire-and-forget), which is exactly how the
|
||||
// big.js harness measures mongo-lite, so the numbers are directly comparable.
|
||||
// big.js harness measures multiforadb, so the numbers are directly comparable.
|
||||
const { MongoClient, ObjectId } = require('mongodb');
|
||||
const fs = require('fs');
|
||||
const os = require('os');
|
||||
@@ -118,7 +118,7 @@ async function main() {
|
||||
try { collInfo = await db.command({ collStats: 'items' }); } catch {}
|
||||
if (collInfo) row('server-side data size', fmt(collInfo.size ?? 0), `storage ${fmt(collInfo.storageSize ?? 0)}`);
|
||||
|
||||
// ---- secondary index (mongo-lite: planner uses it; mongodb: normal) ------
|
||||
// ---- secondary index (multiforadb: planner uses it; mongodb: normal) ------
|
||||
if (opt.index) {
|
||||
await bench(`createIndex({${opt.index}: 1})`, async () => { await coll.createIndex({ [opt.index]: 1 }); });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user