简体   繁体   English

对为iPhone应用程序制作的Web服务进行负载测试的方法

[英]Ways to do Load Testing for Web Service Made for iPhone Application

It's something strange I am posting here, as I have little bit confusion since last few days.. 我在这里发布的消息有点奇怪,因为最近几天以来我有点困惑。

I have made a web service in asp.net 3.5 using MSSQL 2005 as backend, for my iPhone Application. 我已经使用MSSQL 2005作为后端在asp.net 3.5中为我的iPhone应用程序提供了Web服务。

Now, My Database have some critical fields like longitude and latitude, based on this almost all my web service is working. 现在,“我的数据库”具有一些关键字段,例如经度和纬度,基于此,我几乎所有的Web服务都在工作。

Currently I have entered around 200 records to my db, and it's working fine in iPhone Device. 目前,我已经在数据库中输入了大约200条记录,并且在iPhone设备中可以正常工作。

So, my question is what are the ways to test my web service for around 25,000 records, and what are the ways to fill some dummy data to critical fields like Longitude and Latitude ? 因此,我的问题是测试约25,000条记录的Web服务的方法是什么,以及将一些伪数据填充到经度和纬度等关键字段的方法是什么?

Use the Visual Studio test edition to create load tests for the web service. 使用Visual Studio测试版为Web服务创建负载测试。

A simple sql script should be able to fill dummy data for you. 一个简单的sql脚本应该能够为您填充虚拟数据。 I am not sure about valid Longitude/Latitude values, but google should find you a list of values of places in the world that can be converted. 我不确定有效的经度/纬度值,但Google应该为您找到世界上可以转换的地点的值列表。

If you have access to a linux machine, you can use Apache Bench which is a really simple load tester. 如果您可以使用Linux机器,则可以使用Apache Bench ,这是一个非常简单的负载测试程序。 You can specify what url to hit with what frequency and what concurrency. 您可以指定以什么频率和并发命中哪个URL。

If you care about testing the performance, you should have a different machine generate the load. 如果您关心测试性能,则应该由另一台计算机生成负载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM