Posted by
junoyoon on
URL: http://ngrinder.373.s1.nabble.com/Database-TPS-tp1584p1596.html
저도 로직상으로는 별다른 문제를 찾지 못했습니다. 그래서 답변을 못했던 것이구요.
하단의 The Grinder 에서 제공하는 Python의 record 구문이 제가 작성한 Groovy record 와는 조금 다른데,
거기에서 발생한 문제라고만 추측하고 있습니다.
일반적으로는 저는 이런 문제는 Python method 자체를 record 함으로써 해결합니다.
class TestRunner:
def __init__(self) :
grinder.statistics.delayReports=True
pass
def __call__(self):
result = self.executeStatement(statement, "SELECT **보안**** FROM
**보안*** WHERE ***보안** = '0000000001'")
result = self.executeQuery(statement, "call
ProcudreName('1000000003','1000000003', 'test1000000003')")
result.next()
self.checkResponse(result, "***보안********")
def executeStatement(self, statement, query) :
statement.execute(query)
def executeQuery(self, statement, query) :
statement.executeQuery(query)
def checkResponse(self, result, url) :
log("%s : %s" % (url, result.getString(1)))
#grinder.statistics.forLastTest.success = 1
#grinder.statistics.forLastTest.success = 0
self.sleep(1000)
def sleep(self, millisecond):
""" sleep during the given millisecond. """
grinder.sleep(millisecond)
test1.record(TestRunner.executeStatement)
test1.record(TestRunner.executeQuery)
2014년 7월 22일 오전 11:21, YoungWoo Kim [via ngrinder] <
ml-node+s642n1594h98@n7.nabble.com>님이 작성:
> 안녕하세요~
>
> 회신이 없으셔서 다시 문의 드립니다.^^
>
> 우선 groovy로 작성했을 경우에는 정상적으로 TPS가 증가하여, Groovy로 작성 후 성능 테스트를 진행하고 있습니다.
>
> python으로 작성 시 동작하지 않는 원인에 대해서는 파악이 어려우실까요?
>
> 바쁘시겠지만, 확인 부탁드리겠습니다.
>
> 감사합니다.
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
http://ngrinder.642.n7.nabble.com/Database-TPS-tp1584p1594.html> To start a new topic under ngrinder-user-kr, email
> ml-node+s642n113h87@n7.nabble.com
> To unsubscribe from ngrinder-user-kr, click here
> <
http://ngrinder.642.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=113&code=anVub3lvb25AZ21haWwuY29tfDExM3wtNzI2NjYwMzQy>
> .
> NAML
> <
http://ngrinder.642.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>