add benchmark (and javascript implementation)