Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
testing performance for dates
(version: 0)
Comparing performance of:
1 vs 2 vs 3 vs 4
Created:
7 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.0/moment.min.js'></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.2/lodash.min.js'></script>
Script Preparation code:
var dates = ['1070-07-01T00:00:00Z','1267-12-01T00:00:00Z','1743-08-01T00:00:00Z','1787-08-01T00:00:00Z','2017-09-01T00:00:00Z','2017-10-01T00:00:00Z','2017-11-01T00:00:00Z','2017-12-01T00:00:00Z','2018-01-01T00:00:00Z','2018-03-01T00:00:00Z','2018-05-01T00:00:00Z','2018-06-01T00:00:00Z','2186-07-01T00:00:00Z','2275-07-01T00:00:00Z','2348-01-01T00:00:00Z','2411-01-01T00:00:00Z','2503-12-01T00:00:00Z','2536-01-01T00:00:00Z','3297-12-01T00:00:00Z','3629-11-01T00:00:00Z','3685-10-01T00:00:00Z','3694-10-01T00:00:00Z','3706-01-01T00:00:00Z','3709-12-01T00:00:00Z','3712-10-01T00:00:00Z','3729-10-01T00:00:00Z','3735-09-01T00:00:00Z','3749-09-01T00:00:00Z','3754-09-01T00:00:00Z','3765-09-01T00:00:00Z','3768-10-01T00:00:00Z','3801-10-01T00:00:00Z','3811-10-01T00:00:00Z','3814-10-01T00:00:00Z','3815-09-01T00:00:00Z','3860-09-01T00:00:00Z','3861-10-01T00:00:00Z','3871-10-01T00:00:00Z','3875-10-01T00:00:00Z','3882-09-01T00:00:00Z','3886-10-01T00:00:00Z','3903-10-01T00:00:00Z','3906-10-01T00:00:00Z','3921-09-01T00:00:00Z','3957-09-01T00:00:00Z','3965-10-01T00:00:00Z','3973-10-01T00:00:00Z','3978-09-01T00:00:00Z','3994-09-01T00:00:00Z','4002-09-01T00:00:00Z','4032-09-01T00:00:00Z','4042-09-01T00:00:00Z','4044-09-01T00:00:00Z','4051-09-01T00:00:00Z','4057-10-01T00:00:00Z','4072-10-01T00:00:00Z','4080-10-01T00:00:00Z','4088-09-01T00:00:00Z','4090-09-01T00:00:00Z','4100-10-01T00:00:00Z','4129-10-01T00:00:00Z','4145-09-01T00:00:00Z','4151-09-01T00:00:00Z','4152-09-01T00:00:00Z','4152-10-01T00:00:00Z','4169-09-01T00:00:00Z','4182-09-01T00:00:00Z','4188-09-01T00:00:00Z','4200-09-01T00:00:00Z','4216-10-01T00:00:00Z','4221-09-01T00:00:00Z','4224-10-01T00:00:00Z','4225-09-01T00:00:00Z','4254-09-01T00:00:00Z','4265-10-01T00:00:00Z','4283-10-01T00:00:00Z','4298-10-01T00:00:00Z','4306-09-01T00:00:00Z','4317-10-01T00:00:00Z','4326-10-01T00:00:00Z','4328-09-01T00:00:00Z','4329-10-01T00:00:00Z','4334-09-01T00:00:00Z','4345-09-01T00:00:00Z','4355-09-01T00:00:00Z','4357-09-01T00:00:00Z','4361-10-01T00:00:00Z','4366-10-01T00:00:00Z','4383-10-01T00:00:00Z','4383-11-01T00:00:00Z','4387-10-01T00:00:00Z','4417-09-01T00:00:00Z','4418-09-01T00:00:00Z','4419-09-01T00:00:00Z','4429-10-01T00:00:00Z','4433-03-01T00:00:00Z','4482-10-01T00:00:00Z','4488-10-01T00:00:00Z','4509-09-01T00:00:00Z','4513-10-01T00:00:00Z','4516-09-01T00:00:00Z','4517-09-01T00:00:00Z','4517-10-01T00:00:00Z','4524-10-01T00:00:00Z','4546-10-01T00:00:00Z','4551-09-01T00:00:00Z','4560-09-01T00:00:00Z','4561-10-01T00:00:00Z','4561-12-01T00:00:00Z','4563-09-01T00:00:00Z','4586-09-01T00:00:00Z','4588-10-01T00:00:00Z','4608-09-01T00:00:00Z','4609-09-01T00:00:00Z','4610-10-01T00:00:00Z','4617-10-01T00:00:00Z','4624-09-01T00:00:00Z','4627-09-01T00:00:00Z','4637-10-01T00:00:00Z','4648-09-01T00:00:00Z','4654-09-01T00:00:00Z','4669-10-01T00:00:00Z','4673-10-01T00:00:00Z','4683-10-01T00:00:00Z','4684-09-01T00:00:00Z','4685-09-01T00:00:00Z','4688-09-01T00:00:00Z','4689-09-01T00:00:00Z','4690-09-01T00:00:00Z','4699-09-01T00:00:00Z','4703-08-01T00:00:00Z','4710-09-01T00:00:00Z','4721-09-01T00:00:00Z','4733-10-01T00:00:00Z','4756-10-01T00:00:00Z','4762-09-01T00:00:00Z','4763-10-01T00:00:00Z','4796-09-01T00:00:00Z','4800-10-01T00:00:00Z','4812-10-01T00:00:00Z','4848-10-01T00:00:00Z','4850-10-01T00:00:00Z','4852-09-01T00:00:00Z','4869-10-01T00:00:00Z','4870-09-01T00:00:00Z','4879-09-01T00:00:00Z','4887-10-01T00:00:00Z','4890-09-01T00:00:00Z','4896-10-01T00:00:00Z','4901-02-01T00:00:00Z','4906-10-01T00:00:00Z','4908-09-01T00:00:00Z','4909-10-01T00:00:00Z','4926-09-01T00:00:00Z','4930-09-01T00:00:00Z','4932-10-01T00:00:00Z','4940-09-01T00:00:00Z','4941-10-01T00:00:00Z','4961-10-01T00:00:00Z','4989-10-01T00:00:00Z','5004-10-01T00:00:00Z','5008-09-01T00:00:00Z','5010-07-01T00:00:00Z','5011-09-01T00:00:00Z','5033-09-01T00:00:00Z','5042-09-01T00:00:00Z','5059-02-01T00:00:00Z','5064-10-01T00:00:00Z','5073-09-01T00:00:00Z','5075-10-01T00:00:00Z','5076-10-01T00:00:00Z','5087-09-01T00:00:00Z','5102-10-01T00:00:00Z','5103-10-01T00:00:00Z','5108-09-01T00:00:00Z','5117-09-01T00:00:00Z','5178-02-01T00:00:00Z','5182-12-01T00:00:00Z','5190-05-01T00:00:00Z','5208-10-01T00:00:00Z','5218-09-01T00:00:00Z','5218-10-01T00:00:00Z','5225-09-01T00:00:00Z','5241-09-01T00:00:00Z','5249-09-01T00:00:00Z','5259-10-01T00:00:00Z','5260-10-01T00:00:00Z','5269-10-01T00:00:00Z','5289-09-01T00:00:00Z','5314-10-01T00:00:00Z','5315-10-01T00:00:00Z','5316-09-01T00:00:00Z','5327-10-01T00:00:00Z','5339-10-01T00:00:00Z','5342-10-01T00:00:00Z','5345-10-01T00:00:00Z','5358-09-01T00:00:00Z','5369-09-01T00:00:00Z','5376-10-01T00:00:00Z','5389-10-01T00:00:00Z','5392-10-01T00:00:00Z','5403-09-01T00:00:00Z','5410-09-01T00:00:00Z','5418-09-01T00:00:00Z','5421-09-01T00:00:00Z','5433-09-01T00:00:00Z','5437-09-01T00:00:00Z','5440-10-01T00:00:00Z','5443-09-01T00:00:00Z','5449-04-01T00:00:00Z','5469-12-01T00:00:00Z','5483-09-01T00:00:00Z','5486-10-01T00:00:00Z','5491-10-01T00:00:00Z','5510-09-01T00:00:00Z','5512-10-01T00:00:00Z','5515-09-01T00:00:00Z','5517-09-01T00:00:00Z','5524-09-01T00:00:00Z','5532-10-01T00:00:00Z','5536-10-01T00:00:00Z','5569-10-01T00:00:00Z','5595-09-01T00:00:00Z','5603-10-01T00:00:00Z','5614-01-01T00:00:00Z','5616-09-01T00:00:00Z','5628-09-01T00:00:00Z','5633-10-01T00:00:00Z','5641-10-01T00:00:00Z','5643-10-01T00:00:00Z','5648-09-01T00:00:00Z','5648-10-01T00:00:00Z','5662-10-01T00:00:00Z','5668-09-01T00:00:00Z','5674-09-01T00:00:00Z','5688-10-01T00:00:00Z','5697-09-01T00:00:00Z','5713-09-01T00:00:00Z','5718-09-01T00:00:00Z','5718-10-01T00:00:00Z','5721-10-01T00:00:00Z','5726-10-01T00:00:00Z','5733-10-01T00:00:00Z','5741-10-01T00:00:00Z','5750-09-01T00:00:00Z','5766-10-01T00:00:00Z','5794-09-01T00:00:00Z','5795-09-01T00:00:00Z','5800-09-01T00:00:00Z','5801-09-01T00:00:00Z','5808-06-01T00:00:00Z','5834-09-01T00:00:00Z','5837-10-01T00:00:00Z','5839-09-01T00:00:00Z','5852-09-01T00:00:00Z','5871-10-01T00:00:00Z','5877-09-01T00:00:00Z','5883-09-01T00:00:00Z','5908-10-01T00:00:00Z','5914-10-01T00:00:00Z','5920-12-01T00:00:00Z','5932-10-01T00:00:00Z','5936-09-01T00:00:00Z','5937-09-01T00:00:00Z','5941-06-01T00:00:00Z','5944-09-01T00:00:00Z','5969-09-01T00:00:00Z','5981-10-01T00:00:00Z','5989-08-01T00:00:00Z','5990-10-01T00:00:00Z','6001-10-01T00:00:00Z','6019-09-01T00:00:00Z','6021-10-01T00:00:00Z','6034-09-01T00:00:00Z','6038-09-01T00:00:00Z','6038-10-01T00:00:00Z','6063-10-01T00:00:00Z','6080-09-01T00:00:00Z','6082-09-01T00:00:00Z','6083-10-01T00:00:00Z','6092-09-01T00:00:00Z','6093-09-01T00:00:00Z','6095-10-01T00:00:00Z','6106-10-01T00:00:00Z','6111-10-01T00:00:00Z','6113-10-01T00:00:00Z','6121-12-01T00:00:00Z','6127-10-01T00:00:00Z','6129-09-01T00:00:00Z','6136-09-01T00:00:00Z','6137-10-01T00:00:00Z','6160-09-01T00:00:00Z','6176-09-01T00:00:00Z','6184-10-01T00:00:00Z','6185-09-01T00:00:00Z','6198-09-01T00:00:00Z','6200-09-01T00:00:00Z','6212-10-01T00:00:00Z','6220-09-01T00:00:00Z','6221-10-01T00:00:00Z','6224-10-01T00:00:00Z','6247-09-01T00:00:00Z','6255-09-01T00:00:00Z','6258-10-01T00:00:00Z','6259-09-01T00:00:00Z','6277-09-01T00:00:00Z','6281-09-01T00:00:00Z','6282-09-01T00:00:00Z','6288-09-01T00:00:00Z','6294-10-01T00:00:00Z','6297-10-01T00:00:00Z','6303-10-01T00:00:00Z','6313-09-01T00:00:00Z','6323-10-01T00:00:00Z','6325-12-01T00:00:00Z','6349-10-01T00:00:00Z','6361-09-01T00:00:00Z','6365-09-01T00:00:00Z','6367-10-01T00:00:00Z','6381-09-01T00:00:00Z','6384-10-01T00:00:00Z','6386-10-01T00:00:00Z','6387-10-01T00:00:00Z','6415-10-01T00:00:00Z','6416-10-01T00:00:00Z','6422-09-01T00:00:00Z','6442-09-01T00:00:00Z','6457-09-01T00:00:00Z','6465-09-01T00:00:00Z','6471-10-01T00:00:00Z','6475-09-01T00:00:00Z','6476-09-01T00:00:00Z','6503-10-01T00:00:00Z','6505-10-01T00:00:00Z','6518-09-01T00:00:00Z','6536-09-01T00:00:00Z','6547-09-01T00:00:00Z','6583-09-01T00:00:00Z','6585-09-01T00:00:00Z','6600-10-01T00:00:00Z','6605-10-01T00:00:00Z','6610-10-01T00:00:00Z','6615-05-01T00:00:00Z','6620-09-01T00:00:00Z','6623-10-01T00:00:00Z','6627-09-01T00:00:00Z','6636-10-01T00:00:00Z','6649-10-01T00:00:00Z','6666-09-01T00:00:00Z','6672-09-01T00:00:00Z','6688-10-01T00:00:00Z','6689-10-01T00:00:00Z','6692-09-01T00:00:00Z','6712-10-01T00:00:00Z','6724-09-01T00:00:00Z','6736-09-01T00:00:00Z','6741-10-01T00:00:00Z','6747-09-01T00:00:00Z','6758-10-01T00:00:00Z','6780-10-01T00:00:00Z','6793-10-01T00:00:00Z','6804-09-01T00:00:00Z','6823-09-01T00:00:00Z','6833-10-01T00:00:00Z','6847-09-01T00:00:00Z','6861-09-01T00:00:00Z','6863-10-01T00:00:00Z','6869-09-01T00:00:00Z','6894-10-01T00:00:00Z','6912-09-01T00:00:00Z','6912-10-01T00:00:00Z','6932-09-01T00:00:00Z','6963-09-01T00:00:00Z','6970-09-01T00:00:00Z','6973-10-01T00:00:00Z','6991-10-01T00:00:00Z','7006-10-01T00:00:00Z','7010-09-01T00:00:00Z','7013-10-01T00:00:00Z','7034-10-01T00:00:00Z','7041-09-01T00:00:00Z','7050-09-01T00:00:00Z','7052-10-01T00:00:00Z','7073-09-01T00:00:00Z','7087-10-01T00:00:00Z','7093-09-01T00:00:00Z','7118-10-01T00:00:00Z','7123-09-01T00:00:00Z','7141-09-01T00:00:00Z','7147-09-01T00:00:00Z','7155-09-01T00:00:00Z','7170-09-01T00:00:00Z','7179-10-01T00:00:00Z','7183-10-01T00:00:00Z','7184-09-01T00:00:00Z','7200-09-01T00:00:00Z','7203-09-01T00:00:00Z','7219-10-01T00:00:00Z','7241-10-01T00:00:00Z','7266-09-01T00:00:00Z','7274-09-01T00:00:00Z','7306-10-01T00:00:00Z','7309-10-01T00:00:00Z','7332-10-01T00:00:00Z','7333-09-01T00:00:00Z','7343-09-01T00:00:00Z','7360-09-01T00:00:00Z','7368-09-01T00:00:00Z','7372-10-01T00:00:00Z','7383-09-01T00:00:00Z','7386-09-01T00:00:00Z','7392-09-01T00:00:00Z','7395-10-01T00:00:00Z','7399-09-01T00:00:00Z','7399-10-01T00:00:00Z','7448-09-01T00:00:00Z','7451-10-01T00:00:00Z','7465-10-01T00:00:00Z','7469-10-01T00:00:00Z','7471-09-01T00:00:00Z','7475-09-01T00:00:00Z','7487-09-01T00:00:00Z','7494-10-01T00:00:00Z','7498-09-01T00:00:00Z','7502-10-01T00:00:00Z','7507-10-01T00:00:00Z','7508-10-01T00:00:00Z','7517-10-01T00:00:00Z','7526-09-01T00:00:00Z','7538-10-01T00:00:00Z','7546-10-01T00:00:00Z','7554-09-01T00:00:00Z','7558-09-01T00:00:00Z','7561-10-01T00:00:00Z','7562-09-01T00:00:00Z','7567-10-01T00:00:00Z','7578-10-01T00:00:00Z','7581-10-01T00:00:00Z','7584-09-01T00:00:00Z','7589-10-01T00:00:00Z','7603-10-01T00:00:00Z','7604-10-01T00:00:00Z','7622-10-01T00:00:00Z','7628-09-01T00:00:00Z','7643-09-01T00:00:00Z','7662-10-01T00:00:00Z','7666-10-01T00:00:00Z','7680-09-01T00:00:00Z','7697-10-01T00:00:00Z','7701-09-01T00:00:00Z','7727-09-01T00:00:00Z','7748-10-01T00:00:00Z','7756-10-01T00:00:00Z','7759-09-01T00:00:00Z','7779-09-01T00:00:00Z','7805-09-01T00:00:00Z','7812-09-01T00:00:00Z','7819-10-01T00:00:00Z','7828-09-01T00:00:00Z','7852-09-01T00:00:00Z','7862-09-01T00:00:00Z','7878-09-01T00:00:00Z','7891-10-01T00:00:00Z','7895-10-01T00:00:00Z','7899-09-01T00:00:00Z','7931-09-01T00:00:00Z','7942-10-01T00:00:00Z','7977-10-01T00:00:00Z','7989-09-01T00:00:00Z','7992-09-01T00:00:00Z','7998-10-01T00:00:00Z','8008-09-01T00:00:00Z','8009-10-01T00:00:00Z','8011-09-01T00:00:00Z','8020-10-01T00:00:00Z','8031-09-01T00:00:00Z','8032-10-01T00:00:00Z','8033-10-01T00:00:00Z','8046-09-01T00:00:00Z','8051-09-01T00:00:00Z','8067-10-01T00:00:00Z','8080-12-01T00:00:00Z','8082-10-01T00:00:00Z','8085-09-01T00:00:00Z','8117-09-01T00:00:00Z','8123-10-01T00:00:00Z','8124-09-01T00:00:00Z','8131-09-01T00:00:00Z','8134-09-01T00:00:00Z','8144-10-01T00:00:00Z','8145-10-01T00:00:00Z','8150-09-01T00:00:00Z','8166-12-01T00:00:00Z','8170-09-01T00:00:00Z','8178-09-01T00:00:00Z','8179-09-01T00:00:00Z','8181-09-01T00:00:00Z','8189-09-01T00:00:00Z','8193-09-01T00:00:00Z','8194-09-01T00:00:00Z','8194-10-01T00:00:00Z','8196-09-01T00:00:00Z','8197-09-01T00:00:00Z','8202-12-01T00:00:00Z','8221-09-01T00:00:00Z','8226-09-01T00:00:00Z','8244-09-01T00:00:00Z','8251-09-01T00:00:00Z','8254-10-01T00:00:00Z','8275-09-01T00:00:00Z','8276-09-01T00:00:00Z','8277-09-01T00:00:00Z','8328-09-01T00:00:00Z','8329-10-01T00:00:00Z','8330-09-01T00:00:00Z','8338-09-01T00:00:00Z','8339-09-01T00:00:00Z','8345-09-01T00:00:00Z','8388-09-01T00:00:00Z','8389-09-01T00:00:00Z','8390-09-01T00:00:00Z','8392-09-01T00:00:00Z','8404-10-01T00:00:00Z','8417-10-01T00:00:00Z','8418-09-01T00:00:00Z','8432-09-01T00:00:00Z','8437-10-01T00:00:00Z','8466-09-01T00:00:00Z','8493-10-01T00:00:00Z','8503-09-01T00:00:00Z','8509-10-01T00:00:00Z','8512-09-01T00:00:00Z','8535-10-01T00:00:00Z','8548-10-01T00:00:00Z','8553-10-01T00:00:00Z','8569-09-01T00:00:00Z','8584-10-01T00:00:00Z','8593-10-01T00:00:00Z','8600-10-01T00:00:00Z','8601-10-01T00:00:00Z','8610-10-01T00:00:00Z','8624-09-01T00:00:00Z','8625-10-01T00:00:00Z','8657-09-01T00:00:00Z','8660-10-01T00:00:00Z','8671-10-01T00:00:00Z','8697-10-01T00:00:00Z','8703-09-01T00:00:00Z','8720-01-01T00:00:00Z','8723-09-01T00:00:00Z','8735-10-01T00:00:00Z','8736-09-01T00:00:00Z','8743-10-01T00:00:00Z','8745-10-01T00:00:00Z','8759-09-01T00:00:00Z','8770-10-01T00:00:00Z','8782-09-01T00:00:00Z','8800-10-01T00:00:00Z','8823-09-01T00:00:00Z','8841-10-01T00:00:00Z','8850-10-01T00:00:00Z','8853-09-01T00:00:00Z','8861-10-01T00:00:00Z','8885-09-01T00:00:00Z','8900-09-01T00:00:00Z','8901-10-01T00:00:00Z','8915-10-01T00:00:00Z','8919-09-01T00:00:00Z','8920-10-01T00:00:00Z','8922-10-01T00:00:00Z','8937-09-01T00:00:00Z','8956-09-01T00:00:00Z','8967-10-01T00:00:00Z','8968-10-01T00:00:00Z','8985-10-01T00:00:00Z','8995-10-01T00:00:00Z','9012-10-01T00:00:00Z','9016-09-01T00:00:00Z','9021-09-01T00:00:00Z','9031-10-01T00:00:00Z','9034-10-01T00:00:00Z','9037-09-01T00:00:00Z','9039-10-01T00:00:00Z','9043-10-01T00:00:00Z','9055-10-01T00:00:00Z','9077-09-01T00:00:00Z','9078-10-01T00:00:00Z','9094-10-01T00:00:00Z','9096-10-01T00:00:00Z','9127-09-01T00:00:00Z','9130-09-01T00:00:00Z','9133-10-01T00:00:00Z','9137-10-01T00:00:00Z','9143-10-01T00:00:00Z','9144-10-01T00:00:00Z','9153-09-01T00:00:00Z','9157-09-01T00:00:00Z','9172-09-01T00:00:00Z','9201-10-01T00:00:00Z','9211-09-01T00:00:00Z','9214-09-01T00:00:00Z','9221-09-01T00:00:00Z','9226-10-01T00:00:00Z','9235-10-01T00:00:00Z','9243-10-01T00:00:00Z','9249-10-01T00:00:00Z','9251-09-01T00:00:00Z','9262-10-01T00:00:00Z','9267-09-01T00:00:00Z','9290-10-01T00:00:00Z','9304-10-01T00:00:00Z','9322-09-01T00:00:00Z','9323-09-01T00:00:00Z','9329-09-01T00:00:00Z','9334-10-01T00:00:00Z','9340-10-01T00:00:00Z','9346-09-01T00:00:00Z','9350-09-01T00:00:00Z','9352-10-01T00:00:00Z','9360-09-01T00:00:00Z','9364-10-01T00:00:00Z','9368-10-01T00:00:00Z','9379-09-01T00:00:00Z','9388-10-01T00:00:00Z','9415-10-01T00:00:00Z','9421-10-01T00:00:00Z','9428-09-01T00:00:00Z','9438-10-01T00:00:00Z','9456-09-01T00:00:00Z','9462-10-01T00:00:00Z','9490-09-01T00:00:00Z','9498-09-01T00:00:00Z','9506-10-01T00:00:00Z','9521-09-01T00:00:00Z','9529-10-01T00:00:00Z','9544-09-01T00:00:00Z','9550-09-01T00:00:00Z','9553-09-01T00:00:00Z','9555-10-01T00:00:00Z','9560-10-01T00:00:00Z','9564-09-01T00:00:00Z','9566-10-01T00:00:00Z','9572-09-01T00:00:00Z','9584-10-01T00:00:00Z','9593-10-01T00:00:00Z','9610-09-01T00:00:00Z','9611-02-01T00:00:00Z','9612-10-01T00:00:00Z','9617-10-01T00:00:00Z','9629-09-01T00:00:00Z','9630-09-01T00:00:00Z','9667-09-01T00:00:00Z','9676-10-01T00:00:00Z','9685-09-01T00:00:00Z','9688-09-01T00:00:00Z','9698-09-01T00:00:00Z','9710-10-01T00:00:00Z','9715-10-01T00:00:00Z','9729-09-01T00:00:00Z','9740-09-01T00:00:00Z','9741-09-01T00:00:00Z','9743-09-01T00:00:00Z','9747-09-01T00:00:00Z','9751-09-01T00:00:00Z','9753-10-01T00:00:00Z','9755-09-01T00:00:00Z','9759-10-01T00:00:00Z','9769-10-01T00:00:00Z','9770-10-01T00:00:00Z','9778-09-01T00:00:00Z','9785-10-01T00:00:00Z','9791-10-01T00:00:00Z','9807-09-01T00:00:00Z','9846-09-01T00:00:00Z','9853-10-01T00:00:00Z','9858-09-01T00:00:00Z','9867-10-01T00:00:00Z','9868-09-01T00:00:00Z','9888-10-01T00:00:00Z','9892-09-01T00:00:00Z','9905-09-01T00:00:00Z','9916-09-01T00:00:00Z','9917-09-01T00:00:00Z','9928-10-01T00:00:00Z','9930-10-01T00:00:00Z','9937-10-01T00:00:00Z','9970-09-01T00:00:00Z','9979-10-01T00:00:00Z','9991-09-01T00:00:00Z']; function getDatePart(dateString) { if (/.*[\+\-]\d{2}:\d{2}/.test(dateString)) { return moment(dateString.replace(/(.*)[\+\-]\d{2}:\d{2}/, '$1')); } else if(/.*Z/.test(dateString)) { return moment(dateString.replace(/(.*)Z/, '$1')); } return moment(dateString); }
Tests:
1
var boo = _.sortBy(dates, function(a, b) { return a.localeCompare(b); });
2
dates.sort(function(a, b) { return a.localeCompare(b); });
3
var boo = _.sortBy(dates);
4
_.forEach(dates, function(date) { getDatePart(date); });
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
1
2
3
4
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):
A benchmarking result in JSON format! After analyzing the input data, I'll provide a suggested solution to parse and process this data. **Solution** To parse and process this data, we can use JavaScript (with the Moment.js library for date formatting) and Lodash library for array manipulation. Here's an example code snippet: ```javascript const moment = require('moment'); const _ = require('lodash'); // Input data const benchmarkResults = JSON.parse(yourInputDataRawString); // Process each test case benchmarkResults.forEach((testCase, index) => { const testName = testCase.TestName; let benchmarkDefinition = testCase.BenchmarkDefinition; // Replace moment.js library with CDN link for simplicity benchmarkDefinition = benchmarkDefinition.replace(/moment\.\w+/, 'https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.0/moment.min.js'); if (testName === '3') { const dates = _.sortBy(benchmarkResults, function(a) { return a.localeCompare(b); }); console.log(`Sorted dates for ${testName}:`, dates); } else if (testName === '1' || testName === '2') { const sortedDates = benchmarkDefinition.split('function')[1].trim(); const datesArray = JSON.parse(sortedDates).map((dateString) => moment(dateString)); console.log(`Sorted dates for ${testName}:`, datesArray); } else if (testName === '4') { const datesToProcess = _.forEach(benchmarkResults, function(date) { getDatePart(date); }); console.log(`Processed dates for ${testName}:`, datesToProcess); } }); ``` **Explanation** 1. We first parse the input data from JSON format to a JavaScript object. 2. We then iterate through each test case using `forEach`. 3. For each test case, we replace any moment.js library references with CDN links to simplify the code. 4. Depending on the test name, we either sort the dates array using Lodash's `sortBy` function or process the dates by executing the `getDatePart` function for each date in the array. Please note that this solution assumes the input data is in JSON format and uses a simplified approach for demonstration purposes. In a real-world scenario, you might want to add more error handling and validation mechanisms.
Related benchmarks:
_.sortBy vs native sort
dsdsdsdsdsdsds
simple stuffddd
ISO 8601 parsing
Comments
Confirm delete:
Do you really want to delete benchmark?