Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Object equality compare
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Browser:
Chrome 135
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
lodash
59907.0 Ops/sec
JSON stringify
260483.0 Ops/sec
deep equal
193381.7 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here--> <script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js'></script> <script src="https://cdn.jsdelivr.net/npm/fast-equals@5.2.2/dist/umd/index.min.js"></script>
Script Preparation code:
/*your preparation JavaScript code goes here To execute async code during the script preparation, wrap it as function globalMeasureThatScriptPrepareFunction, example:*/ async function globalMeasureThatScriptPrepareFunction() { window.bigJsObject1 = { metadata: { createdAt: "2023-11-15T08:42:17Z", lastModified: "2023-11-20T14:30:45Z", version: "3.7.2", author: { name: "Jane Developer", email: "jane@example.com", team: "Frontend Engineering", department: "Product Development", contact: { office: "+1 (555) 123-4567", mobile: "+1 (555) 987-6543", emergency: { name: "John Manager", phone: "+1 (555) 789-0123" } } } }, applicationConfig: { environment: "production", features: { darkMode: true, experimental: { aiIntegration: false, voiceControl: true, newDashboard: { enabled: true, rolloutPercentage: 15 } }, analytics: { enabled: true, providers: ["google", "amplitude", "mixpanel"] } }, apiEndpoints: { baseUrl: "https://api.example.com/v3", services: { auth: "/auth", users: "/users", products: { base: "/products", search: "/products/search", categories: "/products/categories", inventory: "/products/inventory" }, orders: "/orders" } } }, userData: { currentUser: { id: "usr_5f8d04a7e3b2c1", username: "johndoe84", profile: { firstName: "John", lastName: "Doe", age: 37, birthDate: "1986-05-22", addresses: [ { type: "home", street: "123 Main St", city: "Anytown", state: "CA", zip: "90210", country: "USA", isPrimary: true }, { type: "work", street: "456 Business Ave", city: "Techville", state: "CA", zip: "90211", country: "USA", isPrimary: false } ], preferences: { theme: "dark", language: "en-US", notifications: { email: true, sms: false, push: true, frequency: "daily" } } }, account: { status: "active", createdAt: "2021-03-15", lastLogin: "2023-11-20T08:15:32Z", subscription: { type: "premium", renewalDate: "2024-03-15", paymentMethod: "credit_card", history: [ { date: "2021-03-15", plan: "basic", amount: 9.99 }, { date: "2022-03-15", plan: "premium", amount: 19.99 } ] } } }, recentUsers: [ { id: "usr_6a3b9c8d2e1f0", username: "alicesmith", lastActive: "2023-11-19T16:45:12Z" }, { id: "usr_4b5c6d7e8f9a0", username: "bobjohnson", lastActive: "2023-11-18T11:22:33Z" } ] }, productCatalog: { categories: [ { id: "cat_1", name: "Electronics", products: [ { id: "prod_101", name: "Smartphone X", price: 899.99, specs: { storage: "128GB", color: "Space Gray", dimensions: { height: "150.9 mm", width: "75.7 mm", depth: "8.3 mm" } }, inventory: 42 }, { id: "prod_102", name: "Wireless Earbuds", price: 129.99, specs: { color: "White", batteryLife: "24 hours" }, inventory: 87 } ] }, { id: "cat_2", name: "Home & Kitchen", products: [ { id: "prod_201", name: "Smart Coffee Maker", price: 149.99, specs: { capacity: "12 cups", features: ["Programmable", "Wi-Fi Enabled"] }, inventory: 23 } ] } ], featuredProducts: ["prod_101", "prod_201"], onSale: { discountPercentage: 15, products: ["prod_102"] } }, analytics: { monthlyStats: { "2023-10": { users: 15432, revenue: 125432.76, topProducts: ["prod_101", "prod_102", "prod_201"] }, "2023-09": { users: 14215, revenue: 118765.43, topProducts: ["prod_101", "prod_201", "prod_102"] } }, userEngagement: { averageSessionDuration: "4m 32s", pagesPerSession: 5.7, retention: { day7: 0.42, day30: 0.28 } } }, systemInfo: { server: { name: "aws-prod-web-03", region: "us-west-2", specs: { cpu: "16 cores", memory: "64GB", storage: "2TB SSD" }, load: { cpu: 0.42, memory: 0.68 } }, dependencies: { database: { type: "MongoDB", version: "5.0", size: "1.2TB" }, cache: { type: "Redis", version: "6.2", memoryAllocated: "8GB" } } } }; window.bigJsObject2 = { metadata: { createdAt: "2023-11-15T08:42:17Z", lastModified: "2023-11-20T14:30:45Z", version: "3.7.2", author: { name: "Jane Developer", email: "jane@example.com", team: "Frontend Engineering", department: "Product Development", contact: { office: "+1 (555) 123-4567", mobile: "+1 (555) 987-6543", emergency: { name: "John Manager", phone: "+1 (555) 789-0123" } } } }, applicationConfig: { environment: "production", features: { darkMode: true, experimental: { aiIntegration: false, voiceControl: true, newDashboard: { enabled: true, rolloutPercentage: 15 } }, analytics: { enabled: true, providers: ["google", "amplitude", "mixpanel"] } }, apiEndpoints: { baseUrl: "https://api.example.com/v3", services: { auth: "/auth", users: "/users", products: { base: "/products", search: "/products/search", categories: "/products/categories", inventory: "/products/inventory" }, orders: "/orders" } } }, userData: { currentUser: { id: "usr_5f8d04a7e3b2c1", username: "johndoe84", profile: { firstName: "John", lastName: "Doe", age: 37, birthDate: "1986-05-22", addresses: [ { type: "home", street: "123 Main St", city: "Anytown", state: "CA", zip: "90210", country: "USA", isPrimary: true }, { type: "work", street: "456 Business Ave", city: "Techville", state: "CA", zip: "90211", country: "USA", isPrimary: false } ], preferences: { theme: "dark", language: "en-US", notifications: { email: true, sms: false, push: true, frequency: "daily" } } }, account: { status: "active", createdAt: "2021-03-15", lastLogin: "2023-11-20T08:15:32Z", subscription: { type: "premium", renewalDate: "2024-03-15", paymentMethod: "credit_card", history: [ { date: "2021-03-15", plan: "basic", amount: 9.99 }, { date: "2022-03-15", plan: "premium", amount: 19.99 } ] } } }, recentUsers: [ { id: "usr_6a3b9c8d2e1f0", username: "alicesmith", lastActive: "2023-11-19T16:45:12Z" }, { id: "usr_4b5c6d7e8f9a0", username: "bobjohnson", lastActive: "2023-11-18T11:22:33Z" } ] }, productCatalog: { categories: [ { id: "cat_1", name: "Electronics", products: [ { id: "prod_101", name: "Smartphone X", price: 899.99, specs: { storage: "128GB", color: "Space Gray", dimensions: { height: "150.9 mm", width: "75.7 mm", depth: "8.3 mm" } }, inventory: 42 }, { id: "prod_102", name: "Wireless Earbuds", price: 129.99, specs: { color: "White", batteryLife: "24 hours" }, inventory: 87 } ] }, { id: "cat_2", name: "Home & Kitchen", products: [ { id: "prod_201", name: "Smart Coffee Maker", price: 149.99, specs: { capacity: "12 cups", features: ["Programmable", "Wi-Fi Enabled"] }, inventory: 23 } ] } ], featuredProducts: ["prod_101", "prod_201"], onSale: { discountPercentage: 15, products: ["prod_102"] } }, analytics: { monthlyStats: { "2023-10": { users: 15432, revenue: 125432.76, topProducts: ["prod_101", "prod_102", "prod_201"] }, "2023-09": { users: 14215, revenue: 118765.43, topProducts: ["prod_101", "prod_201", "prod_102"] } }, userEngagement: { averageSessionDuration: "4m 32s", pagesPerSession: 5.7, retention: { day7: 0.42, day30: 0.28 } } }, systemInfo: { server: { name: "aws-prod-web-03", region: "us-west-2", specs: { cpu: "16 cores", memory: "64GB", storage: "2TB SSD" }, load: { cpu: 0.42, memory: 0.68 } }, dependencies: { database: { type: "MongoDB", version: "5.0", size: "1.2TB" }, cache: { type: "Redis", version: "6.2", memoryAllocated: "8GB" } } } }; window.bigJsObject1Str = JSON.stringify(window.bigJsObject1); }
Tests:
lodash
_.isEqual(window.bigJsObject1, window.bigJsObject2)
JSON stringify
JSON.stringify(window.bigJsObject2) === window.bigJsObject1Str
deep equal
window["fast-equals"].deepEqual(window.bigJsObject1, window.bigJsObject2)