@@ -338,11 +338,117 @@ load_module modules/ngx_http_fs_sdk_module.so;
338
338
339
339
Then restart nginx service.
340
340
341
+ ## Performance & Benchmarking
342
+
343
+ ```
344
+ [ec2-user@ip-172-31-32-204 ~]$ cat /proc/cpuinfo
345
+ processor : 0
346
+ vendor_id : GenuineIntel
347
+ cpu family : 6
348
+ model : 63
349
+ model name : Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz
350
+ stepping : 2
351
+ microcode : 0x46
352
+ cpu MHz : 2399.874
353
+ cache size : 30720 KB
354
+ physical id : 0
355
+ siblings : 1
356
+ core id : 0
357
+ cpu cores : 1
358
+ apicid : 0
359
+ initial apicid : 0
360
+ fpu : yes
361
+ fpu_exception : yes
362
+ cpuid level : 13
363
+ wp : yes
364
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm cpuid_fault invpcid_single pti fsgsbase bmi1 avx2 smep bmi2 erms invpcid xsaveopt
365
+ bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
366
+ bogomips : 4800.03
367
+ clflush size : 64
368
+ cache_alignment : 64
369
+ address sizes : 46 bits physical, 48 bits virtual
370
+ power management:
371
+ ```
372
+
373
+ ```
374
+ ab -n 1000000 -c 500 http://localhost/with_module
375
+ ```
376
+
377
+ ```
378
+ This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
379
+ Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
380
+ Licensed to The Apache Software Foundation, http://www.apache.org/
381
+
382
+ Benchmarking localhost (be patient)
383
+ Completed 100000 requests
384
+ Completed 200000 requests
385
+ Completed 300000 requests
386
+ Completed 400000 requests
387
+ Completed 500000 requests
388
+ Completed 600000 requests
389
+ Completed 700000 requests
390
+ Completed 800000 requests
391
+ Completed 900000 requests
392
+ Completed 1000000 requests
393
+ Finished 1000000 requests
394
+
395
+
396
+ Server Software: nginx/1.20.0
397
+ Server Hostname: localhost
398
+ Server Port: 80
399
+
400
+ Document Path: /with_module
401
+ Document Length: 14 bytes
402
+
403
+ Concurrency Level: 500
404
+ Time taken for tests: 440.062 seconds
405
+ Complete requests: 1000000
406
+ Failed requests: 0
407
+ Total transferred: 156000000 bytes
408
+ HTML transferred: 14000000 bytes
409
+ Requests per second: 2272.41 [#/sec] (mean)
410
+ Time per request: 220.031 [ms] (mean)
411
+ Time per request: 0.440 [ms] (mean, across all concurrent requests)
412
+ Transfer rate: 346.19 [Kbytes/sec] received
413
+
414
+ Connection Times (ms)
415
+ min mean[+/-sd] median max
416
+ Connect: 0 0 0.6 0 41
417
+ Processing: 13 220 5.6 219 259
418
+ Waiting: 0 220 5.6 219 259
419
+ Total: 39 220 5.3 220 259
420
+
421
+ Percentage of the requests served within a certain time (ms)
422
+ 50% 220
423
+ 66% 221
424
+ 75% 222
425
+ 80% 223
426
+ 90% 225
427
+ 95% 228
428
+ 98% 234
429
+ 99% 239
430
+ 100% 259 (longest request)
431
+ ```
432
+
341
433
## Reference
342
434
343
435
- [ Nginx development guide] ( http://nginx.org/en/docs/dev/development_guide.html )
344
436
- [ Nginx module development] ( https://www.evanmiller.org/nginx-modules-guide.html )
345
437
- [ Echo module] ( https://github.com/openresty/echo-nginx-module )
346
438
- [ Extending nginx] ( https://www.nginx.com/resources/wiki/extending/ )
347
439
440
+ ## Contributors
441
+
442
+
443
+
444
+
445
+ <table >
446
+
447
+ table >
448
+
449
+
450
+
451
+
452
+
453
+
348
454
## Copyright & License
0 commit comments