Skip to content

Commit

Permalink
fix casting benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Jan 24, 2022
1 parent 2e01e99 commit d073803
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions benchmarks/benchjs/casting.js
Expand Up @@ -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',
Expand Down Expand Up @@ -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', {
Expand Down

0 comments on commit d073803

Please sign in to comment.