File: testperf.m

package info (click to toggle)
suitesparse 1%3A5.8.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 152,716 kB
  • sloc: ansic: 774,385; cpp: 24,213; makefile: 6,310; fortran: 1,927; java: 1,826; csh: 1,686; ruby: 725; sh: 535; perl: 225; python: 209; sed: 164; awk: 60
file content (59 lines) | stat: -rw-r--r-- 2,565 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
function testperf
%TESTPERF run all performance tests

% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved.
% http://suitesparse.com   See GraphBLAS/Doc/License.txt for license.

t = tic ;
fprintf ('\ntestperf:  run all performance tests\n') ;

test_other ;    % install required packages

debug_off

test26(1) ;     % performance test for GxB_select
test36 ;        % performance test of matrix subref
test30 ;        % performance test GB_mex_subassign, scalar expansion
test30b ;       % performance test GB_mex_assign, scalar expansionb
test35 ;        % performance test for GrB_extractTuples
test39 ;        % performance test for GrB_transpose
test42 ;        % performance tests for GB_mex_Matrix_build
test43 ;        % performance tests for GB_mex_Matrix_subref
test46 ;        % performance test GB_mex_subassign
test48 ;        % performance test of GrB_mxm
test46b ;       % performance test GB_mex_assign
test49 ;        % performance test of GrB_mxm (dot product method, A'*B)
test51 ;        % performance test GB_mex_subassign, multiple ops
test58(0)       % longer GB_mex_Matrix_eWiseAdd performance test
test61 ;        % performance test of GrB_eMult
test68 ;        % performance tests for eWiseMult
f = [936 2662] ;
test70 (f) ;    % performance comparison of triangle counting methods
test71 (f) ;    % performance comparison of triangle counting methods
test73 ;        % performance of C = A*B, with mask
test86 ;        % performance of GrB_Matrix_extract
test52 ;        % performance of A*B with tall matrices, AdotB, AxB

test37 ;        % performance of qsort
test51b ;       % performance of GrB_assign, multiply operations
test87 ;        % performance test of GrB_mxm
test89 ;        % performance test of complex A*B
test91 ;        % test subref performance on dense vectors
test95 ;        % performance test for GrB_transpose

test111 ;       % performance test for eWiseAdd
test113 ;       % performance tests for GrB_kron
test114 ;       % performance of reduce-to-scalar
test116 ;       % performance tests C(I,J)=A and C=A(I,J)
test117 ;       % performance tests C(:,:)<M> += A
test118 ;       % performance tests C(:,:)<M> = A
test119 ;       % performance tests C(I,J) += scalar
test120 ;       % performance tests C(I,J)<!M> += scalar
test121 ;       % performance tests C(I,J)+=A
test122 ;       % performance tests C(I,J)<!M> += A

% perfoance test of GrB_mxm on all semirings (just auto method)
test06(936, [ ], 1, 0) ;

fprintf ('\ntestperf:  all tests passed.  Total te %g\n', toc (t)) ;