C version of js-map + benchmark results.