/* eslint-disable no-unused-vars */
-const Benchmark = require('benny')
-const _ = require('lodash')
-const clone = require('just-clone')
-const { generateRandomObject } = require('./benchmark-utils')
+import Benchmark from 'benny'
+import _ from 'lodash'
+import clone from 'just-clone'
+import deepClone from 'deep-clone'
+import { generateRandomObject } from './benchmark-utils.js'
const object = generateRandomObject()
Benchmark.add('just-clone', (obj = object) => {
const objClone = clone(obj)
}),
+ Benchmark.add('deep-clone', (obj = object) => {
+ const objClone = deepClone(obj)
+ }),
Benchmark.cycle(),
Benchmark.complete(),
Benchmark.save({