|
1 | | -# FFT benchmarks for Intel(R) Distribution for Python\* |
| 1 | +# FFT benchmarks for NumPy\* and SciPy\* |
2 | 2 |
|
3 | | -This set of benchmarks measures performance of FFT computations, serving to |
4 | | -highlight performance improvements to FFT computations in NumPy and SciPy in |
5 | | -the Intel(R) Distribution for Python\*. We provide both Python and native |
6 | | -(MKL DFTI) implementations of these benchmarks with similar command-line |
| 3 | +This FFF benchmarking framework is useful to measure FFT performance of different NumPy and SciPy versions and vendors. |
| 4 | +In addition to Python implementation we also able to benchmark native code (MKL DFTI) implementations of these benchmarks with similar command-line |
7 | 5 | interfaces. |
8 | 6 |
|
9 | 7 | ## Python benchmarks |
10 | 8 |
|
11 | | -To reproduce, install Intel(R) Distribution for Python\* as follows: |
| 9 | +The following example create benchmarking environment for NumPy and SciPy FFT available from intel channel in conda: |
12 | 10 |
|
13 | 11 | ```bash |
14 | | -conda create -n 'idp3_fft' -c intel numpy scipy |
15 | | -conda activate idp3_fft |
| 12 | +conda create -n intel_env -c intel numpy scipy |
| 13 | +conda activate intel_env |
16 | 14 | ``` |
17 | 15 |
|
18 | | -To benchmark FFT in Python, execute |
| 16 | +To run the FFT benchmark framework in Python, type |
19 | 17 |
|
20 | 18 | ```bash |
21 | 19 | python fft_bench.py [-h] [args] size |
22 | 20 | ``` |
23 | 21 |
|
24 | | -The methodology is to perform one unmeasured computation, and then repeat 24 |
25 | | -total timings for 16 repetitions of FFT computations in the loop. The 24 |
| 22 | +The framework perform initial warmup call to respective FFT API, and then performs 24 (default) timings |
| 23 | +for 16 (default) repetitions of FFT computations in the loop. These 24 |
26 | 24 | measurements are aggregated to report minimum, median and maximum timings, |
27 | 25 | which are printed to STDOUT. |
28 | 26 |
|
29 | | -Other printed lines which start with 'TAG: ' are printed for information only, |
30 | | -and can be filtered out if need be. |
| 27 | +Other printed lines which start with 'TAG: ' are printed for information purposes. |
31 | 28 |
|
32 | 29 | ### Examples |
33 | 30 |
|
|
0 commit comments