vi posso dare un suggerimento dalla mia recente esperienza. È possibile collegare i client virtuali Phantom basati su WebKit per il vostro server di chat e misurare l'utilizzo delle risorse (ad esempio CPU, memoria, può essere utilizzando uno script di shell o un'altra utilità oppure è possibile creare il profilo del servizio)
var system = require('system');
var page = require('webpage').create();
page.viewportSize = { width: 1024, height: 768 };
page.open("<URL to chat server service>", function (status) {
// Check for page load success
if (status !== "success") {
console.log("Unable to connect");
phantom.exit();
} else {
console.log("Client connected ");
//after connecting you may extract further information, taking screenshots etc. refer the phantom.js API for further details
}
});
Usi qualsiasi framework come socket IO per comunicazione websocket?
fonte
2013-04-25 12:03:33