3 ms·
Some time ago at school the teacher asked to make a crawler so, as always I do it in node.js and mongodb. The site to crawl has around 80K pages and 300 records
by ttty 12y ago
Some time ago at school the teacher asked to make a crawler so, as always I do it in node.js and mongodb.
The site to crawl has around 80K pages and 300 records on each page.
My script crawled and saved all that data (80K * 300) in less than 1 hour with around 100 concurrent requests.
The other students that wrote in ruby, python and php took days to do the same thing. Also they had to do by parts because if they requested all by once their pc would crash because of memory.
Also I didn’t need any test because since the first time I ran node.js it was instant fast, not like php, ruby or python.
- prahladyeri 12y agoYup. And thats only because of precious CPU time saved by doing async I/O which the functional paradigm of JavaScript supports so well.
- frowaway001 12y agoI really can't figure out whether you two guys are trolling. Thinking about it, I actually hope so, because everything else would be embarrassing.