sp_bench.py 305 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/env python
from __future__ import print_function

from networkx import *
import cProfile

g = read_graphml("pgp.xml")

print("Profiling PageRank")
print("==================")
print()

cProfile.run("for i in range(10): pagerank_scipy(g, alpha=0.85, tol=1e-3, max_iter=10000000)", sort="cumulative")