Skip to content

Commit

Permalink
Fix: Tracking benchmark start time
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed May 22, 2023
1 parent f340260 commit aab874c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ struct running_stats_printer_t {
running_stats_printer_t(std::size_t n, char const* msg) {
std::printf("%s. %zu items\n", msg, n);
total = n;
start_time = std::chrono::high_resolution_clock::now();
last_printed_time = start_time = std::chrono::high_resolution_clock::now();
}

~running_stats_printer_t() {
Expand Down Expand Up @@ -593,7 +593,7 @@ int main(int argc, char** argv) {
option("--f8quant").set(args.quantize_f8).doc("Enable `f8_t` quantization")),
( //
option("--ip").set(args.metric_ip).doc("Choose Inner Product metric") |
option("--l2").set(args.metric_l2).doc("Choose L2 Euclidean metric") |
option("--l2sq").set(args.metric_l2).doc("Choose L2 Euclidean metric") |
option("--cos").set(args.metric_cos).doc("Choose Angular metric") |
option("--haversine").set(args.metric_haversine).doc("Choose Haversine metric")),
option("-h", "--help").set(args.help).doc("Print this help information on this tool and exit"));
Expand Down

0 comments on commit aab874c

Please sign in to comment.