fst

Benchmark created by Bemi Faison on


Description

Testing Flow framework performance against raw (no invocation) and native implementation.

Preparation HTML

<script src="https://github.com/bemson/Flow/raw/master/flow-min.js"></script>
<script>
  var SumFlow = new Flow({
   _main: function(x, y) {
    return x + y;
   }
  });
  
  function SumFnc(x, y) {
   return x + y;
  };
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Native Sum
var i = 0,
    x = y = 5;
for (; i < 50; i++) {
 x + y;
}
ready
Function Sum
var i = 0,
    x = y = 5;
for (; i < 50; i++) {
 SumFnc(x, y)
}
ready
Flow Sum
var i = 0,
    x = y = 5;
for (; i < 50; i++) {
 SumFlow(x, y)
}
ready

Revisions

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

  • Revision 1: published by Bemi Faison on
  • Revision 3: published by Bemi Faison on