-
Install dependencies:
- pip install any packages needed for
flight_py cargo build --releaseforflight_rs
- pip install any packages needed for
-
Environment variables: I've set up some environment variables to configure the amount of data the servers send to the client:
NUM_ROWS--> number of rows to hold in memory and to send to client (applicable for Python and Rust server)NUM_COLUMNS--> number of columns to hold in memory and to send to client (applicable for Python and Rust server)MAX_ROWS--> maximum number of rows in a single record batch (chunking) (applicable for Rust server)
Note: I've observed that the higher the data size sent to the client (high
NUM_ROWSandNUM_COLUMNSvalues), the higher the difference between Python and Rust server response times.
-
Run
flight_py/flight.pyscript in one terminal session:- command:
python flight.pyfromflight_pyfolder.
- command:
-
Run
flight_rsRust project binary:- command:
./target/release/flight_rsfromflight_rsdirectory .
- command:
-
Run
benchmarkers/client.pyto view comparative results:- command:
python client.pyfrombenchmarkersfolder.
- command: