| OLD | NEW |
| 1 define(['dart_sdk'], function(dart_sdk) { | 1 define(['dart_sdk'], function(dart_sdk) { |
| 2 'use strict'; | 2 'use strict'; |
| 3 const core = dart_sdk.core; | 3 const core = dart_sdk.core; |
| 4 const dart = dart_sdk.dart; | 4 const dart = dart_sdk.dart; |
| 5 const dartx = dart_sdk.dartx; | 5 const dartx = dart_sdk.dartx; |
| 6 const BenchmarkBase$ = Object.create(null); | 6 const BenchmarkBase$ = Object.create(null); |
| 7 let VoidToNull = () => (VoidToNull = dart.constFn(dart.definiteFunctionType(co
re.Null, [])))(); | 7 let VoidToNull = () => (VoidToNull = dart.constFn(dart.definiteFunctionType(co
re.Null, [])))(); |
| 8 BenchmarkBase$.Expect = class Expect extends core.Object { | 8 BenchmarkBase$.Expect = class Expect extends core.Object { |
| 9 static equals(expected, actual) { | 9 static equals(expected, actual) { |
| 10 if (!dart.equals(expected, actual)) { | 10 if (!dart.equals(expected, actual)) { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 this.teardown(); | 76 this.teardown(); |
| 77 return result; | 77 return result; |
| 78 } | 78 } |
| 79 report() { | 79 report() { |
| 80 let score = this.measure(); | 80 let score = this.measure(); |
| 81 core.print(dart.str`${this.name}(RunTime): ${score} us.`); | 81 core.print(dart.str`${this.name}(RunTime): ${score} us.`); |
| 82 } | 82 } |
| 83 }; | 83 }; |
| 84 const name$ = Symbol("BenchmarkBase.name"); | 84 const name$ = Symbol("BenchmarkBase.name"); |
| 85 dart.setSignature(BenchmarkBase$.BenchmarkBase, { | 85 dart.setSignature(BenchmarkBase$.BenchmarkBase, { |
| 86 fields: () => ({name: core.String}), | 86 fields: () => ({name: dart.finalFieldType(core.String)}), |
| 87 methods: () => ({ | 87 methods: () => ({ |
| 88 run: dart.definiteFunctionType(dart.void, []), | 88 run: dart.definiteFunctionType(dart.void, []), |
| 89 warmup: dart.definiteFunctionType(dart.void, []), | 89 warmup: dart.definiteFunctionType(dart.void, []), |
| 90 exercise: dart.definiteFunctionType(dart.void, []), | 90 exercise: dart.definiteFunctionType(dart.void, []), |
| 91 setup: dart.definiteFunctionType(dart.void, []), | 91 setup: dart.definiteFunctionType(dart.void, []), |
| 92 teardown: dart.definiteFunctionType(dart.void, []), | 92 teardown: dart.definiteFunctionType(dart.void, []), |
| 93 measure: dart.definiteFunctionType(core.double, []), | 93 measure: dart.definiteFunctionType(core.double, []), |
| 94 report: dart.definiteFunctionType(dart.void, []) | 94 report: dart.definiteFunctionType(dart.void, []) |
| 95 }), | 95 }), |
| 96 statics: () => ({measureFor: dart.definiteFunctionType(core.double, [core.Fu
nction, core.int])}), | 96 statics: () => ({measureFor: dart.definiteFunctionType(core.double, [core.Fu
nction, core.int])}), |
| 97 names: ['measureFor'] | 97 names: ['measureFor'] |
| 98 }); | 98 }); |
| 99 dart.trackLibraries("BenchmarkBase", { | 99 dart.trackLibraries("BenchmarkBase", { |
| 100 "BenchmarkBase.dart": BenchmarkBase$ | 100 "BenchmarkBase.dart": BenchmarkBase$ |
| 101 }, null); | 101 }, null); |
| 102 // Exports: | 102 // Exports: |
| 103 return { | 103 return { |
| 104 BenchmarkBase: BenchmarkBase$ | 104 BenchmarkBase: BenchmarkBase$ |
| 105 }; | 105 }; |
| 106 }); | 106 }); |
| OLD | NEW |