Performance do JS

JavaScript performance comparison

Test case created by suissa

Preparation code


      
      <script>
Benchmark.prototype.setup = function() {
  const a = () => 'a'
  const b = (s) => s
  const c = (s) => 0
  const d = (d) => d
  const CSuissa = (n, k = 2) => (n / k) * (n - 1)
  const CSuissa888 = (n = 888, k = 2) => (n / k) * (n - 1)

};
</script>

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
Primeiro TESTE
a()
pending…
Segundo TESTE
b('b')
pending…
Terceiro TESTE
c()
pending…
Quarto TESTE
d(1)
pending…
Quinto TESTE
CSuissa(888)
pending…
Sexto TESTE
CSuissa888()
pending…

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

Compare results of other browsers

0 Comments