I haven’t posted in a while, because I’ve been quite busy. I thought that my next post would have to be something technical, and something cool. Saddly, it is neither. The tech community has been following Uber a lot and this from the beginning, searching Uber on hackernews returns 2,240+ results. This post tells a story that happened to my partner and I while riding a Uber car.

I spent a good portion of my day trying to figure out how the node coordination works in Riak with hooks. We were noticing that on our 6-nodes cluster, even if we only pointed our apps at one node, the hooks would trigger randomly on the 6 of them.

Today a question came to my mind. I’ve been wondering, out of hasOwnProperty and typeof, which one is the fastest? And to what extent? So I thought I would share the results of my small benchmark here. I used the excellent BenchmarkJS module with a simple benchmark suite as follows :