| 7 | class SparseMatrixPerf : public ::testing::Test { |
| 8 | protected: |
| 9 | virtual void SetUp() { |
| 10 | DataConfig data; |
| 11 | data.set_format(DataConfig::PROTO); |
| 12 | data.add_file("../../data/ctrb/train/part-000[0-3].*"); |
| 13 | |
| 14 | auto list = readMatricesOrDie<double>(searchFiles(data)); |
| 15 | X = std::static_pointer_cast<SparseMatrix<uint64, double>>(list[1]); |
| 16 | |
| 17 | FLAGS_num_threads = 1; |
| 18 | auto t = tic(); |
| 19 | X->countUniqIndex(&key); |
| 20 | LL << "sort keys: " << toc(t); |
| 21 | |
| 22 | time.resize(num_threads+1); |
| 23 | } |
| 24 | |
| 25 | SArray<uint64> key; |
| 26 | SpMat X; |
nothing calls this directly
no test coverage detected