summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/openssl/parse-results.php
blob: 32aa9401e66671a50b9815ad59da73b0f889d8e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

$log_file = file_get_contents(getenv("LOG_FILE"));
$BENCHMARK_RESULTS = substr($log_file, strrpos($log_file, "rsa 4096 bits") + 13);

$i = 0;
foreach(explode(" ", $BENCHMARK_RESULTS) as $item)
{
	$item = trim($item);

	if(!empty($item))
		$i++;

	if($i == 3)
	{
		$BENCHMARK_RESULTS = $item;
		break;
	}

}

echo $BENCHMARK_RESULTS;

?>