examples/bench_helenus.js
function bench(callback){
  conn.connect(function(err, keyspace){
    if(err){
      throw(err);
    }

    console.time('Helenus ' + times + ' writes');
    
    function cb(err, results){
      if(err){
        console.log('Error encountered at: ' + completed);
        throw(err);
      }
      completed += 1;
      
      if(completed === times){
        console.timeEnd('Helenus ' + times + ' writes')  ;
        conn.close();
        callback();
      }
    }
    
    /**
     * lets run a test for writes
     */
    for(; i < times; i += 1){
      vals = ['Column'+i, i.toString(16), (i % 100).toString(16)];
      conn.cql(cqlInsert, vals, { gzip:true }, cb);
    }
  }); 
}
function bench(callback){
  conn.connect(function(err, keyspace){
    if(err){
      throw(err);
    }

    console.time('Helenus ' + times + ' writes');
    
    function cb(err, results){
      if(err){
        console.log('Error encountered at: ' + completed);
        throw(err);
      }
      completed += 1;
      
      if(completed === times){
        console.timeEnd('Helenus ' + times + ' writes')  ;
        conn.close();
        callback();
      }
    }
    
    /**
     * lets run a test for writes
     */
    for(; i < times; i += 1){
      vals = ['Column'+i, i.toString(16), (i % 100).toString(16)];
      conn.cql(cqlInsert, vals, { gzip:true }, cb);
    }
  }); 
}
function bench ( callback ) { conn . connect ( function ( err , keyspace ) { if ( err ) { throw ( err ) ; } console . time ( 'Helenus ' + times + ' writes' ) ; function cb ( err , results ) { if ( err ) { console . log ( 'Error encountered at: ' + completed ) ; throw ( err ) ; } completed += 1 ; if ( completed === times ) { console . timeEnd ( 'Helenus ' + times + ' writes' ) ; conn . close ( ) ; callback ( ) ; } } /**
     * lets run a test for writes
     */ for ( ; i < times ; i += 1 ) { vals = [ 'Column' + i , i . toString ( 16 ) , ( i % 100 ) . toString ( 16 ) ] ; conn . cql ( cqlInsert , vals , { gzip : true } , cb ) ; } } ) ; }
First bench helenus
First bench helenus