<commit_before>var Benchmark = require('benchmark');
var suite = new Benchmark.Suite('GeoRedis Performance Test');

var redis = require('redis');
var client = redis.createClient();

var geo = require('../main.js').initialize(client, {
    nativeGeo: true,
    zset: 'geo:native'
});

var geoEmulated = geo.addSet().initialize(client, {
    nativeGeo: false,
    zset: 'geo:emulated'
});

var old = require('geo-proximity').initialize(client, {
    zset: 'geo:old'
});

var lat = 43.646838;
var lon = -79.403723;
var testPoint = {
    latitude: lat,
    longitude: lon
};
var locationRange;
var distance = 0;
var cycleCount = 0;
var locationSet = {};
var locationsArray = [];

var i;
var locationName;


// Set Up

client.del('geo:native');
client.del('geo:emulated');
client.del('geo:old');

locationSet.center_0 = testPoint;

for (i = 0; i < 50000; i++) {
    distance = i * (i / 100);<commit_msg>Making benchmarks a little more reasonable<commit_after>var Benchmark = require('benchmark');
var suite = new Benchmark.Suite('GeoRedis Performance Test');

var redis = require('redis');
var client = redis.createClient();

var geo = require('../main.js').initialize(client, {
    nativeGeo: true,
    zset: 'geo:native'
});

var geoEmulated = geo.addSet().initialize(client, {
    nativeGeo: false,
    zset: 'geo:emulated'
});

var old = require('geo-proximity').initialize(client, {
    zset: 'geo:old'
});

var lat = 43.646838;
var lon = -79.403723;
var testPoint = {
    latitude: lat,
    longitude: lon
};
var locationRange;
var distance = 0;
var cycleCount = 0;
var locationSet = {};
var locationsArray = [];

var i;
var locationName;


// Set Up

client.del('geo:native');
client.del('geo:emulated');
client.del('geo:old');

locationSet.center_0 = testPoint;

for (i = 0; i < 10000; i++) {
    distance = i * (i / 100);
{'fraction_non_alphanumeric': 0.16767123287671232, 'fraction_numerical': 0.030684931506849315, 'mean_word_length': 4.15819209039548, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '4778494', 'n_tokens_mistral': 690, 'n_tokens_neox': 636, 'n_words': 162}