Van der Waals 3D grid initialization benchmark
  • OCaml 97.6%
  • Makefile 1.7%
  • Shell 0.5%
  • Dune 0.2%
Find a file
2024-02-26 14:27:07 +09:00
data initial import 2024-02-22 12:29:34 +09:00
src Grid_init.vdW_grid: optimization by github user @sanette 2024-02-26 14:24:11 +09:00
dune-project initial import 2024-02-22 12:29:34 +09:00
grid_init initial import 2024-02-22 12:29:34 +09:00
LICENSE Initial commit 2024-02-22 09:34:56 +09:00
Makefile dune's --profile=release shaves 10s 2024-02-26 13:30:32 +09:00
README.md readme: final timing 2024-02-26 14:27:07 +09:00
test.sh perf stat instead of time 2024-02-26 13:33:56 +09:00
vdw_grid_bench.opam initial import 2024-02-22 12:29:34 +09:00

vdW_grid_bench

Van der Waals 3D grid initialization benchmark

problem statement

We want to know the interaction energy between one atom [l_a] located at any grid point [i,j,k] and a fixed set of atoms [A]. We use the Van der Waals non-bonded interaction energy and Universal Force Field (UFF) parameters.

standard OCaml; before loop modification

time ./grid_init -dx 0.1 -l data/lig.pqrs -p data/prot.pqrs real 1m19.899s

w/ dune's --profile=release

real 1m10.603s

w/ V3 @@inline annotations plus dist2 optims

real 0m57.384s

w/ optims in vdW_grid

real 0m49.096s

w/ pow3 and V3.dist2 instead of pow6 and V3.dist in vdW_grid

real 0m41.282s