<commit_before>'use strict'

var _ = require('lodash')
var Base = require('grenache-nodejs-base')
var Client = require('./../lib/Client')

var gc = new Base.Link({
  grape: 'ws://127.0.0.1:30002'
})
gc.start()

var tc = new Client(gc, {})

var cnt = 10000
var reps = 0

setTimeout(() => {
  gc.lookup('test', { timeout: 1000 }, (err, data) => {
    var d1 = new Date()
    for (var i = 0; i < cnt; i++) {
      tc.request(data[0], 'test', 'hello', (err, data) => {
        //console.log("here", err, data)
        if (++reps === cnt) {
          var d2 = new Date()
          console.log(d2 - d1) 
        }
      })
    }
    console.log(err, data)
  })
}, 2000)<commit_msg>Minor change<commit_after>'use strict'

var _ = require('lodash')
var Base = require('grenache-nodejs-base')
var Client = require('./../lib/Client')

var gc = new Base.Link({
  grape: 'ws://127.0.0.1:30002'
})
gc.start()

var tc = new Client(gc, {})

var cnt = 20000
var reps = 0

setTimeout(() => {
  gc.lookup('test', { timeout: 1000 }, (err, data) => {
    var d1 = new Date()
    for (var i = 0; i < cnt; i++) {
      tc.request(data[0], 'test', 'hello', (err, data) => {
        //console.log("here", err, data)
        if (++reps === cnt) {
          var d2 = new Date()
          console.log(d2 - d1) 
        }
      })
    }
    console.log(err, data)
  })
}, 2000)
{'fraction_non_alphanumeric': 0.21052631578947367, 'fraction_numerical': 0.04595997034840623, 'mean_word_length': 2.3415841584158414, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7444051', 'n_tokens_mistral': 553, 'n_tokens_neox': 514, 'n_words': 128}