summaryrefslogtreecommitdiff
path: root/jstests/stats.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/stats.js')
-rw-r--r--jstests/stats.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/jstests/stats.js b/jstests/stats.js
new file mode 100644
index 0000000..26de644
--- /dev/null
+++ b/jstests/stats.js
@@ -0,0 +1,9 @@
+
+t = db.stats1;
+t.drop();
+
+t.save( { a : 1 } );
+
+assert.lt( 0 , t.dataSize() , "A" );
+assert.lt( t.dataSize() , t.storageSize() , "B" );
+assert.lt( 0 , t.totalIndexSize() , "C" );