(UTest): ioAtomsTest takes too long to execute
Summary
ioAtomsTest
takes around 28s to execute, but this can dramatically increase when intensive tasks are performed on the computer. This often makes the test to timeout on the CI.
Steps to reproduce
- Watch the CI logs...
OR
- Run
ioAtomsTest
and time it (run for instancetime bin/ioAtomsTest
on Linux) - Observe the time
- Launch a build of something with all your power (for instance
make -j12
) - Run
ioAtomsTest
- Observe the time increased a lot.
Dev environment
- OS: Linux, Windows
- Compiler: clang
- Build type: debug
Possible fixes
I ran VTune and noticed two hotspots:
- fread/fseek from the fwZip callstack
- boost::hash_detail::hash_combine_impl - hash.hpp (from CompareObjects.cpp:133). This seems to be linked to
camp::Class
which includes complex boost containers...
So we should try to reduce the dataset or optimize these containers.