CxxFunctionBenchmark
CxxFunctionBenchmark copied to clipboard
Why isn't fastfunc included in the results?
Two things worth mentioning, about ssvu::FastFunc
from @SuperV1234.
(PS: I wonder what Vittorio Romeo is planning with this: vrm::core::delegate.
But I could not find examples and usage is not clear to me.)
ssvu::FastFunc does not work for all callables.
To include it, run cmake with this flag -DSSVU=ON
i.e.
git clone https://github.com/jamboree/CxxFunctionBenchmark.git # there are updates now
cd CxxFunctionBenchmark/
mkdir build/
cd build/
# to include ssvu::FastFunc, cmake needs -DSSVU=ON
cmake -DSSVU=ON .. # or if you want to use a custom boost: cmake -DSSVU=ON -DBOOST_ROOT=/path/to/boost ..
make -j4 VERBOSE=1
./various
It only runs function_pointer, lambda_capture and lambda.
ssvu::FastFunc can not handle the following 4 callables: ref
ssvu::FastFunc is buggy and will return wrong results in certain instances
See https://gist.github.com/SuperV1234/6462221#gistcomment-1612166