Skip to content

Commit 5bce6d6

Browse files
committed
Fixed a typo in converting benchmark time from seconds to microseconds
1 parent 812b511 commit 5bce6d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/benchmark.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104

105105
$patchString = json_encode($operations);
106106
$benchmarkSeconds = \blancks\JsonPatchBenchmark\lib\applyJsonPatch($documentString, $patchString);
107-
$benchmarkMicrotime = intval($benchmarkSeconds * 10e6);
107+
$benchmarkMicrotime = intval($benchmarkSeconds * 1e6);
108108
$memoryKiB = memory_get_usage(true) / 1024;
109109
$resultsBuffer .= implode(',', [$patchsize, $benchmarkMicrotime, $memoryKiB]) . PHP_EOL;
110110
}

0 commit comments

Comments
 (0)