Skip to content

Instantly share code, notes, and snippets.

View ricardobcl's full-sized avatar

Ricardo Tomé Gonçalves ricardobcl

View GitHub Profile
@ricardobcl
ricardobcl / async_await_microbenchmark.js
Last active March 13, 2019 11:19
Async/await overhead
async function f(n) {
if (n === 0 ) return Promise.resolve(1);;
return await f(n-1);
}
async function g(n) {
if (n === 0 ) return Promise.resolve(1);

Keybase proof

I hereby claim:

  • I am ricardobcl on github.
  • I am ricardobclup (https://keybase.io/ricardobclup) on keybase.
  • I have a public key ASA9CoSOPG5b8GY1asCxtF-VCY8VTP2j-VM8EwMCCQkjEQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am ricardobcl on github.
  • I am ricardobcl (https://keybase.io/ricardobcl) on keybase.
  • I have a public key whose fingerprint is 8B66 502A DCC3 AEB4 62EF 0D04 63FD B05F B2F8 E34A

To claim this, I am signing this object:

@ricardobcl
ricardobcl / sib.erl
Last active December 13, 2015 23:39
Little experiment to test the difference between Version Vectors and Dotted Version Vectors Sets.
%% Experiment to test the difference between Version Vectors (VV) and Dotted Version Vector Sets (DVVSet).
%% The Riak version using VV is here: https://github.com/ricardobcl/riak_kv/tree/master
%% The Riak version using DVVset is here: https://github.com/ricardobcl/riak_kv/tree/dvvset
%%
%% To reproduce, have a riak node running on port 10017 for protocol buffers, and do:
%%
%% $ git clone git://github.com/basho/riak-erlang-client.git
%% $ cd riak-erlang-client
%% $ make