mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-22 01:55:25 -04:00
17 lines
408 B
JavaScript
17 lines
408 B
JavaScript
describe('gdjs.VariablesContainer', function() {
|
|
it('benchmark get', function() {
|
|
this.timeout(20000);
|
|
var container = new gdjs.VariablesContainer();
|
|
|
|
const benchmarkSuite = makeBenchmarkSuite();
|
|
benchmarkSuite
|
|
.add('get', () => {
|
|
container.get('Var1');
|
|
container.get('Var2');
|
|
container.get('Var3');
|
|
});
|
|
|
|
console.log(benchmarkSuite.run());
|
|
});
|
|
});
|