Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
JSON-copy vs structuredClone on small-ish simple structures
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36 Edg/149.0.0.0
Browser:
Chrome 149
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one month ago
JSON-copy
190K/s
structuredClone
84K/s
View exact numbers
Test name
Executions per second
✓
JSON-copy
189,580 Ops/sec
structuredClone
83,784 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
let copy = null; const input = { "id": "user-8374", "name": "Alexandra Chen", "email": "alexandra.chen@example.com", "accountBalance": 15847.92, "createdAt": "2024-03-15T08:23:45Z", "isActive": true, "metadata": { "region": "us-west-2", "subscriptionTier": "premium", "monthlySpend": 249.5, "registrationSource": "mobile-app", "preferences": { "emailNotifications": true, "theme": "dark", "language": "en-US", "timezone": "America/Los_Angeles", "refreshRate": 30, "customSettings": { "dashboardLayout": "compact", "chartType": "line", "dataPoints": 120, "enablePredictions": true, "predictionConfidence": 0.87, "autoRefresh": true, "alerts": { "threshold": 5000, "escalationLevel": 2, "severity": "critical", "notifyAdmins": true, "delaySeconds": 300.5 } } } }, "transactions": [ { "txId": "tx-001", "amount": 127.43, "currency": "USD", "timestamp": "2024-06-20T14:32:10Z", "category": "subscription", "vendor": "CloudServices Inc", "details": { "invoiceNumber": "INV-2024-06-0847", "taxRate": 0.0825, "finalAmount": 137.93, "paymentMethod": "credit_card" } }, { "txId": "tx-002", "amount": 89.99, "currency": "USD", "timestamp": "2024-06-18T09:15:22Z", "category": "software", "vendor": "DevTools Pro", "details": { "invoiceNumber": "INV-2024-06-0848", "taxRate": 0.0825, "finalAmount": 97.43, "paymentMethod": "paypal" } }, { "txId": "tx-003", "amount": 2500, "currency": "USD", "timestamp": "2024-06-10T11:47:33Z", "category": "enterprise", "vendor": "Enterprise Solutions Ltd", "details": { "invoiceNumber": "INV-2024-06-0849", "taxRate": 0.1, "finalAmount": 2750, "paymentMethod": "bank_transfer" } } ], "analytics": { "pageViews": 4582, "uniqueVisitors": 1247, "conversionRate": 0.1234, "bounceRate": 0.3456, "avgSessionDuration": 342.78, "campaigns": [ { "name": "Summer2024", "impressions": 25000, "clicks": 1523, "ctr": 0.06092, "spend": 4500.75, "revenue": 18234.5 }, { "name": "ReTargeting", "impressions": 15000, "clicks": 892, "ctr": 0.05947, "spend": 2100.25, "revenue": 9876.33 } ] }, "security": { "lastPasswordChange": "2024-05-12T16:45:00Z", "mfaEnabled": true, "loginAttempts": 3, "failedLogins": 0, "riskScore": 0.12, "ipWhitelist": [ "192.168.1.100", "10.0.0.50", "203.45.67.89" ] } }
Tests:
JSON-copy
copy = JSON.parse(JSON.stringify(input))
structuredClone
copy = structuredClone(input)