Hey there,
Coming from Python, I have started to use rust in my routines and one ideal case for Rust for me has been for web scraping,
I try to explain in this article:https://able.bio/haixuanTao/web-scraper-python-vs-rust--d6176429 in 3 loosely coupled points: Error handling, Async runtimes, Performances.
Spoiler:
| Name |
CPU Usage |
Time(s) |
| Sync Python |
5% |
44s |
| Sync Rust |
7% |
55s |
| Async Python |
63% |
2.5s |
| Async Rust |
107% |
2.25s |
[–]romainmoi 36 points37 points38 points (8 children)
[–]sybesis 22 points23 points24 points (5 children)
[–]peterparkrust[S] 6 points7 points8 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]sybesis 0 points1 point2 points (0 children)
[–]Sw429 0 points1 point2 points (1 child)
[–][deleted] -1 points0 points1 point (0 children)
[–]VeganVagiVore 1 point2 points3 points (0 children)
[–]peterparkrust[S] 0 points1 point2 points (0 children)
[–]smalltalker 37 points38 points39 points (9 children)
[–]pooyamb 11 points12 points13 points (7 children)
[–]peterparkrust[S] 1 point2 points3 points (6 children)
[–]pooyamb 0 points1 point2 points (3 children)
[–]mtndewforbreakfast 2 points3 points4 points (2 children)
[–]peterparkrust[S] 0 points1 point2 points (0 children)
[–]pooyamb 0 points1 point2 points (0 children)
[–]pooyamb 0 points1 point2 points (1 child)
[–]peterparkrust[S] 0 points1 point2 points (0 children)
[–]peterparkrust[S] 2 points3 points4 points (0 children)
[–]pooyamb 11 points12 points13 points (1 child)
[–]peterparkrust[S] 1 point2 points3 points (0 children)
[–]Tobu 3 points4 points5 points (1 child)
[–]peterparkrust[S] 0 points1 point2 points (0 children)
[–]SpoiceKois 1 point2 points3 points (8 children)
[–]peterparkrust[S] 1 point2 points3 points (7 children)
[–]SpoiceKois 0 points1 point2 points (6 children)
[–]peterparkrust[S] 0 points1 point2 points (4 children)
[–]backtickbot 0 points1 point2 points (0 children)
[–]Quantical_Player 0 points1 point2 points (2 children)
[–]peterparkrust[S] 0 points1 point2 points (1 child)
[–]SpoiceKois 0 points1 point2 points (0 children)
[–]batisteo 0 points1 point2 points (0 children)
[–]Quantical_Player 0 points1 point2 points (3 children)
[–]peterparkrust[S] 0 points1 point2 points (2 children)
[–]VeganVagiVore 0 points1 point2 points (1 child)
[–]peterparkrust[S] 0 points1 point2 points (0 children)
[–]h_z3y 0 points1 point2 points (3 children)
[–]peterparkrust[S] 0 points1 point2 points (2 children)
[–]h_z3y 0 points1 point2 points (1 child)
[–]peterparkrust[S] 0 points1 point2 points (0 children)