Skip to content

Commit

Permalink
buaazp: add benchmark v3
Browse files Browse the repository at this point in the history
  • Loading branch information
buaazp committed Aug 12, 2014
1 parent bde6f6a commit 665d839
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ clean:
rm bin/zimg

cleanall:
cd src/webp; make clean
cd src/LuaJIT; make clean
rm -rf build
rm bin/zimg
cd src/LuaJIT; make clean
cd src/webp; make clean
2 changes: 1 addition & 1 deletion bin/conf/zimg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ quality=75
--storage config
--zimg support 3 ways for storage images
mode=1
save_new=1
save_new=0
max_size=100*1024*1024

--mode[1]: local disk mode
Expand Down
32 changes: 32 additions & 0 deletions doc/benchmark_test_for_zimg_v3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
### Benchmark Tnfomation

I used webimg to replace imagemagick as a new image processing library for zimg since v3.0. This benchmark test will show you how fast webimg is.

### Test targets

- zimg v2.2.0
- zimg v3.0

### Environment

OS: CentOS release 5.8 (Final)

CPU: Intel(R) Xeon(R) CPU E5-2620 @ 2.00GHz, 12 Cores

Memory: 32GB

### Test Method

Both v2.2 and v3.0 disabled save new image. Each request will spend mass of CPU to process and compress image. All requests will send by ab from apache http util. Zimg use 12 threads to handle the requests. Different concurrency level will be tested.

```
ab -c 10 -n 10000 "http://x.x.x.x:4868/xxx?w=100&h=100&g=1"
```
### Test Result

| Concurrency |10| 50 | 500 |
| :------:| :----: | :----: | :----: |
| zimg v2.2 | 24.11 | 24.10 | 23.93 |
| zimg v3.0 | 683.13 | 843.03 | 839.34 |


0 comments on commit 665d839

Please sign in to comment.