Covalent Molecule Ops: JS vs Rust/WASM

Phase 6 benchmark -- comparing JavaScript molecular graph operations against Rust compiled to WebAssembly

1. compute_all() -- Full Property Calculation

All properties in one call: rings, formula, MW, LogP, TPSA, HBD/HBA, rotatable bonds, Fsp3, SMILES, InChI, IUPAC

MoleculeAtomsBondsJS (ms)WASM (ms)Speedup

2. find_rings() -- Ring Detection Only

Called every render frame via drawBonds(). The critical hot path.

MoleculeAtomsBondsJS (ms)WASM (ms)Speedup

3. SMILES Generation

MoleculeAtomsBondsJS (ms)WASM (ms)Speedup