Just found V8 bug 🐛
class Var1 { get() { } } class Var2 { ["get"]() { } } const var1 = new Var1, var2 = new Var2 const as = { group: "v8" } Deno.bench("var1.get.bind()", as, () => { var1.get.bind() }) Deno.bench("var2.get.bind()", as, () => { var2.get.bind() })
benchmark time (avg) (min … max) p75 p99 p995 ------------------------------------------------------- ----------------------------- var1.get.bind() 6.02 ns/iter (5.23 ns … 32.95 ns) 6.09 ns 10.24 ns 11.3 ns var2.get.bind() 671.68 ns/iter (645.99 ns … 757.92 ns) 674.67 ns 757.92 ns 757.92 ns summary var1.get.bind() 111.59x faster than var2.get.bind()
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Just found V8 bug 🐛