Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
simple stuffdddxd
(version: 0)
Comparing performance of:
Lodash vs Native vs Lodash with defined group vs Lodash with substring
Created:
5 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.0/moment.min.js'></script>
Script Preparation code:
var dates = ["2020-05-20T09:50:32+00:00","2020-05-20T09:53:13+00:00","2020-05-20T09:53:41+00:00","2020-05-20T09:55:59+00:00","2020-05-20T09:58:10+00:00","2020-05-20T10:02:20+00:00","2020-05-19T11:33:37+00:00","2020-05-19T11:36:00+00:00","2020-05-19T11:46:14+00:00","2020-05-19T11:49:04+00:00","2020-05-19T11:49:31+00:00","2020-05-19T11:51:43+00:00","2020-05-19T11:50:27+00:00","2020-05-19T11:53:03+00:00","2020-05-19T11:53:57+00:00","2020-05-19T12:01:19+00:00","2020-05-19T12:00:54+00:00","2020-05-19T12:21:16+00:00","2020-05-19T12:21:24+00:00","2020-05-19T12:24:24+00:00","2020-05-19T12:25:54+00:00","2020-05-19T12:32:23+00:00","2020-05-19T12:33:01+00:00","2020-05-19T12:33:07+00:00","2020-05-19T12:33:32+00:00","2020-05-19T12:36:46+00:00","2020-05-19T08:43:50+00:00","2020-05-19T20:49:41+00:00","2020-05-20T15:03:50+00:00","2020-05-20T15:10:45+00:00","2020-05-20T15:13:14+00:00","2020-05-20T15:27:56+00:00","2020-05-20T15:28:05+00:00","2020-05-20T15:34:37+00:00","2020-05-21T13:13:42+00:00","2020-05-21T13:15:45+00:00","2020-05-21T13:15:55+00:00","2020-05-21T13:18:37+00:00","2020-05-21T13:18:35+00:00","2020-05-21T13:20:06+00:00","2020-05-21T13:20:09+00:00","2020-05-21T13:21:02+00:00","2020-05-21T13:20:59+00:00","2020-05-21T13:21:47+00:00","2020-05-21T13:23:35+00:00","2020-05-21T13:23:41+00:00","2020-05-21T13:23:37+00:00","2020-05-21T13:24:25+00:00","2020-05-21T13:25:14+00:00","2020-05-21T13:25:50+00:00","2020-05-21T13:25:56+00:00","2020-05-21T13:26:06+00:00","2020-05-21T13:27:44+00:00","2020-05-21T13:29:08+00:00","2020-05-21T13:29:19+00:00","2020-05-21T13:30:13+00:00","2020-05-21T13:34:50+00:00","2020-05-21T13:36:18+00:00","2020-05-21T13:36:28+00:00","2020-05-21T13:36:49+00:00","2020-05-21T13:38:28+00:00","2020-05-21T13:38:53+00:00","2020-05-21T13:38:41+00:00","2020-05-21T13:38:56+00:00","2020-05-21T13:40:32+00:00","2020-05-21T13:41:37+00:00","2020-05-21T13:41:46+00:00","2020-05-21T13:41:56+00:00","2020-05-21T13:45:20+00:00","2020-05-21T13:45:29+00:00","2020-05-21T13:45:37+00:00","2020-05-21T13:45:41+00:00","2020-05-21T13:51:51+00:00","2020-05-21T13:52:06+00:00","2020-05-21T13:51:59+00:00","2020-05-21T13:52:25+00:00","2020-05-21T13:55:55+00:00","2020-05-21T13:56:12+00:00","2020-05-21T13:57:35+00:00","2020-05-21T13:57:44+00:00","2020-05-21T13:58:17+00:00","2020-05-21T13:58:00+00:00","2020-05-21T14:01:35+00:00","2020-05-21T14:04:12+00:00","2020-05-21T14:04:25+00:00","2020-05-21T14:05:35+00:00","2020-05-21T14:05:44+00:00","2020-05-21T14:07:05+00:00","2020-05-21T14:08:16+00:00","2020-05-21T14:10:24+00:00","2020-05-21T14:11:42+00:00","2020-05-21T14:12:13+00:00","2020-05-21T14:11:57+00:00","2020-05-21T14:12:28+00:00","2020-05-26T17:07:35+00:00","2020-05-26T17:08:12+00:00","2020-06-01T10:26:21+00:00","2020-06-01T09:34:11+00:00","2020-06-01T10:51:35+00:00","2020-06-01T09:35:12+00:00","2020-06-01T11:04:41+00:00","2020-06-01T10:48:18+00:00","2020-06-02T09:18:45+00:00","2020-06-01T09:16:14+00:00","2020-06-01T09:21:00+00:00","2020-06-02T09:37:25+00:00","2020-06-02T09:52:01+00:00","2020-06-02T09:38:26+00:00","2020-06-01T08:47:48+00:00","2020-06-01T10:39:01+00:00","2020-06-01T10:59:49+00:00","2020-06-01T08:48:49+00:00","2020-06-01T09:26:50+00:00","2020-06-01T11:21:17+00:00","2020-06-01T10:38:57+00:00","2020-06-01T10:27:27+00:00","2020-06-05T05:28:03+00:00","2020-06-02T07:44:28+00:00","2020-06-02T10:14:53+00:00","2020-06-01T10:08:24+00:00","2020-06-10T13:50:37+00:00","2020-06-03T10:18:19+00:00","2020-06-03T10:00:48+00:00","2020-06-01T08:26:58+00:00","2020-06-05T08:33:34+00:00","2020-06-05T08:34:35+00:00","2020-06-05T00:00:00+00:00","2020-06-04T16:13:10+00:00","2020-06-04T16:35:47+00:00","2020-06-04T16:40:53+00:00","2020-06-05T14:37:40+00:00","2020-06-05T14:44:11+00:00","2020-06-05T04:43:39+00:00","2020-06-05T02:36:50+00:00","2020-06-05T02:42:22+00:00","2020-06-09T18:38:27+00:00","2020-06-09T09:56:04+00:00","2020-06-09T10:33:51+00:00","2020-06-09T10:34:01+00:00","2020-06-09T11:09:40+00:00","2020-06-09T11:11:07+00:00","2020-06-09T11:13:38+00:00","2020-06-09T11:29:06+00:00","2020-06-09T11:33:03+00:00","2020-06-09T11:33:10+00:00","2020-06-09T11:33:07+00:00","2020-06-09T11:34:19+00:00","2020-06-09T11:36:46+00:00","2020-06-09T11:39:57+00:00","2020-06-09T11:39:59+00:00","2020-06-09T11:46:57+00:00","2020-06-09T11:47:01+00:00","2020-06-09T11:50:02+00:00","2020-06-09T11:50:16+00:00","2020-06-09T11:50:45+00:00","2020-06-09T11:50:53+00:00","2020-06-09T11:51:46+00:00","2020-06-09T11:53:58+00:00","2020-06-09T11:55:29+00:00","2020-06-09T11:55:08+00:00","2020-06-09T11:55:51+00:00","2020-06-09T11:56:08+00:00","2020-06-09T11:55:57+00:00","2020-06-09T11:58:30+00:00","2020-06-09T11:59:13+00:00","2020-06-09T12:00:04+00:00","2020-06-09T13:29:13+00:00","2020-06-09T13:30:03+00:00","2020-06-09T13:36:23+00:00","2020-06-09T13:53:19+00:00","2020-06-09T13:54:48+00:00","2020-06-09T14:05:44+00:00","2020-06-09T15:33:40+00:00","2020-06-09T15:35:22+00:00","2020-06-09T15:48:39+00:00","2020-06-10T11:46:55+00:00","2020-06-10T11:48:02+00:00","2020-06-10T17:40:09+00:00","2020-06-11T09:49:33+00:00","2020-06-11T09:49:45+00:00","2020-06-11T09:50:34+00:00","2020-06-11T09:52:04+00:00","2020-06-11T09:52:07+00:00","2020-06-11T09:55:28+00:00","2020-06-11T10:03:12+00:00","2020-06-11T10:03:53+00:00","2020-06-11T10:03:40+00:00","2020-06-11T10:05:54+00:00","2020-06-11T10:05:59+00:00","2020-06-11T17:16:41+00:00","2020-06-11T10:02:44+00:00","2020-06-11T09:50:37+00:00","2020-06-11T10:03:20+00:00","2020-06-11T10:03:15+00:00","2020-06-11T10:11:43+00:00","2020-06-11T10:06:27+00:00","2020-06-11T10:11:48+00:00","2020-06-11T10:11:41+00:00","2020-06-16T15:34:07+00:00","2020-06-16T15:34:58+00:00","2020-06-16T15:41:59+00:00","2020-06-17T18:54:39+00:00","2020-06-18T09:49:47+00:00","2020-06-19T17:08:43+00:00","2020-06-19T17:08:29+00:00","2020-06-19T17:09:56+00:00","2020-06-19T17:10:42+00:00","2020-06-19T17:10:17+00:00","2020-06-16T14:42:03+00:00","2020-06-29T19:56:46+00:00","2020-07-01T10:53:43+00:00","2020-07-01T10:51:43+00:00","2020-07-01T10:52:43+00:00","2020-07-01T10:54:40+00:00","2020-07-01T10:55:40+00:00","2020-07-01T10:57:54+00:00","2020-07-01T10:57:54+00:00","2020-07-01T10:57:54+00:00","2020-07-01T10:57:54+00:00","2020-07-01T10:57:54+00:00","2020-07-01T10:57:54+00:00","2020-07-01T10:57:54+00:00","2020-07-01T10:57:54+00:00","2020-07-01T10:57:54+00:00","2020-07-01T10:57:54+00:00","2020-07-01T10:57:54+00:00","2020-07-01T10:57:54+00:00","2020-07-01T10:57:54+00:00","2020-07-01T10:57:54+00:00","2020-07-01T10:57:54+00:00","2020-07-01T10:57:54+00:00","2020-07-01T13:02:48+00:00","2020-07-01T14:00:13+00:00","2020-07-01T16:44:38+00:00","2020-07-02T13:03:12+00:00","2020-07-02T13:04:12+00:00","2020-07-02T13:04:18+00:00","2020-07-02T13:07:54+00:00","2020-07-02T13:08:54+00:00","2020-07-02T13:08:57+00:00","2020-07-02T13:19:13+00:00","2020-07-02T13:20:13+00:00","2020-07-02T13:20:16+00:00","2020-07-02T13:21:18+00:00","2020-07-02T13:22:18+00:00","2020-07-02T13:22:22+00:00","2020-07-02T13:23:22+00:00","2020-07-02T13:23:27+00:00","2020-07-02T13:25:37+00:00","2020-07-02T13:24:27+00:00","2020-07-02T13:25:47+00:00","2020-07-02T13:26:03+00:00","2020-07-02T13:27:03+00:00","2020-07-06T17:20:10+00:00","2020-07-06T19:21:32+00:00","2020-07-06T21:00:40+00:00","2020-07-08T16:04:12+00:00","2020-07-08T17:33:23+00:00","2020-07-09T21:02:00+00:00","2020-07-09T15:00:07+00:00","2020-07-09T14:56:07+00:00","2020-07-13T09:35:59+00:00","2020-07-23T09:28:14+00:00","2020-07-23T09:29:04+00:00","2020-07-15T15:57:31+00:00","2020-07-15T17:00:42+00:00","2020-07-15T17:01:56+00:00","2020-07-16T11:01:20+00:00","2020-07-16T11:03:24+00:00","2020-07-16T11:06:52+00:00","2020-07-16T11:08:52+00:00","2020-07-21T15:55:06+00:00","2020-07-21T16:01:46+00:00","2020-07-21T08:29:39+00:00","2020-07-21T08:29:48+00:00","2020-07-21T08:46:01+00:00","2020-07-21T09:28:12+00:00","2020-07-22T12:46:53+00:00","2020-07-22T12:48:05+00:00","2020-07-22T12:47:18+00:00","2020-07-22T12:47:22+00:00","2020-07-22T12:47:29+00:00","2020-07-22T14:56:09+00:00","2020-07-22T14:59:29+00:00","2020-07-22T15:02:24+00:00","2020-07-22T15:07:36+00:00","2020-07-22T15:07:43+00:00","2020-07-22T15:09:31+00:00","2020-07-23T08:14:15+00:00","2020-07-23T08:14:19+00:00","2020-07-23T08:14:58+00:00","2020-07-24T09:56:02+00:00","2020-07-24T09:56:25+00:00","2020-07-29T09:37:28+00:00","2020-07-29T09:37:39+00:00","2020-07-28T10:17:43+00:00","2020-07-28T10:17:59+00:00","2020-07-28T10:18:04+00:00","2020-07-28T10:17:55+00:00","2020-07-28T10:18:09+00:00","2020-07-28T10:18:38+00:00","2020-07-28T10:18:45+00:00","2020-07-29T10:08:25+00:00","2020-07-28T17:33:44+00:00","2020-07-29T13:18:17+00:00","2020-07-29T20:47:37+00:00","2020-07-30T12:01:53+00:00","2020-07-30T12:02:08+00:00","2020-07-30T12:02:16+00:00","2020-07-30T14:22:50+00:00","2020-07-30T15:01:20+00:00","2020-07-30T15:01:57+00:00","2020-07-30T15:05:45+00:00","2020-07-30T15:05:51+00:00","2020-07-30T17:34:43+00:00","2020-07-31T15:19:43+00:00","2020-08-03T10:44:29+00:00","2020-08-03T13:31:09+00:00","2020-08-03T13:31:18+00:00","2020-08-03T16:58:12+00:00","2020-08-03T16:58:20+00:00","2020-08-07T19:52:29+00:00","2020-08-11T13:18:17+00:00","2020-08-12T14:22:50+00:00","2020-08-12T15:01:57+00:00","2020-08-12T15:01:20+00:00","2020-08-12T15:05:45+00:00","2020-08-12T15:05:51+00:00","2020-08-11T20:47:37+00:00","2020-08-10T11:00:00+00:00","2020-08-11T17:30:00+00:00","2020-08-12T12:20:00+00:00","2020-08-07T18:28:28+00:00","2020-08-12T15:19:43+00:00","2020-08-07T21:54:34+00:00","2020-08-11T20:05:25+00:00","2020-08-12T17:38:43+00:00","2020-08-11T09:37:39+00:00","2020-08-12T09:35:00+00:00","2020-08-11T11:15:00+00:00","2020-08-14T11:30:00+00:00","2020-08-11T15:20:00+00:00","2020-08-13T10:15:00+00:00","2020-08-10T09:40:00+00:00","2020-08-10T15:34:00+00:00","2020-08-10T18:45:00+00:00","2020-08-12T18:25:00+00:00","2020-08-11T08:25:17+00:00","2020-08-09T02:00:00+00:00","2020-08-09T05:40:00+00:00","2020-08-14T18:40:32+00:00","2014-03-03T07:45:26+00:00","2020-01-06T10:39:59+00:00","2014-10-23T08:26:08+00:00","2014-12-02T19:10:20+00:00","2014-07-21T11:09:41+00:00","2014-09-01T20:59:59+00:00","2015-10-07T19:41:06+00:00","2015-11-18T14:38:00+00:00","2016-01-20T11:53:00+00:00","2014-02-19T08:54:12+00:00","2018-04-12T09:08:55+00:00","2018-04-12T09:07:39+00:00","2016-03-01T01:00:00+00:00","2015-02-09T10:45:28+00:00","2015-02-09T11:28:31+00:00","2015-01-15T14:54:29+00:00","2015-01-22T08:44:55+00:00","2014-12-13T13:19:00+00:00","2014-12-13T13:19:00+00:00","2014-12-04T21:59:59+00:00","2014-12-08T21:59:59+00:00","2014-12-09T20:20:00+00:00","2014-12-09T06:07:21+00:00","2014-12-09T05:44:00+00:00","2014-12-03T05:48:00+00:00","2014-12-09T05:45:00+00:00","2014-12-10T08:59:47+00:00","2014-12-22T10:59:26+00:00","2014-12-19T03:42:32+00:00","2014-12-22T08:42:40+00:00","2015-01-27T12:45:10+00:00","2015-01-27T12:44:52+00:00","2015-01-27T12:45:00+00:00","2015-01-27T12:45:16+00:00","2015-01-27T12:44:41+00:00","2015-01-27T12:45:23+00:00","2015-01-26T11:20:12+00:00","2015-02-09T16:45:00+00:00","2015-01-29T18:46:14+00:00","2015-02-09T09:18:21+00:00","2015-02-08T11:52:48+00:00","2015-02-09T11:27:26+00:00","2015-02-09T10:44:01+00:00","2015-02-09T11:27:24+00:00","2015-02-09T11:23:01+00:00","2015-02-09T13:05:17+00:00","2015-02-11T07:10:35+00:00","2015-02-11T09:25:40+00:00","2015-02-24T21:11:20+00:00","2015-02-24T22:11:36+00:00","2015-04-29T09:04:23+00:00","2015-05-20T09:00:00+00:00","2015-05-20T09:00:00+00:00","2015-05-14T18:00:00+00:00","2015-05-18T09:00:00+00:00","2015-05-20T13:32:43+00:00","2015-06-04T14:22:03+00:00","2015-06-04T13:37:56+00:00","2015-06-15T18:19:42+00:00","2015-06-15T17:48:34+00:00","2015-06-16T11:52:44+00:00","2015-06-16T14:31:23+00:00","2015-06-16T16:40:38+00:00","2015-06-16T11:49:06+00:00","2015-06-16T16:41:37+00:00","2015-06-15T23:14:45+00:00","2015-06-16T00:20:12+00:00","2015-06-16T17:20:54+00:00","2015-06-15T23:52:26+00:00","2015-06-16T16:40:29+00:00","2013-10-10T09:06:00+00:00","2013-10-10T11:02:57+00:00","2014-06-10T11:27:56+00:00","2014-06-23T07:46:00+00:00","2014-07-17T08:55:19+00:00","2014-07-17T08:48:41+00:00","2014-07-22T09:45:05+00:00","2014-07-22T11:36:14+00:00","2014-07-24T20:59:59+00:00","2014-07-25T07:12:00+00:00","2014-07-28T11:57:45+00:00","2014-07-28T12:21:45+00:00","2014-07-28T12:46:14+00:00","2014-07-28T12:46:17+00:00","2014-07-29T23:13:32+00:00","2014-07-31T07:50:33+00:00","2014-07-31T20:59:59+00:00","2014-08-04T13:23:24+00:00","2014-08-21T08:49:32+00:00","2014-09-12T20:59:59+00:00","2014-09-02T09:43:26+00:00","2015-12-21T08:51:07+00:00","2015-12-20T19:35:40+00:00","2016-01-11T11:42:08+00:00","2015-11-26T09:30:38+00:00","2015-11-18T14:38:00+00:00","2015-11-18T15:13:40+00:00","2015-11-27T14:53:08+00:00","2015-12-02T15:55:36+00:00","2015-12-07T07:47:51+00:00","2015-12-08T13:59:59+00:00","2014-12-22T07:14:26+00:00","2015-01-29T19:52:46+00:00","2015-01-29T19:53:17+00:00","2015-06-10T18:15:00+00:00","2015-06-14T00:23:59+00:00","2015-06-18T04:15:57+00:00","2015-11-23T20:07:06+00:00","2015-12-16T05:36:57+00:00","2015-12-16T07:29:06+00:00","2016-01-20T12:45:00+00:00","2016-01-06T09:29:00+00:00","2015-01-11T14:20:32+00:00","2015-01-12T13:10:06+00:00","2015-01-07T14:32:00+00:00","2015-01-16T14:09:59+00:00","2014-10-21T09:06:39+00:00","2014-10-29T10:19:52+00:00","2014-10-29T19:26:00+00:00","2014-10-27T11:48:04+00:00","2014-10-24T18:07:33+00:00","2013-01-02T09:55:00+00:00","2012-12-27T09:35:08+00:00","2013-08-07T11:23:19+00:00","2013-12-16T07:40:00+00:00","2014-03-13T13:48:00+00:00","2014-05-02T11:43:22+00:00","2016-03-24T09:38:34+00:00","2016-03-24T09:08:48+00:00","2016-03-31T14:34:26+00:00","2014-10-31T19:45:00+00:00","2016-01-21T09:44:00+00:00","2016-03-15T05:52:00+00:00","2015-10-02T10:00:00+00:00","2015-10-07T19:12:18+00:00","2015-10-08T18:35:47+00:00","2015-10-12T10:42:11+00:00","2015-10-12T10:42:07+00:00","2015-10-27T09:00:20+00:00","2014-11-18T21:59:59+00:00","2014-11-18T21:59:59+00:00","2014-10-07T13:53:31+00:00","2014-08-21T10:50:00+00:00","2014-08-21T07:50:00+00:00","2014-08-21T02:50:00+00:00","2014-08-21T12:25:48+00:00","2014-08-21T12:42:31+00:00","2014-08-21T13:31:35+00:00","2014-08-25T04:51:00+00:00","2014-09-01T12:01:06+00:00","2015-06-09T12:29:01+00:00","2015-10-02T10:00:00+00:00","2014-11-14T14:04:00+00:00","2014-09-04T16:00:00+00:00","2015-01-28T19:17:24+00:00","2013-01-03T09:00:00+00:00","2014-12-13T14:28:23+00:00","2019-03-12T11:32:30+00:00","2019-03-12T10:41:22+00:00","2019-03-12T09:18:14+00:00","2012-05-30T08:20:00+00:00","2014-10-28T20:24:30+00:00","2014-11-11T21:08:03+00:00","2014-11-17T13:14:04+00:00","2014-11-19T13:19:32+00:00","2014-12-09T09:18:01+00:00","2014-11-27T08:55:16+00:00","2014-11-27T09:02:43+00:00","2014-11-27T09:36:17+00:00","2014-12-08T12:02:19+00:00","2014-12-08T14:57:52+00:00","2014-12-09T21:30:00+00:00","2014-12-24T08:42:22+00:00","2015-01-08T10:48:02+00:00","2015-01-27T10:37:31+00:00","2015-01-26T11:18:11+00:00","2015-02-09T13:05:26+00:00","2015-01-28T14:39:25+00:00","2015-01-28T15:29:17+00:00","2015-01-28T16:39:58+00:00","2015-02-11T12:56:35+00:00","2015-01-29T16:26:59+00:00","2015-01-29T20:19:39+00:00","2015-02-05T20:29:20+00:00","2015-02-06T13:05:51+00:00","2015-02-09T09:18:14+00:00","2015-02-09T10:17:16+00:00","2015-02-09T11:27:45+00:00","2015-02-09T12:57:22+00:00","2015-02-11T22:39:28+00:00","2015-02-18T01:51:50+00:00","2015-02-22T12:13:00+00:00","2015-02-23T04:37:35+00:00","2015-02-23T05:45:56+00:00","2015-02-23T08:00:05+00:00","2015-04-30T17:00:00+00:00","2015-04-28T07:20:00+00:00","2015-04-27T21:20:33+00:00","2015-04-24T12:45:01+00:00","2015-06-10T11:13:47+00:00","2015-05-18T08:12:54+00:00","2015-05-19T21:48:46+00:00","2015-05-19T21:49:21+00:00","2015-05-19T00:00:47+00:00","2015-05-18T23:59:07+00:00","2015-05-19T21:49:18+00:00","2015-05-18T08:12:16+00:00","2015-05-17T22:12:18+00:00","2015-05-19T09:59:33+00:00","2015-05-17T22:12:16+00:00","2015-05-19T09:59:06+00:00","2015-05-19T11:48:46+00:00","2015-05-19T11:49:21+00:00","2015-05-19T08:53:00+00:00","2015-05-18T08:12:18+00:00","2015-05-19T21:52:23+00:00","2015-05-19T10:00:47+00:00","2015-05-19T09:59:07+00:00","2015-05-18T23:59:33+00:00","2015-05-17T22:12:54+00:00","2015-05-07T10:08:42+00:00","2015-05-29T17:56:40+00:00","2015-05-19T11:49:18+00:00","2015-05-17T20:44:00+00:00","2015-05-17T23:26:53+00:00","2015-05-19T08:29:56+00:00","2015-05-29T18:23:34+00:00","2015-05-18T22:29:56+00:00","2015-05-19T02:13:58+00:00","2015-05-17T10:44:00+00:00","2015-05-18T23:59:06+00:00","2015-05-18T22:53:00+00:00","2015-05-19T12:13:58+00:00","2015-05-14T09:02:27+00:00","2015-05-18T09:26:53+00:00","2015-05-19T09:59:07+00:00","2015-05-19T11:52:23+00:00","2015-06-10T09:48:23+00:00","2015-06-10T11:12:06+00:00","2015-06-10T11:11:56+00:00","2015-08-11T02:47:48+00:00","2015-08-18T07:48:10+00:00","2015-08-24T19:35:30+00:00","2015-08-26T06:32:24+00:00","2015-09-21T15:48:37+00:00","2015-09-30T11:57:43+00:00","2015-10-01T10:04:17+00:00","2015-10-01T10:03:26+00:00","2015-10-09T07:36:00+00:00","2015-10-19T16:41:01+00:00","2015-10-18T22:05:00+00:00","2015-10-09T18:43:16+00:00","2015-11-09T14:22:46+00:00","2015-11-09T14:26:51+00:00","2015-11-19T08:10:00+00:00","2015-12-02T15:51:21+00:00","2015-12-02T15:51:25+00:00","2015-12-03T09:16:00+00:00","2015-12-05T18:36:34+00:00","2015-12-06T02:12:09+00:00","2015-12-07T09:35:43+00:00","2015-12-11T19:36:39+00:00","2015-12-22T00:25:29+00:00","2015-12-22T09:09:26+00:00","2015-10-02T10:00:00+00:00","2014-11-23T08:59:00+00:00","2014-11-24T08:59:00+00:00","2014-12-13T14:27:35+00:00","2014-11-24T08:31:24+00:00","2016-03-01T11:00:00+00:00","2015-05-14T15:00:00+00:00","2015-05-14T17:47:39+00:00","2015-05-19T21:54:35+00:00","2015-10-01T12:44:37+00:00","2020-05-18T15:16:26+00:00"] var data = dates.map((start, i) => ({ start, id: i, duration: i % 4, groupDay: moment(start).format('YYYY-MM-DD') })) data = data.reduce((acc, te) => { acc[te.id] = te; return acc; }, {})
Tests:
Lodash
_.chain(data) .map(timeEntry => timeEntry) .sortBy('start') .reverse() .filter(timeEntry => timeEntry.duration >= 0) .groupBy(timeEntry => moment(timeEntry.start).format('YYYY-MM-DD')) .value()
Native
Object.values(data) .filter(timeEntry => timeEntry.duration >= 0) .sort((a, b) => a.start.localeCompare(b.start)) .reverse() .reduce((acc, timeEntry) => { const key = moment(timeEntry.start).format('YYYY-MM-DD') ;(acc[key] || (acc[key] = [])).push(timeEntry) return acc }, {})
Lodash with defined group
_.chain(data) .map(timeEntry => timeEntry) .sortBy('start') .reverse() .filter(timeEntry => timeEntry.duration >= 0) .groupBy(timeEntry => timeEntry.groupDay) .value()
Lodash with substring
_.chain(data) .map(timeEntry => timeEntry) .sortBy('start') .reverse() .filter(timeEntry => timeEntry.duration >= 0) .groupBy(timeEntry => timeEntry.start.substring(0, 10)) .value()
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
Lodash
Native
Lodash with defined group
Lodash with substring
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
llama3.2:3b
, generated one year ago):
It seems like you're analyzing benchmark results for Lodash and native JavaScript code to group time entries by date. Given the data, here are my observations: 1. The latest benchmark result shows that "Lodash with defined group" performs best, with an average of approximately 3699 executions per second. 2. The "Lodash with substring" test has a lower execution rate, averaging around 3220 executions per second. 3. The "Lodash" and "Native" tests have lower execution rates, averaging around 1177 and 1135 executions per second, respectively. To improve performance for the "Lodash with defined group" benchmark: * Consider optimizing the `groupBy` function by using a data structure like a hash table or object to store the grouped entries. * Avoid using unnecessary string formatting operations within the `groupBy` function. Instead, use Moment.js to format dates only when necessary. To improve performance for the "Native" benchmark: * Use a data structure that supports fast grouping and sorting, such as an array with a custom comparator or a library like `underscore.js`. * Consider implementing a more efficient filtering algorithm to reduce the number of unnecessary iterations over the data.
Related benchmarks:
dsdsdsdsdsdsds
simple stuff
simple stuffddd
simple stuffddd x2
Comments
Confirm delete:
Do you really want to delete benchmark?