Commit Graph

3 Commits

Author SHA1 Message Date
Sameer Agarwal 31366cff29 Benchmarks for dynamic autodiff.
This patch is from Clement Courbet. courbet@google.com

Change-Id: I886390663644733bfa5b7b52b0c883079e793726
2020-09-01 09:25:02 -07:00
Alex Stewart 8c36bcc81f Use inline & -inlinehint-threshold in auto-diff benchmarks
- This results in the same performance as the original solution of
  increasing -inline-threshold, but this approach is more viable to
  incorporate in a large code base as its effects are more targeted.

Change-Id: Id798dbca7d3050de0ea847a5ecc69484ac78a2cf
2020-04-27 18:47:22 +01:00
Darius Rueckert 9f7fb66d62 Add a constant cost function to the autodiff benchmarks
The constant cost function is run with a variable number of
parameters to test at which point, different compilers fail
to optimize the autodiff code.

Clang achieves expected performance which fails at >50 parameters.
G++ fails already at 20 parameters

Change-Id: I75d8c683ef0011d813ec6d966d7ad58f86530f44
2020-03-26 18:23:48 +01:00