Beispiel #1
0
def testRun():
    testN3Store('MySQL',configString)
    testRegex()
Beispiel #2
0
def testRun():
    testN3Store('MySQL', configString)
    testRegex()
Beispiel #3
0
testRegex.non_standard_dep = True

def testRun():
    testN3Store('MySQL',configString)
    testRegex()

testRun.non_standard_dep = True

def profileTests():
    from hotshot import Profile, stats
    p = Profile('rdflib-mysql.profile')
    p.runcall(testRun)
    p.close()

    s = stats.load('rdflib-mysql.profile')
    s.strip_dirs()
    s.sort_stats('time','cumulative','pcalls')
    #s.sort_stats('time','pcalls')
    s.print_stats(.1)
    s.print_callers(.1)
    s.print_callees(.1)

profileTests.non_standard_dep = True

if __name__=='__main__':
    testN3Store('MySQL',configString)
    testRegex()
    #profileTests()

Beispiel #4
0
def testRun():
    testN3Store('MySQL', configString)
    testRegex()


testRun.non_standard_dep = True


def profileTests():
    from hotshot import Profile, stats
    p = Profile('rdflib-mysql.profile')
    p.runcall(testRun)
    p.close()

    s = stats.load('rdflib-mysql.profile')
    s.strip_dirs()
    s.sort_stats('time', 'cumulative', 'pcalls')
    #s.sort_stats('time','pcalls')
    s.print_stats(.1)
    s.print_callers(.1)
    s.print_callees(.1)


profileTests.non_standard_dep = True

if __name__ == '__main__':
    testN3Store('MySQL', configString)
    testRegex()
    #profileTests()