From 0b38a039d0565cfc7beb010a87f897bece0cffde Mon Sep 17 00:00:00 2001 From: Marc Laval Date: Fri, 12 Jan 2018 14:59:50 +0100 Subject: [PATCH] perf(ivy): add a proper creationOnly scenario to the tree benchmark (#21503) PR Close #21503 --- modules/benchmarks/e2e_test/tree_perf.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/benchmarks/e2e_test/tree_perf.ts b/modules/benchmarks/e2e_test/tree_perf.ts index 6040106382..07d700a3e9 100644 --- a/modules/benchmarks/e2e_test/tree_perf.ts +++ b/modules/benchmarks/e2e_test/tree_perf.ts @@ -23,6 +23,7 @@ describe('tree benchmark perf', () => { Benchmarks.forEach(benchmark => { describe(benchmark.id, () => { + // This is actually a destroyOnly benchmark it('should work for createOnly', (done) => { runTreeBenchmark({ id: 'createOnly', @@ -32,6 +33,15 @@ describe('tree benchmark perf', () => { }).then(done, done.fail); }); + it('should work for createOnlyForReal', (done) => { + runTreeBenchmark({ + id: 'createOnlyForReal', + benchmark, + prepare: () => $(DestroyBtn).click(), + work: () => $(CreateBtn).click() + }).then(done, done.fail); + }); + it('should work for createDestroy', (done) => { runTreeBenchmark({ id: 'createDestroy',