0

Argon2 をいじるためにhttps://github.com/charlesportwoodii/php-argon2-extを使用しています。パラメータをいじっているときに、それに応じてコアごとの速度が低下していないことに気付きました。

ここでグラフを参照してください: 時間は秒単位です

コードを実行:

for($threads = 1; $threads <= 8; $threads++) {
    $time1 = microtime(true);

    $options = [
        'm_cost' => 65536,//64MB
        't_cost' => 64,
        'threads' => $threads
    ];

    $password = "secret";
    argon2_hash($password, HASH_ARGON2I, $options);

    $time2 = microtime(true);
    $execution_time = ($time2 - $time1);
    printf("execution time with $threads threads: " . $execution_time . " seconds\n");
}

私のシステム: Debian 9、8GB RAM、i7-4710HQ @ 2.50GHz

誰かがこれを説明できますか、または理由を考えることができますか?

4

0 に答える 0