adamcz added a comment.

Would it make sense to set random seed to something fixed to make this more 
reproducible?



================
Comment at: 
clang-tools-extra/clangd/benchmarks/CompletionModel/DecisionForestBenchmark.cpp:2
+//===--- DecisionForestBenchmark.cpp - Benchmark for code completion ranking
+// latency -----------*- C++ -*-===//
+//
----------------
nit: this is supposed to be one-line comment, I think. 


================
Comment at: 
clang-tools-extra/clangd/benchmarks/CompletionModel/DecisionForestBenchmark.cpp:22
+namespace {
+std::vector<Example> GenerateRandomDataset(int NumExamples) {
+  auto FlipCoin = [&](float Probability) {
----------------
There are few lint warnings in this file. Please address them.


================
Comment at: 
clang-tools-extra/clangd/benchmarks/CompletionModel/DecisionForestBenchmark.cpp:73
+  for (auto _ : State) {
+    // State.PauseTiming();
+    const std::vector<Example> Examples = GenerateRandomDataset(1000000);
----------------
These should not be comments.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88590/new/

https://reviews.llvm.org/D88590

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to