Skip to content

Commit

Permalink
added stiffness matrix assembly results
Browse files Browse the repository at this point in the history
  • Loading branch information
leuraph committed Jan 23, 2024
1 parent 29fc363 commit 4de9e30
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,21 @@ cd p1afempy
python -m cProfile -s time -m tests.manual.<script> > benchmark.out
```

### Stiffness Matrix Assembly

In order to perform a stiffness matrix assembly performance comparison between
Python and Matlab, you can use the existing script
`p1afempy/tests/manual/performance_test_stiffnes_matrix.py`.
Note that this script performs the assembly in Python and assumes existing Matlab results
found in the corresponding directory (see the source code for the specific directory).
Below, you can find results found on a reference machine [[2]](#2).
The error bars in the plot represent the standard deviation of measured CPU time.
On each mesh, we performed $20$ measurements.
For more information, see
`p1afempy/tests/data/matlab_performance/stiffness_matrix_assembly/readme.md`.

<img src="figures/stiffness_matrix_assembly.png">

## Performance upgrade

In the following, we describe how to get more (the most) performance out of `solve_laplace`.
Expand Down Expand Up @@ -106,4 +121,15 @@ The following provides a complete list of added functionalities.
<a id="1">[1]</a>
S. Funken, D. Praetorius, and P. Wissgott.
[Efficient Implementation of Adaptive P1-FEM in Matlab](http://dx.doi.org/10.2478/cmam-2011-0026).
Computational Methods in Applied Mathematics, Vol. 11 (2011), No. 4, pp. 460–490.
Computational Methods in Applied Mathematics, Vol. 11 (2011), No. 4, pp. 460–490.

<a id="2">[2]</a>
Reference Machine:
| **Device** | MacBook Pro 15-inch, 2018 |
|-------------------|---------------------------------|
| **Processor** | 2.6 GHz 6-Core Intel Core i7 |
| **Graphics** | Radeon Pro 560X 4 GB |
| | Intel UHD Graphics 630 1536 MB |
| **Memory** | 16 GB 2400 MHz DDR4 |
| **Operating System** | MacOS 13.6.3 (22G436) |
| **Matlab Version** | R2023b |
Binary file added figures/stiffness_matrix_assembly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4de9e30

Please sign in to comment.