Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
lodash.differenceBy vs native
(version: 2)
Comparing performance of:
native vs lodash
Created:
3 years ago
by:
Registered User
Jump to the latest result
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.8.0/lodash.min.js'></script>
Script Preparation code:
var visibleReports = [{ category: 'front', reportName: 'FxSwapReval', reportLabel: 'FxSwap Revaluation', configName: 'FX_SWAPREVAL', user: null, realtime: false, executions: [{ description: '2018-05-10:EUR', executionDateTime: '2022-01-01T00:00:01', storage: { details: { namespace: 'kondor-standard', tables: ['test1', 'test2'], }, }, message: null, }, { description: '2018-05-18:EUR', executionDateTime: '2022-01-01T00:00:01', storage: { type: 'PEGASUS', details: { namespace: 'kondor-standard', tables: ['test1'], }, }, message: null, }, ], }, { category: 'front', reportName: 'CashFlowExtendedReport', reportLabel: 'Cash Flow Extended', configName: 'AM_CFE_1', user: null, realtime: false, executions: [{ description: null, executionDateTime: '2022-01-01T00:00:01', storage: { details: { namespace: 'kondor-kplus', tables: ['test1'], }, }, message: null, }, ], }, { category: 'front', reportName: 'CashFlowExtendedReport2', reportLabel: 'Cash Flow Extended', configName: 'AM_CFE_1', user: 'kplus', realtime: false, executions: [{ description: null, executionDateTime: '2022-01-01T00:00:01', storage: { details: { namespace: 'kondor-kplus', tables: ['test1'], }, }, message: null, }, ], }, { category: 'front', reportName: 'FinReportML', reportLabel: 'RTK Financial', configName: 'AM_RTK_1', user: 'kplus', realtime: false, executions: [{ description: null, executionDateTime: '2022-01-01T00:00:01', storage: { details: { namespace: 'kondor-kplus', tables: ['test1'], }, }, message: null, }, ], }, { category: 'front', reportName: 'HISTO-Historical|AM_FIN', reportLabel: 'HISTO-Historical|AM_FIN', configName: '04-01-2018', user: 'kplus', realtime: false, executions: [{ description: null, executionDateTime: '2022-01-01T00:00:01', storage: { details: { namespace: 'kondor-kplus', tables: ['test1'], }, }, message: null, }, ], }, { category: 'front', reportName: 'RisKatcher', reportLabel: 'RisKatcher', configName: 'AM_RK_1', user: 'kplus', realtime: false, executions: [{ description: null, executionDateTime: '2022-01-01T00:00:01', storage: { details: { namespace: 'kondor-kplus', tables: ['test1'], }, }, message: null, }, ], }, { category: 'front', reportName: 'SCRIPT', reportLabel: 'SCRIPT', configName: 'MB_SoS_Fin_CF_1', user: 'kplus', realtime: false, executions: [{ description: '2018-05-10:EUR', executionDateTime: '2022-01-01T00:00:01', storage: { details: { namespace: 'kondor-kplus', tables: ['test1'], }, }, message: null, }, ], }, { category: 'front', reportName: 'Standard Report 1', reportLabel: 'TO_BONDS', configName: 'AM_CFE_1', user: null, realtime: false, executions: [{ description: null, executionDateTime: '2022-01-01T00:00:01', storage: { details: { namespace: 'kondor-standard', tables: ['test1'], }, }, message: null, }, ], }, { category: 'front', reportName: 'Standard Report 2', reportLabel: 'TO_PAIRS', configName: 'AM_CFE_2', user: null, realtime: false, executions: [{ description: null, executionDateTime: '2022-01-01T00:00:01', storage: { details: { namespace: 'kondor-standard', tables: ['test1'], }, }, message: null, }, ], }, ]; var filteredReportsByName = [{ category: 'front', reportName: 'FxSwapReval', reportLabel: 'FxSwap Revaluation', configName: 'FX_SWAPREVAL', user: null, realtime: false, executions: [{ description: '2018-05-10:EUR', executionDateTime: '2022-01-01T00:00:01', storage: { details: { namespace: 'kondor-standard', tables: ['test1', 'test2'], }, }, message: null, }, { description: '2018-05-18:EUR', executionDateTime: '2022-01-01T00:00:01', storage: { details: { namespace: 'kondor-standard', tables: ['test1'], }, }, message: null, }, ], }, { category: 'front', reportName: 'CashFlowExtendedReport', reportLabel: 'Cash Flow Extended', configName: 'AM_CFE_1', user: null, realtime: false, executions: [{ description: null, executionDateTime: '2022-01-01T00:00:01', storage: { details: { namespace: 'kondor-kplus', tables: ['test1'], }, }, message: null, }, ], }, { category: 'front', reportName: 'SCRIPT', reportLabel: 'SCRIPT', configName: 'MB_SoS_Fin_CF_1', user: 'kplus', realtime: false, executions: [{ description: '2018-05-10:EUR', executionDateTime: '2022-01-01T00:00:01', storage: { details: { namespace: 'kondor-kplus', tables: ['test1'], }, }, message: null, }, ], }, { category: 'front', reportName: 'Standard Report 1', reportLabel: 'TO_BONDS', configName: 'AM_CFE_1', user: null, realtime: false, executions: [{ description: null, executionDateTime: '2022-01-01T00:00:01', storage: { details: { namespace: 'kondor-standard', tables: ['test1'], }, }, message: null, }, ], } ];
Tests:
native
return [...new Map([...visibleReports, ...filteredReportsByName].map(report => [report.reportName, report])).values()]
lodash
return _.differenceBy(visibleReports, filteredReportsByName, 'reportName');
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
native
lodash
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
2 years ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Browser/OS:
Chrome 123 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
native
2587698.5 Ops/sec
lodash
2328940.8 Ops/sec
Autogenerated LLM Summary
(model
llama3.2:3b
, generated one year ago):
It seems like we have a large JSON object with various data structures and strings, including: * An array of `report` objects * A string for HTML preparation code * Individual test cases as an array of objects * Latest benchmark result as an array of objects We can ignore the HTML preparation code and focus on the other parts. Can you please provide more context or clarify what specific information you need help with? Are we looking to: 1. Parse the JSON object? 2. Extract specific data from the reports or test cases? 3. Perform calculations or analysis on the benchmark results? Let me know, and I'll do my best to assist you!
Related benchmarks:
es6 vs lodash - small data
es6 vs lodash - medium data
difference2
_.omit vs delete of map
lodash differenceby vs sort2
Comments
Confirm delete:
Do you really want to delete benchmark?