From d073803d9f0de003ab449ed05f5a89fde8d47abc Mon Sep 17 00:00:00 2001 From: uzlopak Date: Mon, 24 Jan 2022 08:17:34 +0100 Subject: [PATCH] fix casting benchmark --- benchmarks/benchjs/casting.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/benchmarks/benchjs/casting.js b/benchmarks/benchjs/casting.js index 99edf88583d..9d2809f0fc4 100644 --- a/benchmarks/benchjs/casting.js +++ b/benchmarks/benchjs/casting.js @@ -48,6 +48,12 @@ const BlogPost = new Schema({ default: 'kandinsky' } }); +const commentData = { + title: 'test comment', + date: new Date(), + body: 'this be some crazzzyyyyy text that would go in a comment', + comments: [{title: 'second level', date: new Date(), body: 'texttt'}] +}; const blogData = { title: 'dummy post', @@ -84,12 +90,6 @@ for (let i = 0; i < 1000; i++) { for (let i = 0; i < 10000; i++) { blogData10000.comments.push(commentData); } -const commentData = { - title: 'test comment', - date: new Date(), - body: 'this be some crazzzyyyyy text that would go in a comment', - comments: [{title: 'second level', date: new Date(), body: 'texttt'}] -}; mongoose.model('BlogPost', BlogPost); suite.add('Casting - Embedded Docs - 0 Docs', {