You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For many sketch algorithms (e.g. CMSketch), the update operation takes far less than 1us (~200ns on my machine), and the timer result is rounded to 0us. This causes significant inaccuracy for time measurement. The same problem exists in testInsert and testQuery, etc.
Changing microseconds to nanoseconds would be a solution.
Also notice that, std::chrono measures the wall clock time instead of CPU time. We might want to switch to std::clock(), which measures the CPU time and produces a more accurate result.
The text was updated successfully, but these errors were encountered:
In
test.h
, we use the following macros to measure the update and query time for each sketch:Here the
timer
is measured inmicroseconds
. However, intestUpdate
, we measure the time for each update separately:For many sketch algorithms (e.g. CMSketch), the
update
operation takes far less than 1us (~200ns on my machine), and the timer result is rounded to 0us. This causes significant inaccuracy for time measurement. The same problem exists intestInsert
andtestQuery
, etc.Changing
microseconds
tonanoseconds
would be a solution.Also notice that,
std::chrono
measures the wall clock time instead of CPU time. We might want to switch tostd::clock()
, which measures the CPU time and produces a more accurate result.The text was updated successfully, but these errors were encountered: