mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-22 10:05:37 -04:00
15 lines
405 B
JavaScript
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());
|
|
});
|
|
});
|