Skip to content

Benchmarks

Pujan Ajmera edited this page Apr 18, 2025 · 1 revision

Here are some benchmarks for the point and 3D electric field calculations. The best-performing CPU and GPU implementations on my system are the default in pycpet, and to run the benchmarks yourself, navigate to the test directory and run test_time_grid_field_calcs.py or test_time_point_field_calcs.py. These scripts contain additional versions of the functions that I include in the benchmarking here.

Overall, the full c-shared implementation is fastest for CPU, but GPU beats the code out for 3D electric field calculations by batching.

Point Electric Fields

3D Electric Fields 2.0 x 2.0 x 2.0A box, 0.1 step size

2.0 x 2.0 x 2.0A box, 0.02 step size

Clone this wiki locally