This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ src/redis-benchmark -P 100 | |
PING_INLINE: 0.00 | |
====== PING_INLINE ====== | |
10000 requests completed in 0.10 seconds | |
50 parallel clients | |
3 bytes payload | |
keep alive: 1 | |
0.01% <= 5 milliseconds | |
2.01% <= 10 milliseconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[12764] 14 Aug 14:38:18.245 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'. | |
_._ | |
_.-``__ ''-._ | |
_.-`` `. `_. ''-._ Redis 2.8.13 (9fa51dd4/0) 64 bit | |
.-`` .-```. ```\/ _.,_ ''-._ | |
( ' , .-` | `, ) Running in stand alone mode | |
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 | |
| `-._ `._ / _.-' | PID: 12764 | |
`-._ `-._ `-./ _.-' _.-' | |
|`-._`-._ `-.__.-' _.-'_.-'| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sweet.js arrow function macro | |
// https://github.com/mozilla/sweet.js/ | |
macro => { | |
rule infix { ( $arg:ident (,) ... ) | { $body ... $last:expr } } => { | |
(function ( $arg (,) ... ) { | |
$( $body) ... | |
return $last | |
}).bind(this) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git i/include/horizontime.h w/include/horizontime.h | |
index b3ccf89..2db2083 100644 | |
--- i/include/horizontime.h | |
+++ w/include/horizontime.h | |
@@ -50,7 +50,7 @@ struct horizontime_t | |
parentExecutionOrderId < other.parentExecutionOrderId ? false : | |
schedulingOrderId > other.schedulingOrderId ? true : // 5. criterion: scheduling order | |
schedulingOrderId < other.schedulingOrderId ? false : | |
- insertOrder > insertOrder; // 6. criterion: final tie breaker (needed during init) | |
+ insertOrder > other.insertOrder; // 6. criterion: final tie breaker (needed during init) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: Anonymous | |
# Generator : CPANPLUS::Dist::Arch 1.28 | |
pkgname='perl-exporter-tiny' | |
pkgver='0.042' | |
pkgrel='1' | |
pkgdesc="an exporter with the features of Sub::Exporter but only core dependencies" | |
arch=('any') | |
license=('PerlArtistic' 'GPL') | |
options=('!emptydirs') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: Anonymous | |
# Generator : CPANPLUS::Dist::Arch 1.28 | |
pkgname='perl-type-tiny' | |
pkgver='1.000004' | |
pkgrel='1' | |
pkgdesc="tiny, yet Moo(se)-compatible type constraint" | |
arch=('any') | |
license=('PerlArtistic' 'GPL') | |
options=('!emptydirs') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Port of the MurmurHash64A function from Redis. | |
// Original here: https://github.com/antirez/redis/blob/93eed9ae0163e328c33b16ab9ea3c4fbe0f98674/src/hyperloglog.c#L390-L439 | |
extern crate test; | |
use std::os; | |
use test::Bencher; | |
fn murmur_hash64a(key: &[u8], seed: u64) -> u64 { | |
let m : u64 = 0xc6a4a7935bd1e995; | |
let r : uint = 47; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
require 'fileutils' | |
$pids = [] | |
$first_child = true | |
def kill_all | |
$pids.each do |pid| | |
begin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://www.tarsnap.com/spiped/spiped-1.4.2.tgz | |
tar -xvf spiped-1.4.2.tgz | |
cd spiped-1.4.2 | |
pkgin -y in gcc48 gmake | |
mkdir bin | |
gmake clean all install BINDIR=$(pwd)/bin CC=gcc CFLAGS_DEFAULT="-O2 -D__EXTENSIONS__" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> r = redis.createClient() | |
> r.del("foo") | |
true | |
> r.hmset("foo", { a: "b", c: "d", e: "f" }) | |
true | |
> r.hgetall("foo", function(e,v) { console.log(v) }) | |
true | |
> { a: 'b', c: 'd', e: 'f' } | |
undefined |