This is the benchmark that I wrote for D7995. It can be called with a list of source directories to measure the time it takes to import these in parallel as projects. It aims to do this as KDevelop does it, but without any additional overhead that could come from a full-blown project controller, code parsing etc.
The main goal of this benchmark is to compare the overhead from creating and populating a project dirwatcher (see D7995). Therefore it also measures the time it takes to delete the project dirwatcher (= an aspect of closing projects). This is done sequentially.