Skip to content

Commit 7e0b17c

Browse files
committed
remove speed test as it is flacky
1 parent 6d21140 commit 7e0b17c

File tree

1 file changed

+0
-43
lines changed

1 file changed

+0
-43
lines changed

packages/cubejs-schema-compiler/test/integration/postgres/dataschema-compiler.test.ts

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -158,49 +158,6 @@ describe('DataSchemaCompiler', () => {
158158
compiler.throwIfAnyErrors();
159159
});
160160
});
161-
162-
describe('Test perfomance', () => {
163-
const schema = `
164-
cube('visitors', {
165-
sql: 'select * from visitors',
166-
measures: {
167-
count: {
168-
type: 'count',
169-
sql: 'id'
170-
},
171-
duration: {
172-
type: 'avg',
173-
sql: 'duration'
174-
},
175-
},
176-
dimensions: {
177-
date: {
178-
type: 'string',
179-
sql: 'date'
180-
},
181-
browser: {
182-
type: 'string',
183-
sql: 'browser'
184-
}
185-
}
186-
})
187-
`;
188-
189-
it('Should compile 200 schemas in less than 2500ms * 10', async () => {
190-
const repeats = 200;
191-
192-
const compilerWith = prepareJsCompiler(schema, { allowJsDuplicatePropsInSchema: false });
193-
const start = new Date().getTime();
194-
for (let i = 0; i < repeats; i++) {
195-
delete compilerWith.compiler.compilePromise; // Reset compile result
196-
await compilerWith.compiler.compile();
197-
}
198-
const end = new Date().getTime();
199-
const time = end - start;
200-
201-
expect(time).toBeLessThan(2500 * 10);
202-
});
203-
});
204161
});
205162

206163
it('calculated metrics', async () => {

0 commit comments

Comments
 (0)