mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
Improve standalone fuzz driver timing output
This commit is contained in:
parent
ce6459ed6f
commit
6d0599c537
3 changed files with 11 additions and 2 deletions
6
CHANGES
6
CHANGES
|
@ -1,4 +1,10 @@
|
|||
|
||||
3.2.0-dev.554 | 2020-05-20 10:56:46 -0700
|
||||
|
||||
* Improve standalone fuzz driver timing output (Jon Siwek, Corelight)
|
||||
|
||||
* Skip fuzz inputs that have more than 64 chunks (Justin Azoff, Corelight)
|
||||
|
||||
3.2.0-dev.550 | 2020-05-19 10:50:42 -0700
|
||||
|
||||
* Upgrade to latest Broker changes for CAF 0.18 (Dominik Charousset, Corelight)
|
||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
3.2.0-dev.550
|
||||
3.2.0-dev.554
|
||||
|
|
|
@ -17,6 +17,7 @@ int main(int argc, char** argv)
|
|||
printf("Standalone fuzzer processing %d inputs\n", num_inputs);
|
||||
|
||||
LLVMFuzzerInitialize(&argc, &argv);
|
||||
auto fuzz_start = high_resolution_clock::now();
|
||||
|
||||
for ( auto i = 0; i < num_inputs; ++i )
|
||||
{
|
||||
|
@ -60,5 +61,7 @@ int main(int argc, char** argv)
|
|||
|
||||
auto agg_stop = high_resolution_clock::now();
|
||||
auto agg_dt = duration<double>(agg_stop - agg_start).count();
|
||||
printf("Processed %d inputs in %fs\n", num_inputs, agg_dt);
|
||||
auto fuzz_dt = duration<double>(agg_stop - fuzz_start).count();
|
||||
printf("Processed %d inputs in %fs (%fs w/ initialization), avg = %fs\n",
|
||||
num_inputs, fuzz_dt, agg_dt, fuzz_dt / num_inputs);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue