aboutsummaryrefslogtreecommitdiffstats
path: root/perf/jsonPerfSpec.js
blob: edc4b6b274904db9dda31b40ff51ab5b00f08557 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
describe('json', function() {

  it('angular parser', function() {
    perf(
      function angular() {
        fromJson(largeJsonString);
      },
      function nativeDelegate() {
        fromJson(largeJsonString, true);
      },
      function nativeJSON() {
        JSON.parse(largeJsonString);
      }
    );
  });
});