Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Stringify vs toString vs Object Reduce and String vs Get all strings
(version: 0)
Test performance to get strings from Object
Comparing performance of:
Stringify vs Object toString vs Object reduce vs All strings
Created:
2 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
function getStringsFromObj(obj) { if (!obj) return '' if (typeof obj === 'string') return ' ' + obj return Object.entries(obj).reduce((acc, { 1: value }) => { if (typeof value === 'object') return acc + ' ' + getStringsFromObj(value) if (typeof value === 'string') return acc + ' ' + value return acc }, '') } function getAllStrings(obj) { const strings = []; function traverse(obj) { for (const key in obj) { const value = obj[key]; if (typeof value === 'string') { strings.push(value); } else if (typeof value === 'object') { traverse(value); } } } traverse(obj); return strings; } var gptWithFB = { metadata: { tags: [], legal: { 'wifi-6-3rd-party-testing-benefits': { index: 0, key: 'wifi-6-3rd-party-testing-benefits', value: 'Based on third party testing that compared the upload and download throughput speeds of TELUS and its major competitor’s Wi-Fi 6 devices. Benefits of Wi-Fi 6 are only experienced on Wi-Fi 6 enabled devices. For more information on Wi-Fi 6 capabilities visit <a href="https://www.telus.com/WiFi">telus.com/WiFi</a>.', }, }, }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '7aXMCzH3cAnoTRAio8DyOn', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'genericPageTemplate' } }, revision: 2, createdAt: '2022-09-30T20:48:07.489Z', updatedAt: '2022-10-19T22:13:51.700Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' } }, locale: 'en-CA-AB', }, fields: { entryTitle: 'Analytics Form Page', slug: 'test/cjeronimo-test', seo: { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '14pbZjLsnQObFmKtK2bc5E', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'seoTags' } }, revision: 1, createdAt: '2022-09-30T17:40:02.053Z', updatedAt: '2022-09-30T17:44:37.778Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' } }, locale: 'en-CA-AB', }, fields: { entryTitle: 'SB2 Alloy Automation POC', title: 'Alloy Automation POC - Alloy Automation POC - Alloy Automation POC', description: 'Alloy Automation POC - Alloy Automation POC - Alloy Automation POC - Alloy Automation POC - Alloy Automation POC', keywords: ['SB2'], ogImage: { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Asset', id: '2BOlSVAJIlXMUnINVvI1tg', revision: 1, createdAt: '2022-09-30T17:43:14.740Z', updatedAt: '2022-09-30T17:44:29.950Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' } }, locale: 'en-CA-AB', }, fields: { title: 'Screen Shot 2020-09-30 at 11.09.45 AM', description: '', file: { url: '//images.ctfassets.net/fltupc9ltp8m/2BOlSVAJIlXMUnINVvI1tg/08c0ab947149786e18673a53cc8686dd/Screen_Shot_2020-09-30_at_11.09.45_AM.png', details: { size: 136312, image: { width: 1894, height: 638 } }, fileName: 'Screen_Shot_2020-09-30_at_11.09.45_AM.png', contentType: 'image/png', }, }, }, }, }, dataLayer: { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '4JnLs9HL74krHoQfCnAspo', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'pageDataLayer' } }, revision: 1, createdAt: '2022-09-30T17:45:11.412Z', updatedAt: '2022-09-30T17:47:00.452Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' } }, locale: 'en-CA-AB', }, fields: { entryTitle: 'SB2 Alloy Automation POC', pageType: 'homepage', category: { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '1ssjFDDhAVryOAXbTxFReZ', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'dataLayerCategory' } }, revision: 1, createdAt: '2022-09-30T17:46:02.243Z', updatedAt: '2022-09-30T17:46:16.869Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' } }, locale: 'en-CA-AB', }, fields: { entryTitle: 'home', analyticsRef: 'home' }, }, subcategory: [ { fields: { entryTitle: 'home', analyticsRef: 'SubHome' }, }, { fields: { entryTitle: 'home', analyticsRef: 'SubAbout' }, }, ], dataLayerCartEvent: { fields: { entryTitle: 'home', cartEventName: 'Cart Name' }, }, dataLayerProduct: { fields: { entryTitle: 'Fake Product', name: 'test product name', category: 'test', price: '100', sku: '12345', slug: '/fake/product', }, }, }, }, alloyDataLayer: { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '2wI0s545cZbYRd0hFq5ZxU', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'pageAlloyDataLayer' } }, revision: 2, createdAt: '2022-09-30T17:49:57.491Z', updatedAt: '2022-10-03T21:23:18.057Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' } }, locale: 'en-CA-AB', }, fields: { entryTitle: 'POC Alloy adobeDataLayer', pageType: 'landing', siteSection: 'health', primarySiteSection: 'first', secondarySiteSection: 'second', tertiarySiteSection: 'third', quaternarySiteSection: 'fourth', lineOfBusiness: ['brand_experience', 'business'], contentName: 'test content', }, }, blocks: [ { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: 'PDQb83Ey9ig6X6CD0c10p', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'backgroundBanner' } }, revision: 1, createdAt: '2022-04-08T11:50:30.071Z', updatedAt: '2022-05-27T13:52:56.562Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' } }, locale: 'en-CA-AB', }, fields: { entryTitle: 'New Background Banner', heading: 'Enjoy reliable 5G coverage on North America’s fastest and largest network, TELUS.${LEGAL.wifi-6-3rd-party-testing-benefits}', desktopBackground: { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Asset', id: '6UbaYHCmAfHd78q3nZ3Gvn', revision: 1, createdAt: '2022-04-08T11:57:36.184Z', updatedAt: '2022-04-08T11:58:27.958Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' } }, locale: 'en-CA-AB', }, fields: { title: 'GettyImages Sample - Network - Desktop', description: '', file: { url: '//images.ctfassets.net/fltupc9ltp8m/6UbaYHCmAfHd78q3nZ3Gvn/bfd89117a0661c62a8354e19429b67c7/GettyImages-1283968777_1.png', details: { size: 1111633, image: { width: 1440, height: 400 } }, fileName: 'GettyImages-1283968777 1.png', contentType: 'image/png', }, }, }, mobileBackground: { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Asset', id: '6jdF8Y63txb6Bidi5VTlW2', revision: 1, createdAt: '2022-04-27T06:32:40.026Z', updatedAt: '2022-04-27T06:32:59.804Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' } }, locale: 'en-CA-AB', }, fields: { title: 'GettyImages-1283968777 1-1 - mobile', description: '', file: { url: '//images.ctfassets.net/fltupc9ltp8m/6jdF8Y63txb6Bidi5VTlW2/303ff431f33a3229b05d749cfe79eb29/GettyImages-1283968777_1-1.png', details: { size: 244615, image: { width: 300, height: 400 } }, fileName: 'GettyImages-1283968777_1-1.png', contentType: 'image/png', }, }, }, }, }, { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: 'aSH9XBrqgGKhpkEsZzkYc', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'row' } }, revision: 1, createdAt: '2022-09-30T20:49:52.658Z', updatedAt: '2022-09-30T21:17:45.857Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' } }, locale: 'en-CA-AB', }, fields: { entryTitle: 'Alloy Analytics - Row', children: [ { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '4CPocwG7Rqm3tg6EpOXDgT', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'column' } }, revision: 1, createdAt: '2022-09-30T20:50:31.765Z', updatedAt: '2022-09-30T21:17:41.048Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' } }, locale: 'en-CA-AB', }, fields: { entryTitle: 'Alloy Analtyics - Column', components: [ { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '20aubhDuffWbsdQxa4PIlm', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'formBuilder' } }, revision: 3, createdAt: '2022-09-30T20:59:46.175Z', updatedAt: '2022-09-30T21:28:48.592Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' } }, locale: 'en-CA-AB', }, fields: { entryTitle: 'Alloy Analytics - Form Builder', form: { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '2A2K2UTbGcBn4rZ9AkCZ2g', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'form' } }, revision: 5, createdAt: '2022-09-30T21:00:28.715Z', updatedAt: '2022-10-21T16:54:41.597Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' } }, locale: 'en-CA-AB', }, fields: { entryTitle: 'Alloy Analytics - Form', fields: [ { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '5LTebkviaeUxmtvP85FfLT', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'dropdownListField' }, }, revision: 6, createdAt: '2022-09-15T17:55:41.894Z', updatedAt: '2022-10-04T17:34:46.778Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' } }, locale: 'en-CA-AB', }, fields: { entryTitle: 'Allium Dropdown List Field - VNY (Copy of 1qQB9CJplOIGPKXLSgC0XM)', isRequired: false, containsPII: false, fieldName: 'Allium Dropdown List Field - VNY', label: 'Country', hint: 'DropDown Hint ', options: [ { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '4X2ysSFbOiFBD13aQB9IEK', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'fieldOption' }, }, revision: 1, createdAt: '2022-09-15T17:55:39.966Z', updatedAt: '2022-09-15T17:58:19.826Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' }, }, locale: 'en-CA-AB', }, fields: { entryTitle: 'Allium Field Option China - VNY (Copy of 4EeFKzTap6ZsoUlPAPEmSj)', label: 'China', value: 'China', }, }, { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '1HxdhSOscRu0D2j3Aj9d1f', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'fieldOption' }, }, revision: 2, createdAt: '2022-09-15T17:55:39.912Z', updatedAt: '2022-09-29T17:56:20.838Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' }, }, locale: 'en-CA-AB', }, fields: { entryTitle: 'Allium Field Option India - VNY (Copy of eJFpYRn0FI3TjusGt2A9E)', label: 'India', value: 'India', conditionalFieldGroup: { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '1gOeUpBLFXUVbcrFz4rz2o', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'fieldGroup' }, }, revision: 2, createdAt: '2022-09-29T17:51:39.221Z', updatedAt: '2022-10-03T20:23:22.210Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' }, }, locale: 'en-CA-AB', }, fields: { entryTitle: 'Conditional field group test', fields: [ { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' }, }, type: 'Entry', id: '3U5bCqDl7gsMEoPMn14AbA', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'shortAnswerField', }, }, revision: 2, createdAt: '2022-09-29T17:55:03.654Z', updatedAt: '2022-10-03T20:23:27.344Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' }, }, locale: 'en-CA-AB', }, fields: { entryTitle: 'Short anserr city', isRequired: true, containsPII: false, fieldName: 'cityshortanswer', label: 'Select City:', hint: 'please select city', }, }, ], removeSpacing: true, }, }, }, }, { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '5gg5zt7439Y3bROyLAcwiX', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'fieldOption' }, }, revision: 1, createdAt: '2022-09-15T17:55:40.074Z', updatedAt: '2022-09-15T17:58:19.886Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' }, }, locale: 'en-CA-AB', }, fields: { entryTitle: 'Allium Field Option Canada - VNY (Copy of 31OyM6HXP8klgDrvN5tmaI)', label: 'Canada', value: 'Canada', }, }, { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '6gWy5fulUotiSILimhGG38', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'fieldOption' }, }, revision: 1, createdAt: '2022-09-15T17:55:39.972Z', updatedAt: '2022-09-15T17:58:19.915Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' }, }, locale: 'en-CA-AB', }, fields: { entryTitle: 'Allium Field Option Korea - VNY (Copy of 5EPHcNjeS87kM4xrb9B1DZ)', label: 'Korea', value: 'Korea', }, }, ], }, }, { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '5PJ0oL4xHr6MeKPEUZ5UUJ', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'fieldGroup' } }, revision: 5, createdAt: '2022-09-29T18:01:53.194Z', updatedAt: '2022-10-06T20:31:51.255Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' } }, locale: 'en-CA-AB', }, fields: { entryTitle: 'male field group', heading: 'male type', fields: [ { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '5C7TqVviE97tkbuGecc04W', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'shortAnswerField' }, }, revision: 3, createdAt: '2022-09-29T18:02:26.517Z', updatedAt: '2022-10-06T15:14:43.312Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' }, }, locale: 'en-CA-AB', }, fields: { entryTitle: 'male short answert', isRequired: true, containsPII: false, fieldName: 'maletype', label: 'Alpha / beta Male:', }, }, ], }, }, { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '5Cz1sCx4Zv1pgVhuzsO3zI', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'emailField' } }, revision: 6, createdAt: '2022-09-15T17:55:38.202Z', updatedAt: '2022-10-04T17:34:34.838Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' } }, locale: 'en-CA-AB', }, fields: { entryTitle: 'Allium Email Field - VNY (Copy of 7pG2255KgRtywg9DbMDmUN)', isRequired: false, containsPII: false, fieldName: 'Allium Email Field - VNY', requireConfirmation: true, label: 'Email', hint: 'Use your personal email address', placeholder: 'John.Wick@gmail.com', desktopWidth: '1/2 of the row', }, }, ], consentField: [ { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '53MlRfShUNaaGQb58fpKR5', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'consentField' }, }, revision: 4, createdAt: '2022-09-15T17:55:41.908Z', updatedAt: '2022-09-27T20:44:38.719Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' } }, locale: 'en-CA-AB', }, fields: { entryTitle: 'Allium Consent Field - VNY (Copy of COafvW7YGBrEtJ2Bt0hSd)', consentOptions: [ { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '6Si2usyfBXnx5i4rhK5rMA', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'consentOption' }, }, revision: 2, createdAt: '2022-09-15T17:55:40.009Z', updatedAt: '2022-09-27T20:44:36.572Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' }, }, locale: 'en-CA-AB', }, fields: { entryTitle: 'Allium Consent Option - VNY (Copy of 7cklTBVPSSfHL2VK8NBWea)', label: 'Personal Data will be collected with your consent.', value: 'Personal Data will be collected with your consent.', disclaimer: 'Personal Data will be collected with your consent.Personal Data will be collected with your consent.Personal Data will be collected with your consent.Personal Data will be collected with your consent.Personal Data will be collected with your consent.Personal Data will be collected with your consent.Personal Data will be collected with your consent.Personal Data will be collected with your consent.Personal Data will be collected with your consent.Personal Data will be collected with your consent.Personal Data will be collected with your consent.Personal Data will be collected with your consent.Personal Data will be collected with your consent.Personal Data will be collected with your consent.Personal Data will be collected with your consent.Personal Data will be collected with your consent.Personal Data will be collected with your consent.Personal Data will be collected with your consent.Personal Data will be collected with your consent.Personal Data will be collected with your consent.', }, }, { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '1yj8tO4wp0cXR0xSN7BdTf', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'consentOption' }, }, revision: 2, createdAt: '2022-09-27T20:39:56.327Z', updatedAt: '2022-09-27T20:44:57.387Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' }, }, locale: 'en-CA-AB', }, fields: { entryTitle: 'One more consent check vny', label: 'COnsent is cheked by telus by VNY', value: 'COnsent is cheked by telus by VNY', disclaimer: 'COnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNYCOnsent is cheked by telus by VNY', }, }, ], }, }, ], enableRecaptcha: false, submitButtonLabel: 'Submit', submitButtonVariant: 'Priority (High) - default', submitButtonSize: 'Regular (Default)', dataAdapters: [ { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '2NHqbdMEWKINhSVqOP46Uw', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'datalakeCustomerDataAdapter', }, }, revision: 1, createdAt: '2022-09-15T17:55:38.318Z', updatedAt: '2022-09-15T17:57:50.697Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' } }, locale: 'en-CA-AB', }, fields: { entryTitle: 'Allium Datalake Adapter - VNY (Copy of 5ZWJtym9zrFfSlD9HyRiax)', eventType: 'Allium Test', lineOfBusiness: 'FormBuilder Allium Test', }, }, ], }, }, successAnalyticsEvent: { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '2Ewwk26LGe7vMW8zm3MozG', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'formBuilderLinkAnalyticsEvent' }, }, revision: 1, createdAt: '2022-09-30T21:21:18.387Z', updatedAt: '2022-09-30T21:23:16.349Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' } }, locale: 'en-CA-AB', }, fields: { entryTitle: 'Alloy Analytics Event - Success Form', eventName: 'alloyForm', eventAction: 'submit', eventDetails: 'User clicked the submit button', alloyFormType: 'lead', alloyLeadType: 'newsletter', }, }, errorAnalyticsEvent: { metadata: { tags: [] }, sys: { space: { sys: { type: 'Link', linkType: 'Space', id: 'fltupc9ltp8m' } }, type: 'Entry', id: '2Ox6QgOQppWqvKJMdksYjE', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'formBuilderLinkAnalyticsEvent' }, }, revision: 1, createdAt: '2022-09-30T21:27:40.926Z', updatedAt: '2022-09-30T21:28:42.675Z', environment: { sys: { id: 'sandbox', type: 'Link', linkType: 'Environment' } }, locale: 'en-CA-AB', }, fields: { entryTitle: 'Alloy Analytics Event - Form Error', eventName: 'formError', eventAction: 'error', eventDetails: 'Something went wrong', alloyFormType: 'lead', alloyLeadType: 'newsletter', }, }, }, }, ], horizontalAlign: 'Left', }, }, { metadata: { tags: [] }, sys: { type: 'Entry', id: '4CPocwG7Rqm3tg6EpOXDgT', contentType: { sys: { type: 'Link', linkType: 'ContentType', id: 'other' } }, }, }, ], hasGutter: true, hasLimitWidth: true, equalColumnHeight: false, xsReverse: false, smReverse: false, mdReverse: false, lgReverse: false, xlReverse: false, }, }, ], visitorState: {}, }, }
Tests:
Stringify
JSON.stringify(gptWithFB)
Object toString
gptWithFB.toString()
Object reduce
getStringsFromObj(gptWithFB)
All strings
getAllStrings(gptWithFB)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
Stringify
Object toString
Object reduce
All strings
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 provided a long JSON string and some test cases, benchmark results, and execution data. I'll try to summarize what I see: **JSON String:** The JSON string appears to be a Node.js object containing information about a "GPT" (Graphical Processing Unit) and an object `gptWithFB` that seems to represent some kind of testing or benchmarking data. **Test Cases:** There are four test cases, each with a definition and a name. The definitions seem to involve stringifying or converting the `gptWithFB` object to different formats, while the names suggest these tests measure the performance of various operations on this object. **Benchmark Results:** The benchmark results show the execution times (in executions per second) for four different tests on different devices and browsers. The test with the highest execution rate is "Object toString" on a Chrome 113 browser on a Mac OS X 10.15.7 device, followed by "All strings", then "Stringify", and finally "Object reduce". **Question:** Since there's no specific question or problem to solve in this text, I'll assume you'd like me to: 1. Clarify the purpose of the provided JSON string and test cases. 2. Summarize the benchmark results. If you have a specific problem or question related to this data, please feel free to ask!
Related benchmarks:
Reduce vs map/join
Reduce vs map/join
Reduce vs map/join
Reduce vs map/join
Reduce vs map/join
Comments
Confirm delete:
Do you really want to delete benchmark?