Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
JSON vs JS
(version: 0)
Comparing performance of:
JSON vs JS
Created:
4 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script nonce="VoE8xYIYEN3EQpx6isHpYg==" type="application/json" data-serialize-box-id="h4GzErVDTJybCQTEmPd4NA==zykHJMKuSo2epoLszF6BoA==">{"fullscreenVariant":null,"enableSmallSuggestionImages":false,"advancedSearchCriterias":[{"checked":false,"id":"searchInDescriptionChange","label":"szukaj też w opisach ofert","queryParameter":{"value":"1","key":"description"}}],"enableCustomPerformanceMarks":true,"enableFullscreen":false,"enableRewriteSuggestionButton":true,"enableSuggesterHistory":true,"enableSuggestionRemovalButtonOnHover":false,"enableSuggestionsForEmptyPhrase":true,"filters":{"list":[{"name":"Wszystkie kategorie","url":"\u002Flisting","type":"ALL"},{"code":"household","name":"Dom i ogród","alias":"dom-i-ogrod","id":"5","leaf":false,"type":"DEPARTMENT","url":"\u002Fkategoria\u002Fdom-i-ogrod"},{"code":"baby","name":"Dziecko","alias":"dziecko","id":"11763","leaf":false,"type":"DEPARTMENT","url":"\u002Fkategoria\u002Fdziecko"},{"code":"electronics","name":"Elektronika","alias":"elektronika","id":"42540aec-367a-4e5e-b411-17c09b08e41f","leaf":false,"type":"DEPARTMENT","url":"\u002Fkategoria\u002Felektronika"},{"code":"company","name":"Firma i usługi","alias":"firma","id":"4bd97d96-f0ff-46cb-a52c-2992bd972bb1","leaf":false,"type":"DEPARTMENT","url":"\u002Fkategoria\u002Ffirma"},{"code":"collections.art","name":"Kolekcje i sztuka","alias":"kolekcje-i-sztuka","id":"a408e75a-cede-4587-8526-54e9be600d9f","leaf":false,"type":"DEPARTMENT","url":"\u002Fkategoria\u002Fkolekcje-i-sztuka"},{"code":"culture.entertainment","name":"Kultura i rozrywka","alias":"kultura-i-rozrywka","id":"38d588fd-7e9c-4c42-a4ae-6831775eca45","leaf":false,"type":"DEPARTMENT","url":"\u002Fkategoria\u002Fkultura-i-rozrywka"},{"code":"fashion.beauty","name":"Moda","alias":"moda","id":"ea5b98dd-4b6f-4bd0-8c80-22c2629132d0","leaf":false,"type":"DEPARTMENT","url":"\u002Fkategoria\u002Fmoda"},{"code":"automotive","name":"Motoryzacja","alias":"motoryzacja","id":"3","leaf":false,"type":"DEPARTMENT","url":"\u002Fkategoria\u002Fmotoryzacja"},{"code":"real.estate","name":"Nieruchomości","alias":"nieruchomosci","id":"20782","leaf":false,"type":"DEPARTMENT","url":"\u002Fkategoria\u002Fnieruchomosci"},{"code":"sports.leisure","name":"Sport i turystyka","alias":"sport-i-turystyka","id":"3919","leaf":false,"type":"DEPARTMENT","url":"\u002Fkategoria\u002Fsport-i-turystyka"},{"code":"supermarket","name":"Supermarket","alias":"supermarket","id":"258832","type":"DEPARTMENT","url":"\u002Fkategoria\u002Fsupermarket"},{"code":"beauty","name":"Uroda","alias":"uroda","id":"1429","leaf":false,"type":"DEPARTMENT","url":"\u002Fkategoria\u002Furoda"},{"code":"health","name":"Zdrowie","alias":"zdrowie","id":"121882","leaf":false,"type":"DEPARTMENT","url":"\u002Fkategoria\u002Fzdrowie"},{"name":"Cele charytatywne","url":"\u002Fcharytatywni\u002Fcele","type":"CHARITY_GOALS"},{"name":"Organizacje charytatywne","url":"\u002Fcharytatywni\u002Forganizacje","type":"CHARITY_ORGANIZATIONS"},{"name":"Sprzedawcy","url":"\u002Fuzytkownik","type":"USERS"},{"name":"Zakończone","url":"\u002Fzakonczone","type":"ENDED"}],"selected":0},"inputPhrase":"","staticQueryParameters":[]}</script>
Script Preparation code:
window.opbox = { boxProperties: {} };
Tests:
JSON
const element = document.querySelector('script[data-serialize-box-id="h4GzErVDTJybCQTEmPd4NA==zykHJMKuSo2epoLszF6BoA=="]'); const data = JSON.parse(element.innerText);
JS
window.opbox.boxProperties["h4GzErVDTJybCQTEmPd4NA==zykHJMKuSo2epoLszF6BoA=="] = { "fullscreenVariant": null, "enableSmallSuggestionImages": false, "advancedSearchCriterias": [ { "checked": false, "id": "searchInDescriptionChange", "label": "szukaj też w opisach ofert", "queryParameter": { "value": "1", "key": "description" } } ], "enableCustomPerformanceMarks": true, "enableFullscreen": false, "enableRewriteSuggestionButton": true, "enableSuggesterHistory": true, "enableSuggestionRemovalButtonOnHover": false, "enableSuggestionsForEmptyPhrase": true, "filters": { "list": [ { "name": "Wszystkie kategorie", "url": "/listing", "type": "ALL" }, { "code": "household", "name": "Dom i ogród", "alias": "dom-i-ogrod", "id": "5", "leaf": false, "type": "DEPARTMENT", "url": "/kategoria/dom-i-ogrod" }, { "code": "baby", "name": "Dziecko", "alias": "dziecko", "id": "11763", "leaf": false, "type": "DEPARTMENT", "url": "/kategoria/dziecko" }, { "code": "electronics", "name": "Elektronika", "alias": "elektronika", "id": "42540aec-367a-4e5e-b411-17c09b08e41f", "leaf": false, "type": "DEPARTMENT", "url": "/kategoria/elektronika" }, { "code": "company", "name": "Firma i usługi", "alias": "firma", "id": "4bd97d96-f0ff-46cb-a52c-2992bd972bb1", "leaf": false, "type": "DEPARTMENT", "url": "/kategoria/firma" }, { "code": "collections.art", "name": "Kolekcje i sztuka", "alias": "kolekcje-i-sztuka", "id": "a408e75a-cede-4587-8526-54e9be600d9f", "leaf": false, "type": "DEPARTMENT", "url": "/kategoria/kolekcje-i-sztuka" }, { "code": "culture.entertainment", "name": "Kultura i rozrywka", "alias": "kultura-i-rozrywka", "id": "38d588fd-7e9c-4c42-a4ae-6831775eca45", "leaf": false, "type": "DEPARTMENT", "url": "/kategoria/kultura-i-rozrywka" }, { "code": "fashion.beauty", "name": "Moda", "alias": "moda", "id": "ea5b98dd-4b6f-4bd0-8c80-22c2629132d0", "leaf": false, "type": "DEPARTMENT", "url": "/kategoria/moda" }, { "code": "automotive", "name": "Motoryzacja", "alias": "motoryzacja", "id": "3", "leaf": false, "type": "DEPARTMENT", "url": "/kategoria/motoryzacja" }, { "code": "real.estate", "name": "Nieruchomości", "alias": "nieruchomosci", "id": "20782", "leaf": false, "type": "DEPARTMENT", "url": "/kategoria/nieruchomosci" }, { "code": "sports.leisure", "name": "Sport i turystyka", "alias": "sport-i-turystyka", "id": "3919", "leaf": false, "type": "DEPARTMENT", "url": "/kategoria/sport-i-turystyka" }, { "code": "supermarket", "name": "Supermarket", "alias": "supermarket", "id": "258832", "type": "DEPARTMENT", "url": "/kategoria/supermarket" }, { "code": "beauty", "name": "Uroda", "alias": "uroda", "id": "1429", "leaf": false, "type": "DEPARTMENT", "url": "/kategoria/uroda" }, { "code": "health", "name": "Zdrowie", "alias": "zdrowie", "id": "121882", "leaf": false, "type": "DEPARTMENT", "url": "/kategoria/zdrowie" }, { "name": "Cele charytatywne", "url": "/charytatywni/cele", "type": "CHARITY_GOALS" }, { "name": "Organizacje charytatywne", "url": "/charytatywni/organizacje", "type": "CHARITY_ORGANIZATIONS" }, { "name": "Sprzedawcy", "url": "/uzytkownik", "type": "USERS" }, { "name": "Zakończone", "url": "/zakonczone", "type": "ENDED" } ], "selected": 0 }, "inputPhrase": "", "staticQueryParameters": [] }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
JSON
JS
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Autogenerated LLM Summary
(model
gemma2:9b
, generated one year ago):
The provided data shows benchmark results for two tests: "JS" and "JSON". Here's a breakdown: **JS Test:** * **Browser:** Chrome 100 * **Device Platform:** Desktop * **Operating System:** Windows * **Executions Per Second:** 581,379.25 **JSON Test:** * **Browser:** Chrome 100 * **Device Platform:** Desktop * **Operating System:** Windows * **Executions Per Second:** 67,183.7578125 This data suggests that: * **Chrome 100 performs well on both JS and JSON tests.** The "JS" test shows significantly higher execution speed compared to the "JSON" test. This could indicate that Chrome's JavaScript engine is more optimized than its JSON parsing engine, or that the specific "JS" test code is simpler and executes faster. Let me know if you have any further questions or want a deeper analysis of this data!
Related benchmarks:
Lodash cloneDeep vs JSON Clone 121212121
JSON vs JS v2
Benchmark lodash vs JSON
JSON.stringify vs structuredClone large one
Comments
Confirm delete:
Do you really want to delete benchmark?