glwagner / dedaLES

Large Eddy Simulation with dedalus
https://dedales.readthedocs.io
GNU General Public License v3.0
34 stars 11 forks source link

Benchmarking #7

Closed glwagner closed 5 years ago

glwagner commented 5 years ago

Adds some primitive benchmarking tools. Minor updates to API.

glwagner commented 5 years ago

This is the result of running sandbox/benchmark.py on my MacBook Pro with 4 cores:

Benchmark results for 100 iterations:

    ** Build time **
    ================

                   Model     Time
                   -----     ----

                     DNS  |     14.45 s
    Constant Smagorinsky  |     14.65 s

    ** Run time **
    ==============  

                   Model     Time           Slowdown vs DNS
                   -----     ----           ---------------

                     DNS  |     46.51 s  |  1
    Constant Smagorinsky  |     76.17 s  |  1.637622

There's significant variation between runs, so it'd be nice to have a better/more reproducible bencharking --- @kburns, what's the best way to benchmark long-running code?

glwagner commented 5 years ago

PS see dedaLES/benchmarks.py for key code and sandbox/sample_benchmark.py for how to use it.

glwagner commented 5 years ago

Results for my desktop at MIT:

Benchmark results for 100 iterations:

    ** Build time **
    ================

                   Model     Time
                   -----     ----

                     DNS  |     18.88 s
    Constant Smagorinsky  |     19.66 s

    ** Run time **
    ==============  

                   Model     Time           Slowdown vs DNS
                   -----     ----           ---------------

                     DNS  |     40.79 s  |  1
    Constant Smagorinsky  |     89.29 s  |  2.188969