Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
object keys vs stringify 3
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/142.0.0.0 Safari/537.36 Edg/142.0.0.0
Browser:
Chrome 142
Operating system:
Windows
Device Platform:
Desktop
Date tested:
5 months ago
Test name
Executions per second
stringify
1351647.2 Ops/sec
keys
565984.7 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
const fakeFlatObject = { id: 1, name: "John Doe", age: 28, email: "johndoe@example.com", phone: "123-456-7890", address: "123 Main St, Springfield", city: "Springfield", state: "IL", zip: "62704", country: "USA", isActive: true, lastLogin: "2025-01-01T10:00:00Z", profilePicture: "https://example.com/profile.jpg", jobTitle: "Software Engineer", department: "Development", company: "Tech Corp", salary: 75000, hobby1: "reading", hobby2: "cycling", hobby3: "hiking", skill1: "JavaScript", skill2: "React", skill3: "Node.js", manager: "Jane Smith", startDate: "2020-06-15", project1: "Project A", project2: "Project B", project3: "Project C", bio: "Passionate developer with a love for coding.", twitter: "@johndoe", linkedin: "linkedin.com/in/johndoe", isRemote: false, workHours: "9am-5pm", vacationDays: 20, language1: "English", language2: "Spanish", certification1: "AWS Certified Developer", certification2: "Scrum Master", degree: "Bachelor of Science", field: "Computer Science", university: "State University", graduationYear: 2018 };
Tests:
stringify
JSON.stringify(fakeFlatObject)
keys
const keysA = Object.keys(fakeFlatObject) const keysB = Object.keys(fakeFlatObject) for (let i = 0; i < keysA.length; i++) { const key = keysA[i]; if (keysB.indexOf(key) < 0) { return; } if (fakeFlatObject[key] !== fakeFlatObject[key]) { return; } }