Skip to content

Instantly share code, notes, and snippets.

Avatar

Tony Meng tonymeng

View GitHub Profile
View gist:23be07450ced63351e1f
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 () {
You can’t perform that action at this time.