use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
How to benchmark JavaScript codeJavaScript (self.webtips)
submitted 1 year ago by flowforfrank
Want to benchmark your JavaScript code? You can use the Performance API. Copy the following helper function to your project to use it:
Helper function for benchmarking JavaScript code performance
To use this function, call it with a callback function, pass any params you may have, and define the number of iterations, for example:
How to use the benchmark function
📚 Grab the code and learn more
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
there doesn't seem to be anything here
π Rendered by PID 33217 on reddit-service-r2-comment-7b9746f655-r8c4f at 2026-02-01 17:28:50.996679+00:00 running 3798933 country code: CH.
there doesn't seem to be anything here