loadrunner解疑
登录性能测试,我想上2000人,每秒上31人。现在有两种方法,不知道哪种方法更符合实际:1.在initialize中选择初始化所有学员,在start vusers 选择每秒上31人。如图data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAl8AAABbCAIAAADC03d1AAAINklEQVR4nO2d23HcOBBFkZEj2Tic0joDf/jLETAEV01Asx9T5lJAo9EASXSTPKdusSgIj0aTxBVGo1FKKaWUfv38gRBCCKGPEu6IEEIIZfriju8jOKofAAAAFwR3fO3mqH4AAABcwB2dIVcAAAHBHZ0hVwAAAcEdnSFXAAABcXDHlJKxH3vN61LLVfrKSaM/IcMAAANEdMdHLdmKOypf7uRRGQYAGGC2O37WZX11ftTajTsCAAQkhDtmrx+u51nJ9stttUvT5Y5llsovtw2VxOoZft0lvQAAY0x1x2zxrRWWLlhWEJtfka7fO1qSZimxZLgcCADgOcRyR/FblnX/uhj3jlmh0Qszf1XcUXFiAIAHMtsdLasw7vg6yB2bzWs1lRgAAJ7APHesLdbNl/Vwx7KQV1YBAE7F3x1flbeEKBVwx9fou3KyrvRLcPXcAgAMw2flOHNUrnAyAIADwR2dwR0BAAKCOzpDrgAAAoI7AgAA5OTuiBBCCKFf5d5xP79+/vj2z7/IomVZ/vz+nlLiyJEjR45xjsuypA+rO+5f8XHHLndMKbmHgRBCaNWf399xR2d99o7uYSCEEFrF3tFf7B0RQiia2Dv6i70jQghFE3tHf7F3RAihaGLv6C/2jgghFE3tveOYWa7umP2lh9LEMlCzB3GUQ/z+PK17x7vmqhzLOMe1QrPyNPWGYZnp5PhDxYNQWLX3jmPPUrZ3HHsaZ7ZyVLZ3vGuuBpx4644ul8Zx7pPjQQhlMu0dBwwSd7Qr+73jXXOFO3pl3hIPQiiTde/Ya5CKO4odlv1b6tQaNisYO58jZe943Vw1xxJLxApbj1xLskIlQnsrcQpiV80KZU39ehnDs7Qy5kcMRk8IQo9Sx96x68nR947bR7dWx1Iy3E+ticvSoO8dr5irPWOVFfTRlW5L27APbU9FFuTY3JXmR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VdiWz0JtZJa/8qItcmO5dwSzPAsmmM1Yz4wwlo2zmilhPr+emuVFyU7L9sqR7GV2H9zpgA74dMAnOHTAG7PzVbtmNOJGRVcGtzRGdzxxtj3ZAAQDdzRGdwRACAguKMzuCMAQEBwR2dwRwCAgOCOzuCOAAABwR2dwR0BAAIiu+PnfEyf5gsAAMCVEdxxj9+yd+xiYe8IABAP2R15ZXUauCMAQEBwR2dwRwCAgOCOzuCOAAABwR2dwR0BAAKCOzqDOwIABAR3dAZ3BAAIyLnuWPtPbEdxg3+AsBj+v+M00ui//ds/7vBYN7gHACAgp+8dk/R/UMe45Tq43TsemCsLllFm5jxaPADwZHBHZ3DHrrFueQ8AQEBmu+P6AppystbXX+gTX4vbFkZ4rbJJ5o5l/OWJPiNjK3s+m1PQuypHr81Cv5pdMV/rHgCAgDjsHcWT2kKZLYVZ9M1WYj+hKPeO4pS7ZmRsZfHCZt6aY5VHYzzPuQcAICBR3LGMTNwolHXELy+0MuqvrF7IHWuj73HHh9wDABCQoO74nH0D7ljrqvYzk15yxXsAAALi8xcdSSKLrLZ12C52tZ7LCuIQESj/ouNdmUWWEH1GxlZKPvWrI45V6/YtuaNlLHF0JWa9QnMiAAArfBqAM8/8NABcCgCCgzs680B3tOxHAQB8wR2deaA7AgDEB3d0BncEAAgI7ugM7ggAEBDc0RncEQAgILijM7gjAEBAcnc8SgsAAMCV+d8dva0aAAAgCv8BoziI41macfQAAAAASUVORK5CYII=
2.在initialize中选择在run之前初始化学员,并在start vusers选择每秒上31人。如图data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAmIAAABfCAIAAADETzzrAAAJKklEQVR4nO2du27cRhSG+Qx5Efep06bJS/iVYshRnCBAFEPROlZhwYXBxHBpQMA2ruwqgI3YcLU1UyxM0HM5c2ZIzRwuvw8/CGo0lzOH5Pya1WrVffzw5uOHN5cXD7qu67ru8uLBIcLr16/fvXsX+66GP29e/fv+v8Ph8NOvfwzvf7l99E1BJ04Y19fXNzc3Dx8+PB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T1XIVbCsnIVYS618YMTbZspxrgimeRXKsZMwLRhjLxl20EkIdvr61/IvinPtthWOwVbD/5EwBZsLHC1iBjxc4eU5s+bY5HZtRwarBJq2ATZ4w+l0aAFgDm7QCNgkAYBBs0grYJACAQbBJK2CTAAAGwSatgE0CABgEm7QCNgkAYJCETR7Py3Rs3gMAAKwZySbnODC7ySx6dpMAAPZI2CQvulYDmwQAMAg2aQVsEgDAINikFbBJAACDYJNWwCYBAAyCTVoBmwQAMAg2aQVsEgDAIJVsMvaf4ZbiBP79Qq/4f5PVCP6fvzrjFo91AvcAABik3m6yC/2D1jJOckGc7iYXzJUGzSg1c24tHgDYMtikFbDJrLFO8h4AAIM0s8nxtTXhZKwvvwYYfJluWmjhZcwkjk368fsn8oyUrfT5TE5B7sofPTYL+WpmxbyuewAADNJyNxk8ia2YzproTCPZKtiPKfzdZHDKWTNSttKYYjJvybH8ozKe7dwDAGAQczbphxjcOvh1gl+uaImUX3RdkU3GRp9jkxu5BwDAINZtcjs7CWwy1lXshye5ZI33AAAYpPEfhHQhnBBjm4npqhfr2a8QHMIC/h+EDJFZOAmRZ6RsJeRTvjrBsWLdDiGb1IwVHF2IWa6QnAgAwAgfL2CFbX68AHYFAMbBJq2wQZvU7FABANqCTVphgzYJAGAfbNIK2CQAgEGwSStgkwAABsEmrYBNAgAYBJu0AjYJAGCQvu//B2oVP7/JweB4AAAAAElFTkSuQmCC
看起来好像差不多,但是结果却是差距有点大。就是不知道哪种更符合实际场景。求解疑惑
PS:脚本初始化中没有录制信息。 哪种更符合实际场景,要看你的性能测试要求。 回复 2# mymagic
我就是想问下,如果设置开始前初始化的话,下面设置的每秒加压31人,在场景中运行时,加压的真实情况还是不是每秒31人了。不是有可能每秒初始化达不到31人,怎么办呢 在init函数中写了什么? 回复 4# 黑羽祭
初始化中没有录制什么 回复 5# guchenggao
如果在init中没有录制如登录之类的东西,好像最后的结果不会有太大的区别吧。至少我没有发现过这样的问题。
页:
[1]