justgord / async_vs_serial Goto Github PK
View Code? Open in Web Editor NEWsimple node.js program to show difference between default async and sequential serial processing
simple node.js program to show difference between default async and sequential serial processing
async_vs_serial Simple Node.js program to compare async default processing with serialised processing For serial / sequential processing, a list of work functions is provided, each calling next The implementation of next takes the frontmost work function off the list and executes it Handy for database processing where sequence needs to be preserved Simple enough to illustrate the async nature of Node.js Sample output : Default run > time ./async_vs_serial.js async RUNNING ASYNC >aaa >bbb >ccc <bbb took 50ms <ccc took 120ms <aaa took 220ms real 0m0.325s user 0m0.090s sys 0m0.012s Serial run > time ./async_vs_serial.js serial RUNNING SERIAL >aaa <aaa took 220ms >bbb <bbb took 51ms >ccc <ccc took 120ms real 0m0.479s user 0m0.075s sys 0m0.011s blog : quantblog.wordpress.com
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.