函数-匿名函数

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
1
;(function (a, b) {
  const res = a + b
  return res
})(1, 2)
ready
2
const add = function (a, b) {
  return a + b
}
const res = add(1, 2)
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.