File: poisson_create_test.m

package info (click to toggle)
python-scipy 0.5.2-0.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 33,888 kB
  • ctags: 44,231
  • sloc: ansic: 156,256; cpp: 90,347; python: 89,604; fortran: 73,083; sh: 1,318; objc: 424; makefile: 342
file content (31 lines) | stat: -rw-r--r-- 572 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
% Benchmark for measuring performance of creating sparse matrices 
% using single element assignments.
%
% Used for comparison with Python and native C/C++
%
%
% Results for Matlab 6.5 (R13) on nedelec (Intel P4 2.40GHz, 512 KB cache)
%
%        n        t_constr
%    ---------------------
%      100          4.5055
%      300        608.5301
%      500       4648.1
%     1000             inf
%
% $Id: poisson_create_test.m,v 1.1 2003/11/17 15:40:14 geus Exp $

tic
A = poisson2d(100);
nnz(A)
toc

tic
A = poisson2d(300);
nnz(A)
toc

tic
A = poisson2d(500);
nnz(A)
toc