2

Queue Perfomance in JavaScript

 3 years ago
source link: https://www.echojs.com/news/38860
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Queue Perfomance in JavaScripttracker1 11 days ago.
Code: https://github.com/tracker1/queue-testing

This is in reference to another post: https://www.echojs.com/news/38820

I made a comment in error, but was curious how bad it could be, so wrote a couple different queue implementations and did a little performance testing.  In case anyone else is interested in doing a little one-off performance testing in JS this should act as an example.  I didn't take the time to get memory profiles, which would help for a couple other bits of information, but couldn't get memory usage working via perf, and snagging the free memory was very inconsistent to say the least.

Just putting it out there, in case the example(s) help anyone.
panzerdp 10 days ago. link 2 points
It would be great to see the memory usage of each approach.
timoxley 10 days ago. link 1 point
Would have been good to see a comparison with splice against shift, because I am definitely wondering "how bad could it be".

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK