leelhn2345 / rust-python-gps-benchmark

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust-Python benchmark

Data processing script written in both rust and in python.

I would like to filter out elements with duplicated GPS data in sample.json.

Only the earliest timestamp of the duplicated GPS data is saved in the new json file.

For reasons unknown, the rust script took much longer to process.

Benchmarks

initial

Benchmark on my local machine:

- python (~ 3,500 ms)
- rust (~ 30,000 ms)

refined

after alterations, the rust code now runs at about 350ms.

the old code are commented out.

About


Languages

Language:Rust 86.3%Language:Python 13.7%