设置doctrine注释缓存并验证它是否有效

We want to use doctrine with ORM and php annotations inside the entity files.

I'm concerned that chosing annotations over php or yaml might impact performance. I've red some of the documentation about this topic and could find examples on how to set up a Reader, but am unsure how to implement it into my code and verifying that it works. This is the snippet that bootstraps doctrine:

    /*
     * Doctrine setup
     */
    $dbConfig = new Configuration();
    $emConfig = Setup::createAnnotationMetadataConfiguration([ABSPATH . '/src/Entity'], 1, null, null, false);
    $namingStrat = new UnderscoreNamingStrategy();
    $emConfig->setNamingStrategy($namingStrat);
    $params = [
        'dbname' => DB_NAME,
        'user' => DB_USER,
        'password' => DB_PASSWORD,
        'host' => DB_HOST,
        'driver' => 'pdo_mysql'
    ];
    $doctrineConnection = DriverManager::getConnection($params, $dbConfig);
    $entityManager = EntityManager::create($doctrineConnection, $emConfig);

how would I implement measures to ensure that annotations are properly cached?

This is not inside of any framework like symfony, it is inside a standalone webapp.