4 ms·
Seems pretty solid. Folds after 4k requests a second when tested using: ``` var int = 1; window.setInterval(function(){ int = int + 1; var data = { messag
by rememberlenny 11y ago
Seems pretty solid. Folds after 4k requests a second when tested using:
```
var int = 1;
window.setInterval(function(){
int = int + 1;
var data = {
message: "test " + int,
nick: "rl"
};
$.ajax({
type: "POST",
url: "http://sse.getgin.io/room-post/hn?nick=rl" http://sse.getgin.io/room-post/hn?nick=rl",
data: data,
});
}, 5);
- manucorporat 11y agoit uses a 2 cores machine.
- jeromenerf 11y agoYeah, your precious benchmark was well appreciated by the folks on the HN "room". Thank you.
- aikah 11y agoYou sir made my browser crash.
- artursapek 11y agolmfao
- fixxer 11y agowe noticed
- tunesmith 11y agoAnyone want to take a stab on exactly what happened that made this test crash it? 4k requests / second would mean that if you had 100 people connected, it would spawn 400,000 outbound messages per second on the server side, or 4,000 for each user. That wouldn't overwhelm an http connection limit but I guess it would overwhelm the processors on the server side. Plus perhaps make some browsers crash from JS trying to process so much incoming information without disconnecting.