作者:baconwaffle
项目:angular-cl
describe('Virtual FS Path', () => {
benchmark('normalize', () => normalize(p1));
benchmark('join', () => join(normalize(p1), normalize(p2)));
});
作者:DevInten
项目:angular-cl
describe('random (80% cache hits)', () => {
beforeEach(() => {
cases = cases.map(x => (rng() < 0.8) ? cases[0] : x);
});
benchmark('', i => normalize(cases[i]), i => noCacheNormalize(cases[i]));
});
作者:DevInten
项目:angular-cl
describe('parserJson', () => {
benchmark('parseJsonAst', () => parseJsonAst(testCaseJson), () => JSON.parse(testCaseJson));
benchmark('parseJson', () => parseJson(testCaseJson));
});