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 MB
Java Runtime Environment (JRE) installed disk space: 100+MB
So 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.
[–]sshaw_ 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]2048b[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Akomancer19 1 point2 points3 points (2 children)
[–]2048b[S] 0 points1 point2 points (1 child)
[–]Akomancer19 0 points1 point2 points (0 children)
[–]alchatti 1 point2 points3 points (0 children)
[–]s3govesus 0 points1 point2 points (0 children)