I have a console program currently written in Python+Scrapy and running on Windows. What it does is use HTTP get to pull some data off a fixed list of web pages every hour, collect, aggregate and compute the data and archive the hourly data in a text file and SQLite database.However, I find the Python Anaconda install on Windows big and sluggish just to do something simple. And the Python program seems to run sluggishly despite its simple nature.Thus, I am thinking of rewriting it in Node.js or Java. Just a console program running from command line. Nothing fancy.Node.js installed disk space: 24 MBJava Runtime Environment (JRE) installed disk space: 100+MBSo I am thinking whether if one would be more lightweight than the others in terms of CPU or memory when running. On surface, based on disk space, Node.js is lighter. Has anyone done some sort of similar benchmarking, test or research when choosing between Node.js or Java to write a program? I have done some Googling comparing Node.js and Java but never found a definitive answer if there's a performance difference.
Submitted September 15, 2019 at 04:13AM by 2048b
No comments:
Post a Comment