Redux vs real coffee test

JavaScript performance comparison

Test case created

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    var dostuffx, x, dostuffy, y;
   
     
      dostuffx = function (i) {
      };
      x = function (n) {
        return function (accum$) {
          var i;
          for (var cache$ = function () {
                var accum$1;
                accum$1 = [];
                for (var i$ = 0; 0 <= n ? i$ < n : i$ > n; 0 <= n ? ++i$ : --i$)
                  accum$1.push(i$);
                return accum$1;
              }.apply(this, arguments), i$ = 0, length$ = cache$.length; i$ < length$; ++i$) {
            i = cache$[i$];
            accum$.push(dostuffx(i));
          }
          return accum$;
        }.call(this, []);
      };
   
    dostuffy = function(i) {};
   
    y = function(n) {
      var i, _i, _results;
      _results = [];
      for (i = _i = 0; 0 <= n ? _i < n : _i > n; i = 0 <= n ? ++_i : --_i) {
        _results.push(dostuffy(i));
      }
      return _results;
    };
};
</script>

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
Redux
x(10);
pending…
Normal
y(10);
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

Add a comment