Sha256: b3290d6d2e57f0b2ccb3ad375cd45f42360bfc480fa1b1c4df1fd0aa2bc94bbc

Contents?: true

Size: 671 Bytes

Versions: 33

Compression:

Stored size: 671 Bytes

Contents

'use strict';

var freemem = require('os').freemem;
var codec = require('../codec');

var id = Math.random();
var recv = 0;

var cmd = require('redis').createClient();
var sub = require('redis').createClient()
	.on('ready', function() {
		this.emit('timeline');
	})
	.on('timeline', function() {
		var self = this;
		this.blpop('timeline', 0, function(err, result) {
			var message = result[1];
			if (message) {
				message = codec.decode(message);
				++recv;
			}
			self.emit('timeline');
		});
	});

setInterval(function() {
	cmd.llen('timeline', function(err, result) {
		console.error('id', id, 'received', recv, 'free', freemem(), 'llen', result);
	});
}, 2000);

Version data entries

33 entries across 33 versions & 4 rubygems

Version Path
hooch-0.4.2 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/stress/rpushblpop/server.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/stress/rpushblpop/server.js
hooch-0.4.0 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/stress/rpushblpop/server.js
hooch-0.3.0 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/stress/rpushblpop/server.js
hooch-0.2.1 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/stress/rpushblpop/server.js
hooch-0.2.0 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/stress/rpushblpop/server.js
hooch-0.1.0 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/stress/rpushblpop/server.js
hooch-0.0.8 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/stress/rpushblpop/server.js
hooch-0.0.7 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/stress/rpushblpop/server.js
hooch-0.0.6 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/stress/rpushblpop/server.js
entangled-0.0.16 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/stress/rpushblpop/server.js
entangled-0.0.15 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/stress/rpushblpop/server.js
entangled-0.0.14 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/stress/rpushblpop/server.js
entangled-0.0.13 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/stress/rpushblpop/server.js
entangled-0.0.12 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/stress/rpushblpop/server.js
entangled-0.0.11 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/stress/rpushblpop/server.js
entangled-0.0.10 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/stress/rpushblpop/server.js
express_translate-1.0.13 node_modules/redis/benches/stress/rpushblpop/server.js
express_translate-1.0.12 node_modules/redis/benches/stress/rpushblpop/server.js
express_translate-1.0.11 node_modules/redis/benches/stress/rpushblpop/server.js