Skip to content

Commit

Permalink
docs: benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
junyixu committed Aug 25, 2024
1 parent edcf42b commit a21be27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file added docs/src/img/enzyme_ForwardDiff.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ julia> @time jacobian_enzyme_forward(TrixiEnzyme.upwind!, x, N=11);
0.000332 seconds (307 allocations: 410.453 KiB)
```

If you do not explicitly provide a chunk size, TrixiEnzyme will try to guess one for you based on your input vector:
When the cache is relatively small and you have appropriately chosen the batch size,
Enzyme generally performs faster than ForwardDiff (see [test](https://github.com/junyixu/TrixiEnzyme.jl/blob/main/test/UpwindTest.jl)).
![enzyme ForwardDiff upwind](./img/enzyme_ForwardDiff.png)

If you do not explicitly provide a batch size, TrixiEnzyme will try to guess one for you based on your input vector:

```julia-repl
julia> x = -1:0.01:1;
Expand Down

0 comments on commit a21be27

Please sign in to comment.