Skip to content

Instantly share code, notes, and snippets.

var async = require('async'),
dgram = require('dgram');
var client = dgram.createSocket('udp4');
var totalTimeTaken = 0;
var iterations = 115000;
var q = async.queue(function (task, cb) {
var buf = new Buffer(task.name.toString());
var startTime = new Date().getTime();
client.send(buf, 0, buf.length, 7125, '127.0.0.1', function () {