How fast is your code? Shuvo on October 18, 2021 You ever wanted to know how long does a block of your code takes to execute? Well you have come to the right place. You can simply wrap your block ... Read full post Submit Preview Dismiss Collapse Expand Keff Keff Keff Follow Email nombrekeff@gmail.com Location Remote Joined Jun 29, 2019 • Oct 18 '21 Dropdown menu Copy link Hide Yeah, really usefull! You can also use performance.now in case you need more precision, though you need to do the calculation yourself. Collapse Expand Shuvo Shuvo Shuvo Follow DEVELOPER Email 0mdshuvo0@gmail.com Location Bangladesh, Dhaka Joined Oct 17, 2021 • Oct 18 '21 Dropdown menu Copy link Hide Yes we learn something new everyday 😄 Collapse Expand Mehmet Yatkı Mehmet Yatkı Mehmet Yatkı Follow Full Stack Developer Location Berlin Joined Nov 1, 2018 • Oct 22 '21 • Edited on Oct 22 • Edited Dropdown menu Copy link Hide The console.log statement on the line 6 would change the result a lot. I'd move that after console.timeEnd, just to make sure console.log doesn't affect my analysis. 🖖 Collapse Expand Lars Grammel Lars Grammel Lars Grammel Follow AI Engineering consulting & contract work. Building the ModelFusion AI library for TypeScript. Joined Dec 9, 2020 • Oct 18 '21 Dropdown menu Copy link Hide Tools like jsbench.me/ are also great when you need to compare different snippets. Collapse Expand Pankaj Pankaj Pankaj Follow Software Engineer Location Rochester Hills, Michigan Education MS in Software Engineering Pronouns He/Him Work Team Lead at 365 Retail Markets Joined Feb 19, 2018 • Oct 21 '21 Dropdown menu Copy link Hide Thank you for sharing this! Collapse Expand Shuvo Shuvo Shuvo Follow DEVELOPER Email 0mdshuvo0@gmail.com Location Bangladesh, Dhaka Joined Oct 17, 2021 • Oct 21 '21 Dropdown menu Copy link Hide You're most welcome Collapse Expand Lars Grammel Lars Grammel Lars Grammel Follow AI Engineering consulting & contract work. Building the ModelFusion AI library for TypeScript. Joined Dec 9, 2020 • Oct 19 '21 Dropdown menu Copy link Hide Sweet, thanks for sharing! Shuvo Shuvo Shuvo Follow DEVELOPER Email 0mdshuvo0@gmail.com Location Bangladesh, Dhaka Joined Oct 17, 2021 • Oct 19 '21 Dropdown menu Copy link Hide I am really glad you liked it Collapse Expand blackr1234 blackr1234 blackr1234 Follow Location Hong Kong Work Web Developer at Hong Kong Joined Sep 28, 2019 • Oct 18 '21 Dropdown menu Copy link Hide Nice to know there is such feature. Thanks! Collapse Expand Shuvo Shuvo Shuvo Follow DEVELOPER Email 0mdshuvo0@gmail.com Location Bangladesh, Dhaka Joined Oct 17, 2021 • Oct 18 '21 Dropdown menu Copy link Hide if you console.log(console) you will see it has a lot of useful methods Collapse Expand Rahul Prajapati Rahul Prajapati Rahul Prajapati Follow Location Ahmedabad, India Work Node.js Developer Joined Dec 31, 2020 • Oct 18 '21 Dropdown menu Copy link Hide Useful post. Thank you for sharing! Collapse Expand Shuvo Shuvo Shuvo Follow DEVELOPER Email 0mdshuvo0@gmail.com Location Bangladesh, Dhaka Joined Oct 17, 2021 • Oct 18 '21 Dropdown menu Copy link Hide I am really glad you found this helpful Collapse Expand muhammadzaki693 muhammadzaki693 muhammadzaki693 Follow I stupid Joined Oct 25, 2021 • Oct 25 '21 Dropdown menu Copy link Hide Pi Collapse Expand ziaad25 ziaad25 ziaad25 Follow I like the programming Education Egypt Joined Oct 14, 2021 • Oct 18 '21 • Edited on Oct 18 • Edited Dropdown menu Copy link Hide Thank you for this information ,It's a really new for me But how can I use it in C++ language?... Collapse Expand Shuvo Shuvo Shuvo Follow DEVELOPER Email 0mdshuvo0@gmail.com Location Bangladesh, Dhaka Joined Oct 17, 2021 • Oct 18 '21 Dropdown menu Copy link Hide I am glad I could help Collapse Expand Amran AL Ketara Amran AL Ketara Amran AL Ketara Follow Hi There! I'm Front End web developer. Work Front end developer Joined Oct 15, 2021 • Oct 18 '21 Dropdown menu Copy link Hide Your content is so useful! I just give you a follow. Keep g bro!❤ Collapse Expand Shuvo Shuvo Shuvo Follow DEVELOPER Email 0mdshuvo0@gmail.com Location Bangladesh, Dhaka Joined Oct 17, 2021 • Oct 18 '21 Dropdown menu Copy link Hide I'm really grateful for that Thank you Collapse Expand Shuvo Shuvo Shuvo Follow DEVELOPER Email 0mdshuvo0@gmail.com Location Bangladesh, Dhaka Joined Oct 17, 2021 • Oct 19 '21 Dropdown menu Copy link Hide looks really cool Collapse Expand Manoj Shukla Manoj Shukla Manoj Shukla Follow Tech Geek & Avid Learner Location NYC Work Product Consultant at MacSonik Software Joined Oct 11, 2021 • Oct 19 '21 • Edited on Oct 19 • Edited Dropdown menu Copy link Hide It's amazing. Thanks for sharing. Now I can know how fast I am, I mean my code. Code of Conduct • Report abuse
Yeah, really usefull!
You can also use
performance.nowin case you need more precision, though you need to do the calculation yourself.Yes we learn something new everyday 😄
The
console.logstatement on the line 6 would change the result a lot. I'd move that afterconsole.timeEnd,just to make sureconsole.logdoesn't affect my analysis. 🖖Tools like jsbench.me/ are also great when you need to compare different snippets.
Thank you for sharing this!
You're most welcome
Sweet, thanks for sharing!
I am really glad you liked it
Nice to know there is such feature. Thanks!
if you console.log(console) you will see it has a lot of useful methods
Useful post. Thank you for sharing!
I am really glad you found this helpful
Pi
Thank you for this information ,It's a really new for me
But how can I use it in C++ language?...
I am glad I could help
Your content is so useful!
I just give you a follow.
Keep g bro!❤
I'm really grateful for that
Thank you
looks really cool
It's amazing. Thanks for sharing. Now I can know how fast I am, I mean my code.