#include "Pvs.h" #include "Timer/PerfTimer.h" #include "common.h" #include namespace CHCDemoEngine { void TestPvsPerformance() { // Pvs pvs(15000); const int prange=10000; Pvs pvs[prange+1]; // test PVS performance const int num = 100000000; const int range = 50000; PerfTimer timer; timer.Entry(); for (int i=0; i < num; i++) { int id = (int)Random(range); int pid = (5*num)%prange; pvs[pid].Insert(id, (float)i); if (i%1000000 == 0) { cout<