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
Hello,
I am trying to run profiler while running ann-benchmarks using the following code:
`from multiprocessing import freeze_support
import cProfile
import pstats
from ann_benchmarks.main import main
import yappi
if name == "main":
profiler = cProfile.Profile()
profiler.enable()
freeze_support()
main() # The function that runs the benchmark
profiler.disable()
stats = pstats.Stats(profiler).sort_stats('cumtime')
stats.print_stats(10) # Print top 10 results
stats.dump_stats('profile_results.prof')
Then run python run.py --dataset fashion-mnist-784-euclidean --algorithm milvus-ivfflat --runs 1`
I am able to get the profiler data. But i am not sure if this is the correct way to profile for Milvus.
It would be great if someone who have already done profiling for Milvus database share their opinion.
The text was updated successfully, but these errors were encountered:
Hello,
I am trying to run profiler while running ann-benchmarks using the following code:
`from multiprocessing import freeze_support
import cProfile
import pstats
from ann_benchmarks.main import main
import yappi
if name == "main":
profiler = cProfile.Profile()
profiler.enable()
Then run
python run.py --dataset fashion-mnist-784-euclidean --algorithm milvus-ivfflat --runs 1`I am able to get the profiler data. But i am not sure if this is the correct way to profile for Milvus.
It would be great if someone who have already done profiling for Milvus database share their opinion.
The text was updated successfully, but these errors were encountered: