Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
RFDC vs. Object Assign
Even though this isn't a fair comparison since we're not talking deep cloning, this is a benchmark to see if RFDC can be used in any case, deep cloning or not.
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0
Browser:
Firefox 123
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
Object Assign
50.6M/s
RFDC Clone
12.9M/s
View exact numbers
Test name
Executions per second
✓
Object Assign
50,565,388 Ops/sec
RFDC Clone
12,853,832 Ops/sec
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/rfdc@1.3.0/index.min.js"></script>
Script Preparation code:
var originalObj = { key: 12345, name: 'Original Object', isTrue: true }; var clonedObj = null;
Tests:
RFDC Clone
var clone = rfdc(); clonedObj = clone(originalObj);
Object Assign
clonedObj = Object.assign({}, originalObj);