<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
var a = {"retweeted":false,"porn":false,"mentioned":0,"retweetable":true,"id":1408967479,"favorite_count":0,"is_unread":1,"favorers":[],"user_id":10208633,"type":0,"bookmark":false,"coins":0,"publish_to_followers":true,"content":"line常用貼圖 ,沒有跟到活動 <img src=\"https://gif\" class=\"emoticon\" alt=\"(rofl)\" /> <br /><a href=\"https://png\" class=\"ex_link pictureservices\" rel=\"nofollow\"><img src=\"https://jpg\" alt=\"https://png\" height=\"48\"></a> <a href=\"https://png\" class=\"ex_link pictureservices\" rel=\"nofollow\"><img src=\"https://jpg\" alt=\"https://png\" height=\"48\"></a> 但應該都是這樣","retweet_id":null,"excluded":null,"has_gift":false,"owner_id":10208633,"responses_seen":0,"qualifier":":","tweet_id":1408967479,"response_count":1,"retweeters_count":0,"anonymous":false,"last_edited":null,"limited_to":null,"no_comments":0,"posted":"Tue, 30 Apr 2019 04:20:50 GMT","lang":"en","content_raw":"line常用貼圖 ,沒有跟到活動 (rofl) \n 但應該都是這樣","retweeters":[],"favorite":false,"responded":0,"trans_qualifier":":"};
var b = {"retweeted":false,"porn":false,"mentioned":0,"retweetable":true,"id":1408967479,"favorite_count":0,"is_unread":0,"favorers":[],"user_id":13961847,"type":0,"bookmark":false,"coins":0,"publish_to_followers":true,"content":"line常用貼圖 ,沒有跟到活動 <img src=\"https://gif\" class=\"emoticon\" alt=\"(rofl)\" /> <br /><a href=\"https://png\" class=\"ex_link pictureservices\" rel=\"nofollow\"><img src=\"https://jpg\" alt=\"https://png\" height=\"48\"></a> <a href=\"https://png\" class=\"ex_link pictureservices\" rel=\"nofollow\"><img src=\"https://jpg\" alt=\"https://png\" height=\"48\"></a> 但應該都是這樣","retweet_id":null,"excluded":null,"has_gift":false,"owner_id":10208633,"responses_seen":0,"qualifier":":","tweet_id":1408967479,"response_count":1,"retweeters_count":0,"anonymous":false,"last_edited":null,"limited_to":null,"no_comments":0,"posted":"Tue, 30 Apr 2019 04:20:50 GMT","lang":"en","content_raw":"line常用貼圖 ,沒有跟到活動 (rofl) \n 但應該都是這樣","retweeters":[],"favorite":false,"responded":0,"trans_qualifier":":"};
var c = _.merge(a, b);
var a = {"retweeted":false,"porn":false,"mentioned":0,"retweetable":true,"id":1408967479,"favorite_count":0,"is_unread":1,"favorers":[],"user_id":10208633,"type":0,"bookmark":false,"coins":0,"publish_to_followers":true,"content":"line常用貼圖 ,沒有跟到活動 <img src=\"https://gif\" class=\"emoticon\" alt=\"(rofl)\" /> <br /><a href=\"https://png\" class=\"ex_link pictureservices\" rel=\"nofollow\"><img src=\"https://jpg\" alt=\"https://png\" height=\"48\"></a> <a href=\"https://png\" class=\"ex_link pictureservices\" rel=\"nofollow\"><img src=\"https://jpg\" alt=\"https://png\" height=\"48\"></a> 但應該都是這樣","retweet_id":null,"excluded":null,"has_gift":false,"owner_id":10208633,"responses_seen":0,"qualifier":":","tweet_id":1408967479,"response_count":1,"retweeters_count":0,"anonymous":false,"last_edited":null,"limited_to":null,"no_comments":0,"posted":"Tue, 30 Apr 2019 04:20:50 GMT","lang":"en","content_raw":"line常用貼圖 ,沒有跟到活動 (rofl) \n 但應該都是這樣","retweeters":[],"favorite":false,"responded":0,"trans_qualifier":":"};
var b = {"retweeted":false,"porn":false,"mentioned":0,"retweetable":true,"id":1408967479,"favorite_count":0,"is_unread":0,"favorers":[],"user_id":13961847,"type":0,"bookmark":false,"coins":0,"publish_to_followers":true,"content":"line常用貼圖 ,沒有跟到活動 <img src=\"https://gif\" class=\"emoticon\" alt=\"(rofl)\" /> <br /><a href=\"https://png\" class=\"ex_link pictureservices\" rel=\"nofollow\"><img src=\"https://jpg\" alt=\"https://png\" height=\"48\"></a> <a href=\"https://png\" class=\"ex_link pictureservices\" rel=\"nofollow\"><img src=\"https://jpg\" alt=\"https://png\" height=\"48\"></a> 但應該都是這樣","retweet_id":null,"excluded":null,"has_gift":false,"owner_id":10208633,"responses_seen":0,"qualifier":":","tweet_id":1408967479,"response_count":1,"retweeters_count":0,"anonymous":false,"last_edited":null,"limited_to":null,"no_comments":0,"posted":"Tue, 30 Apr 2019 04:20:50 GMT","lang":"en","content_raw":"line常用貼圖 ,沒有跟到活動 (rofl) \n 但應該都是這樣","retweeters":[],"favorite":false,"responded":0,"trans_qualifier":":"};
var c = Object.assign(a, b);
var a = {"retweeted":false,"porn":false,"mentioned":0,"retweetable":true,"id":1408967479,"favorite_count":0,"is_unread":1,"favorers":[],"user_id":10208633,"type":0,"bookmark":false,"coins":0,"publish_to_followers":true,"content":"line常用貼圖 ,沒有跟到活動 <img src=\"https://gif\" class=\"emoticon\" alt=\"(rofl)\" /> <br /><a href=\"https://png\" class=\"ex_link pictureservices\" rel=\"nofollow\"><img src=\"https://jpg\" alt=\"https://png\" height=\"48\"></a> <a href=\"https://png\" class=\"ex_link pictureservices\" rel=\"nofollow\"><img src=\"https://jpg\" alt=\"https://png\" height=\"48\"></a> 但應該都是這樣","retweet_id":null,"excluded":null,"has_gift":false,"owner_id":10208633,"responses_seen":0,"qualifier":":","tweet_id":1408967479,"response_count":1,"retweeters_count":0,"anonymous":false,"last_edited":null,"limited_to":null,"no_comments":0,"posted":"Tue, 30 Apr 2019 04:20:50 GMT","lang":"en","content_raw":"line常用貼圖 ,沒有跟到活動 (rofl) \n 但應該都是這樣","retweeters":[],"favorite":false,"responded":0,"trans_qualifier":":"};
var b = {"retweeted":false,"porn":false,"mentioned":0,"retweetable":true,"id":1408967479,"favorite_count":0,"is_unread":0,"favorers":[],"user_id":13961847,"type":0,"bookmark":false,"coins":0,"publish_to_followers":true,"content":"line常用貼圖 ,沒有跟到活動 <img src=\"https://gif\" class=\"emoticon\" alt=\"(rofl)\" /> <br /><a href=\"https://png\" class=\"ex_link pictureservices\" rel=\"nofollow\"><img src=\"https://jpg\" alt=\"https://png\" height=\"48\"></a> <a href=\"https://png\" class=\"ex_link pictureservices\" rel=\"nofollow\"><img src=\"https://jpg\" alt=\"https://png\" height=\"48\"></a> 但應該都是這樣","retweet_id":null,"excluded":null,"has_gift":false,"owner_id":10208633,"responses_seen":0,"qualifier":":","tweet_id":1408967479,"response_count":1,"retweeters_count":0,"anonymous":false,"last_edited":null,"limited_to":null,"no_comments":0,"posted":"Tue, 30 Apr 2019 04:20:50 GMT","lang":"en","content_raw":"line常用貼圖 ,沒有跟到活動 (rofl) \n 但應該都是這樣","retweeters":[],"favorite":false,"responded":0,"trans_qualifier":":"};
var c = { a, b };
--enable-precise-memory-info
flag.
Test case name | Result |
---|---|
lodash merge | |
object.assign | |
spread |
Test name | Executions per second |
---|---|
lodash merge | 330251.1 Ops/sec |
object.assign | 1164854.5 Ops/sec |
spread | 293499.7 Ops/sec |
A technical question!
It seems like you're asking me to extract some information from the provided JSON data.
Specifically, I'll extract the test results for each benchmark:
object.assign
:lodash merge
:spread
:Is that what you were looking for?