SculeJS VS TaffyDB (v5)

Revision 5 of this benchmark created by sudhir tiwari on


Description

A simple performance comparison between SculeJS v0.0.6 and TaffyDB v2.7

Preparation HTML

<script src="https://github.com/dan-eyles/sculejs/blob/master/lib/com.scule.js"></script>
<script src="https://github.com/typicaljoe/taffydb/blob/master/taffy.js"></script>

Setup

var collection = Scule.factoryCollection('scule+memory://test');
    collection.ensureHashIndex('i');
    collection.ensureHashIndex('tag');
    
    var database = new TAFFY();
    
    for (var i=0; i < 1000; i++) {
       object = {
          index: i,
          tag: 'tag_' + i,
          random: Scule.global.functions.randomFromTo(i, 20000)
       };
       collection.save(Scule.global.functions.cloneObject(object));
       database.insert(Scule.global.functions.cloneObject(object));
    }

Teardown


    collection = null;
    database   = null;
  

Test runner

Ready to run.

Testing in
TestOps/sec
SculeJS
collection.find({index:500});
ready
TaffyDB
database({index:500});
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.

  • Revision 1: published by SculeJS VS TaffyDB on
  • Revision 3: published on
  • Revision 5: published by sudhir tiwari on