Files
GDevelop/GDJS/tests/benchmarks/force.js
2018-11-11 22:08:34 +00:00

15 lines
405 B
JavaScript

describe('gdjs.Force', function() {
it('benchmark setting angle and length', function(){
this.timeout(20000);
var layer = new gdjs.Force();
const benchmarkSuite = makeBenchmarkSuite();
benchmarkSuite.add('setAngle and setLength', (i) => {
layer.setAngle(i);
layer.setLength(200);
});
console.log(benchmarkSuite.run());
});
});