This may be the opposite of most questions, but for testing purposes I want to create a predicate that uses some very slow operations that do not create data races. I need to test a parallel implementation compared to a sequential implementation and would like to do so without creating massively sized vectors. I currently use this predicate:
[](std::size_t& v){
v = 42; //some random number...
}
but in order to see any real results my vectors need to be massive in terms of size, I would rather have a smaller size and greater predicate execution time... what sort of lamba function should I write that is very time consuming so I can test my implementations?