cd jestdotty_rust/jisspam && cargo run --release && cp target/release/jisspam ../../
for https://retoor.molodetz.nl/retoor/isspam
some older benchmarks to know what to beat, or something:
Time C: 11.447573184967041
Time Rust: 1.2248871326446533
Time CPP: 2.1745784282684326
Time Borded CPP: 1.4606633186340332
Time Retoor Python: 38.008224964141846
Time C: 10.476306915283203
Time Rust: 1.1816489696502686
Time CPP: 2.030345916748047
Time Borded CPP: 0.6507000923156738
Time Rust: 1.1833229064941406
Time C: 10.77005124092102
Time CPP: 2.075010061264038
Time Borded CPP: 0.8050553798675537
Time Retoor Python: 39.06818628311157
Time Rust: 1.187262773513794
Time C: 10.271284818649292
Time CPP: 2.0337636470794678
Time Borded CPP: 0.7784948348999023
Time Retoor Python: 37.15883994102478
Time Rust: 1.239715337753296
Time C: 11.51186990737915
Time CPP: 2.085871934890747
Time Borded CPP: 0.6888203620910645
Time Retoor Python: 35.5970196723938
https://snek.molodetz.nl/terminal.html ubuntu running thing instructions:
mkdir /project
cd /project
git clone https://retoor.molodetz.nl/retoor/isspam.git
apt install valgrind curl
export RUSTUP_HOME=/project/.rustup
export CARGO_HOME=/project/.cargo
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
. "/project/.cargo/env"
cd isspam
rustup install nightly
rustup default nightly
make
make benchmark
python3 bench.py
.. | ||
src | ||
test_files | ||
Cargo.lock | ||
Cargo.toml | ||
README.md |