Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
raw vs array
(version: 0)
Comparing performance of:
pass raw vs pass object
Created:
2 years ago
by:
Guest
Go to the latest result
Script Preparation code:
var id = 16 var name = "🌒 Тест1" var companiesInfo = [{ "id": id, "name": name, "weight": 100, "trailersInfo": [{ "weight": 700, "name": "Змеиная топь", "namePictures": [{ "url": "https://pic.uma.media/pic/cardimage/60/f1/60f10433b32adec52e252ae7329b2daf.png", "type": "g_hasLogo_600x600" }, { "url": "https://pic.uma.media/pic/cardimage/0f/6d/0f6d52203608e4e3453d7417631a9477.png", "type": "g_hasTitle_logo_1800x1000" } ], "slug": "zmeinaya-top", "tvUmaId": 20786, "videoId": "ecfccb164c18527e102bea5d06ac5d1b", "posters": [{ "url": "https://pic.uma.media/pic/cardimage/91/66/9166f03c7300969b461f34129ae3ab2a.jpg", "type": "g_iconic_poster_600x600" }, { "url": "https://pic.uma.media/pic/cardimage/8d/69/8d6904d6b29e71afc19611c3816dd1a5.jpg", "type": "g_iconic_poster_600x800" }, { "url": "https://pic.uma.media/pic/cardimage/e8/00/e8000c27caf48d8917a9ae16253ceeef.jpg", "type": "g_iconic_poster_800x600" }, { "url": "https://pic.uma.media/pic/cardimage/be/65/be65e43c5e53cd16c476cb4a2632f59f.jpg", "type": "g_iconic_poster_1000x1500" }, { "url": "https://pic.uma.media/pic/cardimage/5a/85/5a8580218b2e8785c1204c451cce6206.jpg", "type": "g_iconic_poster_3840x2160" } ], "ratingPremier": null, "year": "2023", "quality": null, "country": "Колумбия", "genres": [{ "id": 5, "name": "Триллер" }] }, { "weight": 600, "name": "Атака титанов. Фильм второй: Конец света", "namePictures": [{ "url": "https://pic.uma.media/pic/cardimage/c0/e0/c0e0d3267e05ac628bfe87db5d0ed72f.png", "type": "g_hasTitle_logo_1800x1000" }, { "url": "https://pic.uma.media/pic/cardimage/27/d6/27d6ec0a1613add577eb9c7ea3aba4e1.png", "type": "g_hasLogo_600x600" } ], "slug": "ataka-titanov-film-vtoroj-konets-sveta", "tvUmaId": 17096, "videoId": "84e90d3f0af1677efbe0e56a9f020861", "posters": [{ "url": "https://pic.uma.media/pic/cardimage/46/30/4630806b02e08e920bb36c1d1d3a51bb.jpg", "type": "g_iconic_poster_1000x1500" }, { "url": "https://pic.uma.media/pic/cardimage/42/f9/42f99dfb10b1ba7b1430dfc65811ea18.jpg", "type": "g_iconic_poster_3840x2160" }, { "url": "https://pic.uma.media/pic/cardimage/83/00/8300d2c9975cd509d6586950965a6dc9.jpg", "type": "g_iconic_poster_800x600" }, { "url": "https://pic.uma.media/pic/cardimage/5a/bd/5abdc354593c6a8e9f74725fb37c611c.jpg", "type": "g_iconic_poster_600x800" }, { "url": "https://pic.uma.media/pic/cardimage/09/c3/09c3a5203d72c1a221d25f038c22858a.jpg", "type": "g_iconic_poster_600x600" } ], "ratingPremier": null, "year": "2015", "quality": null, "country": "Япония", "genres": [{ "id": 1, "name": "Фантастика" }, { "id": 18, "name": "Боевик" }, { "id": 4, "name": "Драма" } ] }, { "weight": 300, "name": "Как Витька Чеснок вёз Лёху Штыря в дом инвалидов", "namePictures": [ ], "slug": "kak-vitka-chesnok-vez-lehu-shtyrja-v-dom-invalidov", "tvUmaId": 10216, "videoId": "402ae76470de741aea2b24d8e52095fc", "posters": [{ "url": "https://pic.uma.media/pic/cardimage/8b/ee/8bee0d3d443ddabacf27915f2124fa3c.jpg", "type": "g_iconic_poster_3840x2160" }, { "url": "https://pic.uma.media/pic/cardimage/b5/68/b568437c769a745f4a9a447218e26307.jpg", "type": "g_iconic_poster_1000x1500" } ], "ratingPremier": 7.3, "year": "2017", "quality": null, "country": "Россия", "genres": [{ "id": 4, "name": "Драма" }, { "id": 22, "name": "Криминал" } ] }, { "weight": 200, "name": "Бум 2", "namePictures": [{ "url": "https://pic.uma.media/pic/cardimage/0e/db/0edbb0cbe866fdb61b5f355c0c1bce38.png", "type": "g_hasLogo_600x600" }, { "url": "https://pic.uma.media/pic/cardimage/db/01/db0165c2037bb264deeed7fa192bc64b.png", "type": "g_hasTitle_logo_1800x1000" } ], "slug": "bum-2", "tvUmaId": 20911, "videoId": "1e7f7a0567d16b2f67436df479877164", "posters": [{ "url": "https://pic.uma.media/pic/cardimage/62/c8/62c82b8a245912a6507a33be15a79bf9.jpg", "type": "g_iconic_poster_600x600" }, { "url": "https://pic.uma.media/pic/cardimage/05/21/05216a8d39b165276e737e7a583cd29e.jpg", "type": "g_iconic_poster_600x800" }, { "url": "https://pic.uma.media/pic/cardimage/05/fe/05fe0bb80fac72e2c84c7f94597f742f.jpg", "type": "g_iconic_poster_800x600" }, { "url": "https://pic.uma.media/pic/cardimage/9e/fa/9efa79a5bb07219145e4d07b769a9ae6.jpg", "type": "g_iconic_poster_1000x1500" }, { "url": "https://pic.uma.media/pic/cardimage/85/41/85413f64f742aacaa6ec019e1b020d13.jpg", "type": "g_iconic_poster_3840x2160" } ], "ratingPremier": null, "year": "1982", "quality": null, "country": "Франция", "genres": [{ "id": 7, "name": "Мелодрама" }, { "id": 3, "name": "Комедия" }, { "id": 4, "name": "Драма" } ] }, { "weight": 100, "name": "Наследие", "namePictures": [{ "url": "https://pic.uma.media/pic/cardimage/5a/42/5a42c28afb3810811ad9f79620eabe0a.png", "type": "g_hasTitle_logo_1800x1000" }, { "url": "https://pic.uma.media/pic/cardimage/22/90/22904e0ec1f53fc16c607ad7ead494a7.png", "type": "g_hasLogo_600x600" } ], "slug": "nasledie", "tvUmaId": 18933, "videoId": "54b913b11b085dcf935affc79372b5e7", "posters": [{ "url": "https://pic.uma.media/pic/cardimage/7b/e0/7be0eded574dfb8d4029dd8b1b196a0d.jpg", "type": "g_iconic_poster_1000x1500" }, { "url": "https://pic.uma.media/pic/cardimage/6d/5d/6d5d7993962d8ca9a492cd06be8acddb.jpg", "type": "g_iconic_poster_600x800" }, { "url": "https://pic.uma.media/pic/cardimage/70/95/7095d39fd5bd72a26f2e0f877488403e.jpg", "type": "g_iconic_poster_600x600" }, { "url": "https://pic.uma.media/pic/cardimage/6b/1f/6b1f0f483494b8c433c88a9f9da43619.jpg", "type": "g_iconic_poster_3840x2160" }, { "url": "https://pic.uma.media/pic/cardimage/56/1b/561b67d7c3960e53c121fd62d434d367.jpg", "type": "g_iconic_poster_800x600" } ], "ratingPremier": 7.7, "year": "2022", "quality": null, "country": "Россия", "genres": [{ "id": 1, "name": "Фантастика" }, { "id": 4, "name": "Драма" } ] } ] }] function passRaw(_id, _name) { return `${_id * 2}_` + _name } function passObject(companiesInfo) { return `${companiesInfo.id * 2}_` + companiesInfo.name }
Tests:
pass raw
passRaw(id, name)
pass object
passObject(companiesInfo)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
pass raw
pass object
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
2 years ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Browser/OS:
Chrome 121 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
pass object
15.6M/s
pass raw
10.6M/s
View exact numbers
Test name
Executions per second
✓
pass object
15,642,258 Ops/sec
pass raw
10,558,466 Ops/sec
Autogenerated LLM Summary
(model
llama3.2:3b
, generated one year ago):
I'll focus on providing an answer. Based on the provided benchmark results, it appears that both `passRaw` and `passObject` functions are being tested in Chrome 121 on a Mac OS X 10.15.7 desktop. The test results show that: 1. `passRaw` function is executed approximately 15642258 times per second. 2. `passObject` function is executed approximately 10558466 times per second. Since the question doesn't specify any particular answer or outcome, I'll provide a neutral summary of the benchmark results. Please let me know if you'd like me to clarify anything or provide further information!
Related benchmarks
small array vs large array
lodash vs native js array comparsion
object-hash vs JSON.stringify_harsh_gangar
Comments
Confirm delete:
Do you really want to delete benchmark?