# seckill-service **Repository Path**: zwxu/seckill-service ## Basic Information - **Project Name**: seckill-service - **Description**: 秒杀系统示例 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-07-18 - **Last Updated**: 2024-07-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SeckillService # mysql /usr/local/mysql/support-files/mysql.server start # redis redis-server redis.conf redis-cli => keys * # stress test -k Use HTTP KeepAlive feature -t timelimit Seconds to max. to spend on benchmarking -n requests Number of requests to perform -c concurrency Number of multiple requests to make at a time ab -k -c 100 -t 10 http://localhost:8089/seckill-service/doSeckill?productId=1 测试数据 http://localhost:8089/seckill-service/doSeckill?productId=1 Requests per second: 716.40 [#/sec] (mean) Time per request: 139.587 [ms] (mean) http://localhost:8089/seckill-service/doSeckillCache?productId=1 Requests per second: 2955.46 [#/sec] (mean) Time per request: 33.836 [ms] (mean) http://localhost:8089/seckill-service/doSeckillLock?productId=1 Requests per second: 827.66 [#/sec] (mean) Time per request: 120.822 [ms] (mean)