Skip to content

Commit

Permalink
improved Readme of repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
leuraph committed Jan 24, 2024
1 parent 1fab795 commit 186f1e7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,30 @@ cd p1afempy
python -m cProfile -s time -m tests.manual.<script> > benchmark.out
```

Below, you can find some performance test results found on a reference machine [[2]](#2).
The error bars in the plots represent the standard deviation of measured CPU time.

### Stiffness Matrix Assembly

In order to perform a stiffness matrix assembly performance comparison between
Python and Matlab, you can use the existing script
The script used to measure and compare python performance is located at
`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">

### Newest Vertex Bisection

The script used to measure and compare python performance is located at
`p1afempy/tests/manual/performance_test_refineNVB.py`.
In every iteration, we marked all elements for refinement and measured the CPU time needed
for the refinement $10$ times.
For more information, see
`p1afempy/tests/data/matlab_performance/newest_vertex_bisection/readme.md`.

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

## Performance upgrade

In the following, we describe how to get more (the most) performance out of `solve_laplace`.
Expand Down
Binary file added figures/newest_vertex_bisection.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 186f1e7

Please sign in to comment.