Skip to content

Commit

Permalink
Add structuredClone() benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Apr 3, 2024
1 parent 20b3967 commit 23f268c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions bench/platform/structured-clone.bare+node+bun.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* global bench */

require('../harness')

const object = {
string: 'hello world',
number: 42,
boolean: true,
array: ['element'],
object: {
key: 'value'
}
}

bench('structuredClone()', () => {
structuredClone(object)
})

0 comments on commit 23f268c

Please sign in to comment.