Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
JSON.stringify vs structuredClone 1
(version: 1)
JSON.stringify vs structuredClone
Comparing performance of:
JSON.stringify vs structuredClone
Created:
8 months ago
by:
Guest
Jump to the latest result
Script Preparation code:
var MyObject = { description: 'Creates a deep copy of source, which should be an object or an array.', myNumber: 123456789, myBoolean: true, jayson: { stringify: 'JSON.stringify() method converts a JavaScript value to a JSON string....', parse: 'JSON.parse() method parses a JSON string...' }, "features": [{ "type": "Feature", "properties": { "id": 101, "type": 3, "name": "вул. Борщагівська", "lat": 50.442636, "lng": 30.442573, "objectid": 11631, "district": "Солом'янський", "address": "вул. Гетьмана, 34", "coord": "50.44409 , 30.43088", "type_2": "Споруди подвійного призначення", "kind": "Підвал", "type_building": "Житловий будинок", "owner": "ЖЕД № 906 «КК з ОЖФ Солом’янського району м.Києва", "type_ownership": "Комунальна", "tel": "044 453 18 25, 044 457 88 88", "invalid": "Відсутній", "description": "Доступ надається в робочий час з 10:00 до 18:00", "lat_2": 50.44251936000001, "long": 30.44246178, "phonenumb": "<a href=tel:0444531825>0444531825</a>,<a href=tel:0444578888>0444578888</a>", "title": "Житловий будинок", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=вул. Гетьмана, 34 | {9C011A9B-330C-42CF-9D1D-C1BE93C229AF}&entry.425050329=Солом'янський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": "вул. Гетьмана, 34", "guid": "{9C011A9B-330C-42CF-9D1D-C1BE93C229AF}", "actual": 1, "working_time": "10:00–18:00", "distance": 23.852557383872131 }, "geometry": { "type": "Point", "coordinates": [30.442573, 50.442636] } }, { "type": "Feature", "properties": { "id": 102, "type": 3, "name": "вул. Борщагівська", "lat": 50.443744, "lng": 30.442483, "objectid": 12841, "district": "Солом'янський", "address": "вул. Борщагівська (Редукторний завод)", "coord": "50.44413165751507, 30.44238005689373", "type_2": "Споруди подвійного призначення", "kind": "Підземний перехід", "type_building": "Підземний перехід", "owner": "КП ШЕУ Солом’янського району", "type_ownership": "Комунальна", "tel": "", "invalid": "Відсутній", "description": "-", "lat_2": 50.444132, "long": 30.44238, "phonenumb": "", "title": "Підземний перехід", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=вул. Борщагівська / Редукторний завод | {098C17EF-CF4B-4558-A4A1-0127493CAEB1}&entry.425050329=Солом'янський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": " ", "guid": "{098C17EF-CF4B-4558-A4A1-0127493CAEB1}", "actual": 1, "working_time": "Цілодобово", "distance": 68.785431043531361 }, "geometry": { "type": "Point", "coordinates": [30.442483, 50.443744] } }, { "type": "Feature", "properties": { "id": 103, "type": 3, "name": "вул. Олекси Тихого", "lat": 50.449146, "lng": 30.443458, "objectid": 13087, "district": "Солом'янський", "address": "вул. Олекси Тихого, 38/19", "coord": "50.448897238771295, 30.443967212354416", "type_2": "Споруди подвійного призначення", "kind": "Підвал", "type_building": "Багатоквартирний будинок", "owner": "Приватна форма власності", "type_ownership": "Приватна", "tel": "", "invalid": "Відсутній", "description": "Доступ надається в робочий час з 10:00 до 18:00", "lat_2": 50.448897, "long": 30.443967, "phonenumb": "", "title": "Багатоквартирний будинок", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=вул. Олекси Тихого, 38/19 | {5B2214A8-97B8-441B-A429-30E387F1BFF6}&entry.425050329=Солом'янський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": " ", "guid": "{5B2214A8-97B8-441B-A429-30E387F1BFF6}", "actual": 1, "working_time": "10:00–18:00", "distance": 71.452268510236578 }, "geometry": { "type": "Point", "coordinates": [30.443458, 50.449146] } }, { "type": "Feature", "properties": { "id": 104, "type": 3, "name": "вул. Олекси Тихого", "lat": 50.448083, "lng": 30.44358, "objectid": 12966, "district": "Солом'янський", "address": "вул. Олекси Тихого", "coord": "50.4483905, 30.4431341", "type_2": "Споруди подвійного призначення", "kind": "Підземний перехід", "type_building": "Підземний перехід", "owner": "КП ШЕУ Солом’янського району", "type_ownership": "Комунальна", "tel": "", "invalid": "Відсутній", "description": "-", "lat_2": 50.448394, "long": 30.443137, "phonenumb": "", "title": "Підземний перехід", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=вул. Тихого | {F1ACC514-EE4F-4EF4-8A9D-B64629C3BF84}&entry.425050329=Солом'янський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": " ", "guid": "{F1ACC514-EE4F-4EF4-8A9D-B64629C3BF84}", "actual": 1, "working_time": "Цілодобово", "distance": 73.240220688603301 }, "geometry": { "type": "Point", "coordinates": [30.44358, 50.448083] } }, { "type": "Feature", "properties": { "id": 106, "type": 3, "name": "вул. Вадима Гетьмана", "lat": 50.451108, "lng": 30.444201, "objectid": 21013, "district": "Солом'янський", "address": "вул. Вадима Гетьмана, 6", "coord": "50.45008966905679, 30.442977863894477", "type_2": "Найпростіші укриття", "kind": "Підземний паркінг", "type_building": "Торговий центр", "owner": "Приватна форма власності", "type_ownership": "Приватна", "tel": null, "invalid": "Відсутній", "description": null, "lat_2": 50.45008967, "long": 30.44297786, "phonenumb": null, "title": "Торговий центр", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=вулиця Вадима Гетьмана, 6 | {07F6DF0D-52CE-4A57-BB21-363F69800CEF}&entry.425050329=Солом'янський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": null, "guid": "{07F6DF0D-52CE-4A57-BB21-363F69800CEF}", "actual": 1, "working_time": "Цілодобово", "distance": 224.1300989479796 }, "geometry": { "type": "Point", "coordinates": [30.444201, 50.451108] } }, { "type": "Feature", "properties": { "id": 107, "type": 3, "name": "ст. м. Шулявська", "lat": 50.456794, "lng": 30.446982, "objectid": 11847, "district": "Шевченківський", "address": "вул. Олександра Довженка, 2", "coord": "50.4564746, 30.4465773", "type_2": "Споруди подвійного призначення", "kind": "Підземний перехід з пандусом", "type_building": "Підземний перехід", "owner": "КП ШЕУ Шевченківського району", "type_ownership": "Комунальна", "tel": "063 849 50 84, 044 529 97 20", "invalid": "В наявності", "description": "-", "lat_2": 50.456475, "long": 30.446577, "phonenumb": "<a href=tel:0638495084>0638495084</a>,<a href=tel:0445299720>0445299720</a>", "title": "Підземний перехід", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=вул. Довженка, 2 | {21220B08-46D4-4818-8860-C887EAD93F5E}&entry.425050329=Шевченківський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": "вул. Довженка, 2", "guid": "{21220B08-46D4-4818-8860-C887EAD93F5E}", "actual": 1, "working_time": "Цілодобово", "distance": 71.719205171040784 }, "geometry": { "type": "Point", "coordinates": [30.446982, 50.456794] } }, { "type": "Feature", "properties": { "id": 109, "type": 3, "name": "вул. Дегтярівська", "lat": 50.460736, "lng": 30.446968, "objectid": 13141, "district": "Шевченківський", "address": "вул. Олександра Довженка, 7", "coord": "50.4605095, 30.4472403", "type_2": "Найпростіше укриття", "kind": "Підземний перехід", "type_building": "Підземний перехід", "owner": "КП ШЕУ Шевченківського району", "type_ownership": "Комунальна", "tel": "063 849 50 84, 044 529 97 20", "invalid": "Відсутній", "description": "-", "lat_2": 50.46051, "long": 30.44724, "phonenumb": "<a href=tel:0638495084>0638495084</a>,<a href=tel:0445299720>0445299720</a>", "title": "Підземний перехід", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=вул. Довженка, 7 | {B8FAC370-7260-4F19-81B0-441358BDB1FE}&entry.425050329=Шевченківський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": " ", "guid": "{B8FAC370-7260-4F19-81B0-441358BDB1FE}", "actual": 1, "working_time": "Цілодобово", "distance": 49.785268772860547 }, "geometry": { "type": "Point", "coordinates": [30.446968, 50.460736] } }, { "type": "Feature", "properties": { "id": 110, "type": 3, "name": "вул. Дегтярівська", "lat": 50.460914, "lng": 30.44739, "objectid": 13141, "district": "Шевченківський", "address": "вул. Олександра Довженка, 7", "coord": "50.4605095, 30.4472403", "type_2": "Найпростіше укриття", "kind": "Підземний перехід", "type_building": "Підземний перехід", "owner": "КП ШЕУ Шевченківського району", "type_ownership": "Комунальна", "tel": "063 849 50 84, 044 529 97 20", "invalid": "Відсутній", "description": "-", "lat_2": 50.46051, "long": 30.44724, "phonenumb": "<a href=tel:0638495084>0638495084</a>,<a href=tel:0445299720>0445299720</a>", "title": "Підземний перехід", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=вул. Довженка, 7 | {B8FAC370-7260-4F19-81B0-441358BDB1FE}&entry.425050329=Шевченківський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": " ", "guid": "{B8FAC370-7260-4F19-81B0-441358BDB1FE}", "actual": 1, "working_time": "Цілодобово", "distance": 72.591513617558562 }, "geometry": { "type": "Point", "coordinates": [30.44739, 50.460914] } }, { "type": "Feature", "properties": { "id": 111, "type": 3, "name": "вул. Івана Гонти", "lat": 50.464053, "lng": 30.446867, "objectid": 13222, "district": "Шевченківський", "address": "вул. Олени Теліги, 1", "coord": "50.4649034, 30.4470322", "type_2": "Найпростіше укриття", "kind": "Підземний перехід", "type_building": "Підземний перехід", "owner": "КП ШЕУ Шевченківського району", "type_ownership": "Комунальна", "tel": "063 849 50 84, 044 529 97 20", "invalid": "Відсутній", "description": "-", "lat_2": 50.464903, "long": 30.447032, "phonenumb": "<a href=tel:0638495084>0638495084</a>,<a href=tel:0445299720>0445299720</a>", "title": "Підземний перехід", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=вул. Теліги, 1 | {50100467-1253-447A-8A55-714B233073F5}&entry.425050329=Шевченківський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": " ", "guid": "{50100467-1253-447A-8A55-714B233073F5}", "actual": 1, "working_time": "Цілодобово", "distance": 149.77650823135551 }, "geometry": { "type": "Point", "coordinates": [30.446867, 50.464053] } }, { "type": "Feature", "properties": { "id": 112, "type": 3, "name": "вул. Івана Гонти", "lat": 50.465463, "lng": 30.447156, "objectid": 13222, "district": "Шевченківський", "address": "вул. Олени Теліги, 1", "coord": "50.4649034, 30.4470322", "type_2": "Найпростіше укриття", "kind": "Підземний перехід", "type_building": "Підземний перехід", "owner": "КП ШЕУ Шевченківського району", "type_ownership": "Комунальна", "tel": "063 849 50 84, 044 529 97 20", "invalid": "Відсутній", "description": "-", "lat_2": 50.464903, "long": 30.447032, "phonenumb": "<a href=tel:0638495084>0638495084</a>,<a href=tel:0445299720>0445299720</a>", "title": "Підземний перехід", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=вул. Теліги, 1 | {50100467-1253-447A-8A55-714B233073F5}&entry.425050329=Шевченківський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": " ", "guid": "{50100467-1253-447A-8A55-714B233073F5}", "actual": 1, "working_time": "Цілодобово", "distance": 98.900957222831821 }, "geometry": { "type": "Point", "coordinates": [30.447156, 50.465463] } }, { "type": "Feature", "properties": { "id": 113, "type": 3, "name": "Бабин Яр", "lat": 50.470933, "lng": 30.44734, "objectid": 13224, "district": "Шевченківський", "address": "вул. Олени Теліги, 13/14", "coord": "50.4706319, 30.4468559", "type_2": "Найпростіше укриття", "kind": "Підземний перехід з пандусом", "type_building": "Підземний перехід", "owner": "КП ШЕУ Шевченківського району", "type_ownership": "Комунальна", "tel": "063 849 50 84, 044 529 97 20", "invalid": "В наявності", "description": "-", "lat_2": 50.470632, "long": 30.446856, "phonenumb": "<a href=tel:0638495084>0638495084</a>,<a href=tel:0445299720>0445299720</a>", "title": "Підземний перехід", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=вул. Теліги, 13/14 | {2905B5AD-2068-4F5D-B251-02D55687A910}&entry.425050329=Шевченківський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": " ", "guid": "{2905B5AD-2068-4F5D-B251-02D55687A910}", "actual": 1, "working_time": "Цілодобово", "distance": 75.32876433458695 }, "geometry": { "type": "Point", "coordinates": [30.44734, 50.470933] } }, { "type": "Feature", "properties": { "id": 114, "type": 3, "name": "Бабин Яр", "lat": 50.46943, "lng": 30.446492, "objectid": 13223, "district": "Шевченківський", "address": "вул. Олени Теліги, 11", "coord": "50.4694173, 30.4462271", "type_2": "Найпростіше укриття", "kind": "Підвал", "type_building": "Багатоквартирний будинок", "owner": "Комунальне підприємство \"Керуюча компанія з обслуговування житлового фонду Шевченківського району м. Києва\"", "type_ownership": "Комунальна", "tel": "044 500 81 03", "invalid": "Відсутній", "description": "-", "lat_2": 50.469417, "long": 30.446227, "phonenumb": "<a href=tel:0445008103>0445008103</a>", "title": "Багатоквартирний будинок", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=вул. Теліги, 11 | {0E6F24FA-439E-4E69-97C4-7D2BA5105C60}&entry.425050329=Шевченківський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": " ", "guid": "{0E6F24FA-439E-4E69-97C4-7D2BA5105C60}", "actual": 1, "working_time": "Цілодобово", "distance": 29.58715445489003 }, "geometry": { "type": "Point", "coordinates": [30.446492, 50.46943] } }, { "type": "Feature", "properties": { "id": 115, "type": 3, "name": "ст. м. Дорогожичі", "lat": 50.474017, "lng": 30.44848, "objectid": 13299, "district": "Шевченківський", "address": "Станція метро «Дорогожичі»", "coord": "50.4735527, 30.4485261", "type_2": "Споруди подвійного призначення", "kind": "Станція метрополітену", "type_building": "Станція метрополітену", "owner": "КП «Київський метрополітен»", "type_ownership": "Комунальна", "tel": "044 238 57 10, 044 238 44 21", "invalid": "Відсутній", "description": "-", "lat_2": 50.473553, "long": 30.448526, "phonenumb": "<a href=tel:0442385710>0442385710</a>,<a href=tel:0442384421>0442384421</a>", "title": "Станція метрополітену", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=Станція метро «Дорогожичі» | {5B9D3225-4EB3-4C29-BE8C-CC607F502481}&entry.425050329=Шевченківський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": " ", "guid": "{5B9D3225-4EB3-4C29-BE8C-CC607F502481}", "actual": 1, "working_time": "Цілодобово", "distance": 81.32057798440897 }, "geometry": { "type": "Point", "coordinates": [30.44848, 50.474017] } }, { "type": "Feature", "properties": { "id": 116, "type": 3, "name": "ст. м. Дорогожичі", "lat": 50.472948, "lng": 30.447288, "objectid": 13299, "district": "Шевченківський", "address": "Станція метро «Дорогожичі»", "coord": "50.4735527, 30.4485261", "type_2": "Споруди подвійного призначення", "kind": "Станція метрополітену", "type_building": "Станція метрополітену", "owner": "КП «Київський метрополітен»", "type_ownership": "Комунальна", "tel": "044 238 57 10, 044 238 44 21", "invalid": "Відсутній", "description": "-", "lat_2": 50.473553, "long": 30.448526, "phonenumb": "<a href=tel:0442385710>0442385710</a>,<a href=tel:0442384421>0442384421</a>", "title": "Станція метрополітену", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=Станція метро «Дорогожичі» | {5B9D3225-4EB3-4C29-BE8C-CC607F502481}&entry.425050329=Шевченківський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": " ", "guid": "{5B9D3225-4EB3-4C29-BE8C-CC607F502481}", "actual": 1, "working_time": "Цілодобово", "distance": 173.75433222395668 }, "geometry": { "type": "Point", "coordinates": [30.447288, 50.472948] } }, { "type": "Feature", "properties": { "id": 117, "type": 3, "name": "вул. Олени Теліги", "lat": 50.477665, "lng": 30.450995, "objectid": 13229, "district": "Шевченківський", "address": "вул. Олени Теліги, 31/1", "coord": "50.4774549, 30.4505185", "type_2": "Найпростіше укриття", "kind": "Підземний перехід з пандусом", "type_building": "Підземний перехід", "owner": "КП ШЕУ Шевченківського району", "type_ownership": "Комунальна", "tel": "063 849 50 84, 044 529 97 20", "invalid": "В наявності", "description": "-", "lat_2": 50.477455, "long": 30.450519, "phonenumb": "<a href=tel:0638495084>0638495084</a>,<a href=tel:0445299720>0445299720</a>", "title": "Підземний перехід", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=вул. Теліги, 31/1 | {361B6C36-DA63-4755-A8D1-255C4179D679}&entry.425050329=Шевченківський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": " ", "guid": "{361B6C36-DA63-4755-A8D1-255C4179D679}", "actual": 1, "working_time": "Цілодобово", "distance": 64.476021273559383 }, "geometry": { "type": "Point", "coordinates": [30.450995, 50.477665] } }, { "type": "Feature", "properties": { "id": 118, "type": 3, "name": "вул. Олени Теліги", "lat": 50.477166, "lng": 30.449919, "objectid": 13229, "district": "Шевченківський", "address": "вул. Олени Теліги, 31/1", "coord": "50.4774549, 30.4505185", "type_2": "Найпростіше укриття", "kind": "Підземний перехід з пандусом", "type_building": "Підземний перехід", "owner": "КП ШЕУ Шевченківського району", "type_ownership": "Комунальна", "tel": "063 849 50 84, 044 529 97 20", "invalid": "В наявності", "description": "-", "lat_2": 50.477455, "long": 30.450519, "phonenumb": "<a href=tel:0638495084>0638495084</a>,<a href=tel:0445299720>0445299720</a>", "title": "Підземний перехід", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=вул. Теліги, 31/1 | {361B6C36-DA63-4755-A8D1-255C4179D679}&entry.425050329=Шевченківський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": " ", "guid": "{361B6C36-DA63-4755-A8D1-255C4179D679}", "actual": 1, "working_time": "Цілодобово", "distance": 83.766175273553401 }, "geometry": { "type": "Point", "coordinates": [30.449919, 50.477166] } }, { "type": "Feature", "properties": { "id": 119, "type": 3, "name": "Парк відпочинку", "lat": 50.47955, "lng": 30.453348, "objectid": 13230, "district": "Шевченківський", "address": "вул. Олени Теліги, 35", "coord": "50.4789885, 30.4513261", "type_2": "Найпростіше укриття", "kind": "Підвал", "type_building": "Багатоквартирний будинок", "owner": "Комунальне підприємство \"Керуюча компанія з обслуговування житлового фонду Шевченківського району м. Києва\"", "type_ownership": "Комунальна", "tel": "044 500 81 03", "invalid": "Відсутній", "description": "-", "lat_2": 50.478988, "long": 30.451326, "phonenumb": "<a href=tel:0445008103>0445008103</a>", "title": "Багатоквартирний будинок", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=вул. Теліги, 35 | {DE134552-27BF-4B4C-89C8-9891B0EE9086}&entry.425050329=Шевченківський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": " ", "guid": "{DE134552-27BF-4B4C-89C8-9891B0EE9086}", "actual": 1, "working_time": "Цілодобово", "distance": 245.62137129634181 }, "geometry": { "type": "Point", "coordinates": [30.453348, 50.47955] } }, { "type": "Feature", "properties": { "id": 120, "type": 3, "name": "Парк відпочинку", "lat": 50.479585, "lng": 30.452746, "objectid": 13230, "district": "Шевченківський", "address": "вул. Олени Теліги, 35", "coord": "50.4789885, 30.4513261", "type_2": "Найпростіше укриття", "kind": "Підвал", "type_building": "Багатоквартирний будинок", "owner": "Комунальне підприємство \"Керуюча компанія з обслуговування житлового фонду Шевченківського району м. Києва\"", "type_ownership": "Комунальна", "tel": "044 500 81 03", "invalid": "Відсутній", "description": "-", "lat_2": 50.478988, "long": 30.451326, "phonenumb": "<a href=tel:0445008103>0445008103</a>", "title": "Багатоквартирний будинок", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=вул. Теліги, 35 | {DE134552-27BF-4B4C-89C8-9891B0EE9086}&entry.425050329=Шевченківський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": " ", "guid": "{DE134552-27BF-4B4C-89C8-9891B0EE9086}", "actual": 1, "working_time": "Цілодобово", "distance": 189.45681269201216 }, "geometry": { "type": "Point", "coordinates": [30.452746, 50.479585] } }, { "type": "Feature", "properties": { "id": 121, "type": 3, "name": "АЗС", "lat": 50.482205, "lng": 30.461054, "objectid": null, "district": null, "address": null, "coord": null, "type_2": null, "kind": null, "type_building": null, "owner": null, "type_ownership": null, "tel": null, "invalid": null, "description": null, "lat_2": null, "long": null, "phonenumb": null, "title": null, "link_full": null, "address_old": null, "guid": null, "actual": null, "working_time": null, "distance": null }, "geometry": { "type": "Point", "coordinates": [30.461054, 50.482205] } }, { "type": "Feature", "properties": { "id": 122, "type": 3, "name": "АЗС", "lat": 50.482396, "lng": 30.460704, "objectid": null, "district": null, "address": null, "coord": null, "type_2": null, "kind": null, "type_building": null, "owner": null, "type_ownership": null, "tel": null, "invalid": null, "description": null, "lat_2": null, "long": null, "phonenumb": null, "title": null, "link_full": null, "address_old": null, "guid": null, "actual": null, "working_time": null, "distance": null }, "geometry": { "type": "Point", "coordinates": [30.460704, 50.482396] } }, { "type": "Feature", "properties": { "id": 123, "type": 3, "name": "Музей \"Кирилівська церква\"", "lat": 50.48438, "lng": 30.470943, "objectid": 12792, "district": "Подільський", "address": "вул. Олени Теліги", "coord": "50.484416, 30.471069", "type_2": "Найпростіше укриття", "kind": "Підземний перехід", "type_building": "Підземний перехід", "owner": "КП ШЕУ", "type_ownership": "Комунальна", "tel": " ", "invalid": "Відсутній", "description": "-", "lat_2": 50.484416, "long": 30.471069, "phonenumb": "", "title": "Підземний перехід", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=вул. Олени Теліги | {9DAB8919-6C81-445A-AEB3-D530966CBAA0}&entry.425050329=Подільський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": " ", "guid": "{9DAB8919-6C81-445A-AEB3-D530966CBAA0}", "actual": 1, "working_time": "Цілодобово", "distance": 15.375427872720884 }, "geometry": { "type": "Point", "coordinates": [30.470943, 50.48438] } }, { "type": "Feature", "properties": { "id": 124, "type": 3, "name": "Музей \"Кирилівська церква\"", "lat": 50.484947, "lng": 30.471074, "objectid": 12792, "district": "Подільський", "address": "вул. Олени Теліги", "coord": "50.484416, 30.471069", "type_2": "Найпростіше укриття", "kind": "Підземний перехід", "type_building": "Підземний перехід", "owner": "КП ШЕУ", "type_ownership": "Комунальна", "tel": " ", "invalid": "Відсутній", "description": "-", "lat_2": 50.484416, "long": 30.471069, "phonenumb": "", "title": "Підземний перехід", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=вул. Олени Теліги | {9DAB8919-6C81-445A-AEB3-D530966CBAA0}&entry.425050329=Подільський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": " ", "guid": "{9DAB8919-6C81-445A-AEB3-D530966CBAA0}", "actual": 1, "working_time": "Цілодобово", "distance": 92.901384115026815 }, "geometry": { "type": "Point", "coordinates": [30.471074, 50.484947] } }, { "type": "Feature", "properties": { "id": 125, "type": 3, "name": "вул. Новокостянтинівська", "lat": 50.48845, "lng": 30.480351, "objectid": 10652, "district": "Оболонський", "address": "вул. Новоконстянтинівська - вул. Тульчинська", "coord": "50.4864465, 30.4821942", "type_2": "Споруди подвійного призначення", "kind": "Підземний перехід", "type_building": "Підземний перехід", "owner": "КП ШЕУ", "type_ownership": "Комунальна", "tel": "044 468 23 26", "invalid": "Відсутній", "description": "-", "lat_2": 50.486447, "long": 30.482194, "phonenumb": "<a href=tel:0444682326>0444682326</a>", "title": "Підземний перехід", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=вул. Новоконстянтинівська - вул. Тульчинська | {23FCDF16-8F95-4B7E-8F40-72F805207547}&entry.425050329=Оболонський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": "вул. Новоконстянтинівська - вул. Тульчинська", "guid": "{23FCDF16-8F95-4B7E-8F40-72F805207547}", "actual": 1, "working_time": "Цілодобово", "distance": 406.08703454490643 }, "geometry": { "type": "Point", "coordinates": [30.480351, 50.48845] } }, { "type": "Feature", "properties": { "id": 126, "type": 3, "name": "вул. Новокостянтинівська", "lat": 50.487966, "lng": 30.479928, "objectid": 10652, "district": "Оболонський", "address": "вул. Новоконстянтинівська - вул. Тульчинська", "coord": "50.4864465, 30.4821942", "type_2": "Споруди подвійного призначення", "kind": "Підземний перехід", "type_building": "Підземний перехід", "owner": "КП ШЕУ", "type_ownership": "Комунальна", "tel": "044 468 23 26", "invalid": "Відсутній", "description": "-", "lat_2": 50.486447, "long": 30.482194, "phonenumb": "<a href=tel:0444682326>0444682326</a>", "title": "Підземний перехід", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=вул. Новоконстянтинівська - вул. Тульчинська | {23FCDF16-8F95-4B7E-8F40-72F805207547}&entry.425050329=Оболонський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": "вул. Новоконстянтинівська - вул. Тульчинська", "guid": "{23FCDF16-8F95-4B7E-8F40-72F805207547}", "actual": 1, "working_time": "Цілодобово", "distance": 366.41789927005254 }, "geometry": { "type": "Point", "coordinates": [30.479928, 50.487966] } }, { "type": "Feature", "properties": { "id": 129, "type": 3, "name": "завод \"Маяк\"", "lat": 50.489366, "lng": 30.49043, "objectid": null, "district": null, "address": null, "coord": null, "type_2": null, "kind": null, "type_building": null, "owner": null, "type_ownership": null, "tel": null, "invalid": null, "description": null, "lat_2": null, "long": null, "phonenumb": null, "title": null, "link_full": null, "address_old": null, "guid": null, "actual": null, "working_time": null, "distance": null }, "geometry": { "type": "Point", "coordinates": [30.49043, 50.489366] } }, { "type": "Feature", "properties": { "id": 130, "type": 3, "name": "завод \"Маяк\"", "lat": 50.488986, "lng": 30.490775, "objectid": null, "district": null, "address": null, "coord": null, "type_2": null, "kind": null, "type_building": null, "owner": null, "type_ownership": null, "tel": null, "invalid": null, "description": null, "lat_2": null, "long": null, "phonenumb": null, "title": null, "link_full": null, "address_old": null, "guid": null, "actual": null, "working_time": null, "distance": null }, "geometry": { "type": "Point", "coordinates": [30.490775, 50.488986] } }, { "type": "Feature", "properties": { "id": 131, "type": 3, "name": "завод \"Промзв'язок\"", "lat": 50.488939, "lng": 30.495293, "objectid": 10710, "district": "Оболонський", "address": "Вхід в станцію метро", "coord": "50.4869595, 30.4975115", "type_2": "Споруди подвійного призначення", "kind": "Вхід в станцію метро", "type_building": "Вхід в станцію метро", "owner": "<Null>", "type_ownership": "<Null>", "tel": "<Null>", "invalid": "<Null>", "description": "-", "lat_2": 50.397743, "long": 30.508888, "phonenumb": "", "title": "Вхід в станцію метро", "link_full": "<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfL28xIRDx-plH-o3h_hYyUvCo90Aqtm8Nh6VcUZjeRc9D7zA/viewform?usp=pp_url&entry.2082842082=Вхід в станцію метро | {4A46F755-5024-4340-8249-E2E665F5F32F}&entry.425050329=Оболонський\" target=\"_blank\">Повідомити про стан укриття</a>", "address_old": "Вхід в станцію метро", "guid": "{4A46F755-5024-4340-8249-E2E665F5F32F}", "actual": 1, "working_time": "Цілодобово", "distance": 425.41321754415975 }, "geometry": { "type": "Point", "coordinates": [30.495293, 50.488939] } }, { "type": "Feature", "properties": { "id": 134, "type": 3, "name": "вул. Йорданська", "lat": 50.488624, "lng": 30.508011, "objectid": null, "district": null, "address": null, "coord": null, "type_2": null, "kind": null, "type_building": null, "owner": null, "type_ownership": null, "tel": null, "invalid": null, "description": null, "lat_2": null, "long": null, "phonenumb": null, "title": null, "link_full": null, "address_old": null, "guid": null, "actual": null, "working_time": null, "distance": null }, "geometry": { "type": "Point", "coordinates": [30.508011, 50.488624] } }, { "type": "Feature", "properties": { "id": 135, "type": 3, "name": "вул. Йорданська", "lat": 50.488914, "lng": 30.508782, "objectid": null, "district": null, "address": null, "coord": null, "type_2": null, "kind": null, "type_building": null, "owner": null, "type_ownership": null, "tel": null, "invalid": null, "description": null, "lat_2": null, "long": null, "phonenumb": null, "title": null, "link_full": null, "address_old": null, "guid": null, "actual": null, "working_time": null, "distance": null }, "geometry": { "type": "Point", "coordinates": [30.508782, 50.488914] } }, { "type": "Feature", "properties": { "id": 136, "type": 3, "name": "Вул. Ореста Субтельного", "lat": 50.48846, "lng": 30.512387, "objectid": null, "district": null, "address": null, "coord": null, "type_2": null, "kind": null, "type_building": null, "owner": null, "type_ownership": null, "tel": null, "invalid": null, "description": null, "lat_2": null, "long": null, "phonenumb": null, "title": null, "link_full": null, "address_old": null, "guid": null, "actual": null, "working_time": null, "distance": null }, "geometry": { "type": "Point", "coordinates": [30.512387, 50.48846] } } ] }; var myCopy = null;
Tests:
JSON.stringify
myCopy = JSON.parse(JSON.stringify(MyObject));
structuredClone
myCopy = structuredClone(MyObject);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
JSON.stringify
structuredClone
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
8 months ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36 Edg/139.0.0.0
Browser/OS:
Chrome 139 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
JSON.stringify
12841.4 Ops/sec
structuredClone
11587.0 Ops/sec
Autogenerated LLM Summary
(model
gpt-4o-mini
, generated 8 months ago):
### Benchmark Overview The benchmark titled **"JSON.stringify vs structuredClone"** compares the performance of two methods for creating a deep copy of an object in JavaScript: `JSON.stringify` followed by `JSON.parse`, and the `structuredClone` function. ### Options Compared 1. **JSON.stringify / JSON.parse Method** - **Code:** `myCopy = JSON.parse(JSON.stringify(MyObject));` - **Description:** This method involves first converting the object `MyObject` into a JSON string through `JSON.stringify`, then parsing that string back into an object with `JSON.parse`. This effectively creates a deep copy of the object. 2. **structuredClone Method** - **Code:** `myCopy = structuredClone(MyObject);` - **Description:** The `structuredClone` function is a native method introduced in modern JavaScript that efficiently creates a deep copy of a variety of data types that also include objects, arrays, Date objects, and more. ### Performance Results - **JSON.stringify:** - **Executions Per Second:** 12841.39 - **structuredClone:** - **Executions Per Second:** 11586.96 ### Pros and Cons of Each Approach #### JSON.stringify / JSON.parse - **Pros:** - Simple and easy to use. - Generally supported in virtually all JavaScript environments. - Suitable for serializing only plain objects (i.e., objects without methods or special objects like Dates). - **Cons:** - Doesn't handle functions, Dates, undefined, RegExp, Map, Set, or special objects correctly; it will effectively "lose" this data during the stringify process. - Can throw errors when trying to serialize circular references. - Introduces overhead due to string conversion and parsing, which might not be as efficient for larger objects. #### structuredClone - **Pros:** - Handles a broader array of JavaScript data types, including complex structures like Dates, Arrays, and even DOM nodes. - Better performance on large or complex objects due to less overhead. - Can handle circular references without throwing errors. - **Cons:** - Not as widely supported in older browsers (it is supported in modern browsers, but care should be taken for compatibility). - More complex implementations may take advantage of cloning features that might not be needed in all scenarios. ### Other Considerations - **Use Cases:** The choice between these two methods often depends on the specific needs of the application. If data integrity is crucial—especially with complex objects—`structuredClone` would generally be preferred. - **Browser Compatibility:** While `JSON.stringify/parse` has wide support, developers must check for `structuredClone` compatibility, especially in environments that may include older browsers or specific contexts (such as IoT devices). However, most modern applications are migrating towards using `structuredClone` as it becomes more supported. - **Alternatives:** Other alternatives to create deep copies could include libraries like Lodash, which offers a `cloneDeep` function, or manual implementations that can provide customized deep copy logic based on particular application needs. In conclusion, this benchmark effectively illustrates the performance differences, along with practical considerations, between a traditional approach and a modern native method of deep copying objects in JavaScript. Understanding the strengths and weaknesses of each method enables developers to make informed decisions suited to their specific use cases.
Related benchmarks:
Array Lodash cloneDeep vs JSON Clone
JSON.stringify vs structuredClone more
JSON.stringify vs structuredClone list
Lodash 4.17.21 isEqual vs JSON.stringify
Hello 124
Lodash isEqual vs JSON stringify2
test json vs omit
JSON.stringify vs structuredClone vs _.cloneDeep
JSON Parse vs StructuredClone bigger object
Comments
Confirm delete:
Do you really want to delete benchmark?