I hereby claim:
- I am loucash on github.
- I am loucash (https://keybase.io/loucash) on keybase.
- I have a public key ASDa-yFinQBgkV6HvNNjkKmZpTPTkPYXoE96_WrO-LbBeQo
To claim this, I am signing this object:
import org.bouncycastle.jce.provider.BouncyCastleProvider; | |
import java.math.BigInteger; | |
import java.security.*; | |
public class Main { | |
public static void main(String[] args) throws NoSuchProviderException, NoSuchAlgorithmException, InvalidKeyException, SignatureException { | |
// Crypto setup |
-module(netutil). | |
-author('Juan Jose Comellas <juanjo@comellas.org>'). | |
%% API | |
-export([get_local_ip_from_subnet/1, get_ip_from_subnet/2, | |
cidr_network/1, cidr_netmask/1]). | |
%% @type ipv4() = {integer(), integer(), integer(), integer()} | |
I hereby claim:
To claim this, I am signing this object:
-module(test). | |
-export([test/0]). | |
-define(BUCKET, <<"foo">>). | |
test() -> | |
Key = rand_binary(10), | |
Idx = rand_int(10), | |
test(Key, Idx). |
1> {ok, Pid} = riakc_pb_socket:start_link("localhost", 8087). | |
{ok,<0.35.0>} | |
2> riakc_pb_socket:set_bucket(Pid, <<"foo">>, [{allow_mult, true}]). | |
ok | |
3> riakc_pb_socket:counter_incr(Pid, <<"foo">>, <<"bar">>, 1). | |
ok | |
4> riakc_pb_socket:counter_incr(Pid, <<"foo">>, <<"bar">>, 3). | |
ok | |
5> riakc_pb_socket:counter_incr(Pid, <<"foo">>, <<"bar">>, -2). | |
ok |
$ git diff | |
diff --git a/test/mock_vnode.erl b/test/mock_vnode.erl | |
index 44dbe6a..d5c66e2 100644 | |
--- a/test/mock_vnode.erl | |
+++ b/test/mock_vnode.erl | |
@@ -42,6 +42,7 @@ | |
-export([init/1, | |
handle_command/3, | |
terminate/2, | |
+ handle_tick/1, |
#!/usr/bin/env escript | |
%% -*- erlang -*- | |
%%! -sname perf -pa ebin -pa test | |
-define(RESOURCES, 100). | |
-define(RUNS, 10000). | |
-define(DELAY, 200). | |
-define(ETS, test). | |
main(_) -> |
$ ./perf.erl
Result shows how long did it take to run 10000 times
Hash, 1 process: 19960ms
Hash, 10 processes: 78088ms
Hash, 100 processes: 1135032ms
Ets, 1 process: 19220ms
Ets, 10 processes: 92567ms
Ets, 100 processes: 1152708ms