一、 http_load
程序非常小,解壓后也不到100K。http_load以并行復用的方式運行,用以測試web服務器的吞吐量與負載。
但是它不同于大多數壓力測試工具,它可以以一個單一的進程運行,一般不會把客戶機搞死。還可以測試HTTPS類的網站請求。
安裝很簡單:
tar zxvf http_load-12mar2006.tar.gz
cd http_load-12mar2006
make
make install
命令格式:http_load -p 并發訪問進程數 -s 訪問時間 需要訪問的URL文件
參數其實可以自由組合,參數之間的選擇并沒有什么限制。比如你寫成http_load -parallel 5 -seconds 300 urls.txt也是可以的。我們把參數給大家簡單說明一下:
-parallel 簡寫-p :含義是并發的用戶進程數。
-fetches 簡寫-f :含義是總計的訪問次數。
-rate 簡寫-p :含義是每秒的訪問頻率。
-seconds簡寫-s :含義是總計的訪問時間
準備URL文件:urllist.txt,文件格式是每行一個URL,URL最好超過50-100個測試效果比較好。文件格式如下:
http://127.0.0.1:80/getuserinfo?uid=1
http://127.0.0.1:80/getgroupinfo?gid=1
... ...
我們來看運行一條命令來看看它的返回結果 命令:% ./http_load -rate 5 -seconds 10 urls說明執行了一個持續時間10秒的測試,每秒的頻率為5。
49 fetches, 2 max parallel, 289884 bytes, in 10.0148 seconds5916 mean bytes/connection4.89274
fetches/sec, 28945.5 bytes/secmsecs/connect: 28.8932 mean, 44.243 max, 24.488 minmsecs/first
-response: 63.5362 mean, 81.624 max, 57.803 minHTTP response codes: code 200 — 49
結果分析:
1.49 fetches, 2 max parallel, 289884 bytes, in 10.0148 seconds 說明在上面的測試中運行了49個請求,最大的并發進程數是2,總計傳輸的數據是289884bytes,運行的時間是10.0148秒
2.5916 mean bytes/connection說明每一連接平均傳輸的數據量289884/49=5916
3.4.89274 fetches/sec, 28945.5 bytes/sec 說明每秒的響應請求為4.89274,每秒傳遞的數據為28945.5 bytes/sec
4.msecs/connect: 28.8932 mean, 44.243 max, 24.488 min說明每連接的平均響應時間是28.8932 msecs,最大的響應時間44.243 msecs,最小的響應時間24.488 msecs
5.msecs/first-response: 63.5362 mean, 81.624 max, 57.803 min
6、HTTP response codes: code 200 — 49 說明打開響應頁面的類型,如果403的類型過多,那可能要注意是否系統遇到了瓶頸。
特殊說明: 測試結果中主要的指標是 fetches/sec、msecs/connect 這個選項,即服務器每秒能夠響應的查詢次數,
用這個指標來衡量性能。似乎比 apache的ab準確率要高一些,也更有說服力一些。 Qpt-每秒響應用戶數和response time,每連接響應用戶時間。 測試的結果主要也是看這兩個值。當然僅有這兩個指標并不能完成對性能的分析,我們還需要對服務器的cpu、men進行分析,才能得出結論。
二、wrk
wrk 是一個很簡單的 http 性能測試工具,也可以叫做 http benchmark工具。只有一個命令行,就能做很多基本的 http 性能測試。wrk 是開源的,代碼在 github 上
首先要說的一點是: wrk 只能運行在 Unix 類的系統上. 比如 linux, mac, solaris 等. 也只能在這些系統上編譯. wrk 的一個很好的特性就是能用很少的線程壓出很大的并發量. 原因是它使用了一些操作系統特定的高性能 io 機制, 比如 select, epoll, kqueue 等. 其實它是復用了 redis 的 ae 異步事件驅動框架. 確切的說 ae 事件驅動框架并不是 redis 發明的, 它來至于 Tcl的解釋器 jim, 這個小巧高效的框架, 因為被 redis 采用而更多的被大家所熟知.
要用 wrk, 首先要編譯 wrk. 你的機器上需要已經安裝了 git 和基本的c編譯環境. wrk 本身是用 c 寫的. 代碼很少. 并且沒有使用很多第三方庫. 所以編譯基本不會遇到什么問題.
1、下載編譯:
git clone https://github.com/wg/wrk.git
cd wrk
make
就 ok了. make 成功以后在目錄下有一個 wrk 文件. 就是它了. 你可以把這個文件復制到其他目錄, 比如 bin 目錄. 或者就這個目錄下執行.
如果編譯過程中出現:
src/wrk.h:11:25: fatal error: openssl/ssl.h: No such file or directory
#include 是因為系統中沒有安裝openssl的庫.
sudo apt-get install libssl-dev
或 sudo yum install openssl-devel
2、測試運行:
我們先來做一個簡單的性能測試:
./wrk -t10 -c10 -d10s -T10s --latency 'http://127.0.0.1:7001/login/im?appid=1&udata=2'
30秒鐘結束以后可以看到如下輸出:
核數的2到4倍足夠了. 多了反而因為線程切換過多造成效率降低. 因為 wrk 不是使用每個連接一個線程的模型, 而是通過異步網絡 io 提升并發量. 所以網絡通信不會阻塞線程執行.
這也是 wrk 可以用很少的線程模擬大量網路連接的原因. 而現在很多性能工具并沒有采用這種方式, 而是采用提高線程數來實現高并發. 所以并發量一旦設的很高, 測試機自身壓力就很大. 測試效果反而下降.
3、腳本擴展:
我們通過一些測試場景在看看怎么使用 lua 腳本.
POST + header + body.
首先創建一個 post.lua 的文件:
wrk.method="POST"
wrk.body="foo=bar&baz=quux"
wrk.headers["Content-Type"]="application/x-www-form-urlencoded"
就這三行就可以了, 當然 headers 可以加入任意多的內容. 然后執行:
wrk -t12 -c100 -d30s -T30s --script=post.lua --latency 'http://127.0.0.1:7001/login/im?appid=1&udata=2'
02SJ105 【GQ塑合中空內模水泥墻建筑構造】 https://url68.ctfile.com/f/1826968-650670493-07f2bb?p=2001
02SJ106 【3E輕型高強方孔墻板建筑構造圖集】 https://url68.ctfile.com/f/1826968-650670490-fc4237?p=2001
02SJ601 【PVC塑料門窗】 https://url68.ctfile.com/f/1826968-650670496-c793dd?p=2001
03SG605 【頁巖多孔磚墻體建筑構造(KP1)】 https://url68.ctfile.com/f/1826968-650670499-47fd70?p=2001
03SJ107 【頁巖多孔磚墻體建筑構造(KP1)】 https://url68.ctfile.com/f/1826968-650670502-a60f9f?p=2001
04SJ104 【爐渣混凝土聚苯復合保溫板構造圖集】 https://url68.ctfile.com/f/1826968-650670511-271856?p=2001
04SJ109 【輕鋼龍骨石膏板建筑構造】 https://url68.ctfile.com/f/1826968-650670520-83f8eb?p=2001
05J14 【民用建筑太陽能熱水系統設計與安裝】 https://url68.ctfile.com/f/1826968-650670517-52f31c?p=2001
05J3-3 【外墻夾芯保溫】 https://url68.ctfile.com/f/1826968-650670514-b4d516?p=2001
05SG401 【螺旋肋鋼絲預應力混凝土雙T板】 https://url68.ctfile.com/f/1826968-650670523-d7533a?p=2001
05SJ801 【建筑防水構造(一)(BAC自粘防水卷材)】 https://url68.ctfile.com/f/1826968-650670532-857f42?p=2001
06G304 【預制鋼筋混凝土方樁】 https://url68.ctfile.com/f/1826968-650670541-0523c1?p=2001
06G305 【預制鋼筋混凝土空心方樁】 https://url68.ctfile.com/f/1826968-650670535-ec88d3?p=2001
06J102 【住宅垂直集中排氣系統】 https://url68.ctfile.com/f/1826968-650670538-51f622?p=2001
06J103 【圍護結構保溫構造(ZL保溫系列)】 https://url68.ctfile.com/f/1826968-650670544-fb75a1?p=2001
06S401 【整體直埋式化糞池】 https://url68.ctfile.com/f/1826968-650670550-786ca2?p=2001
07J902 【建筑變形縫構造(金屬成品系列)】 https://url68.ctfile.com/f/1826968-650670553-3456e9?p=2001
07SJ110 【圍護結構外墻外保溫構造(擠塑聚苯乙烯泡沫塑料板)】 https://url68.ctfile.com/f/1826968-650670556-6944d9?p=2001
07SJ111 【圍護結構保溫構造(干法施工砂加氣塊保溫墻)】 https://url68.ctfile.com/f/1826968-650670559-a4f8ed?p=2001
07SJ112 【圍護結構保溫構造(CL墻體保溫體系)】 https://url68.ctfile.com/f/1826968-650670562-e35037?p=2001
07SJ113 【圍護結構保溫構造(CS墻體保溫體系)】 https://url68.ctfile.com/f/1826968-650670577-d10bae?p=2001
07SJ114 【圍護結構保溫構造(非承重燒結頁巖保溫空心磚系列)】 https://url68.ctfile.com/f/1826968-650670583-e705c6?p=2001
07SJ701 【居住建筑節能設計施工圖編制深度圖樣】 https://url68.ctfile.com/f/1826968-650670580-2eca7c?p=2001
07SJ702 【公共建筑節能設計施工圖編制深度圖樣】 https://url68.ctfile.com/f/1826968-650670586-ff80f5?p=2001
07SJ802 【建筑防水構造(粘霸系列)】 https://url68.ctfile.com/f/1826968-650670589-4bad40?p=2001
07SJ803 【建筑防水構造(YH防水系列)】 https://url68.ctfile.com/f/1826968-650670598-41640c?p=2001
07SJ903 【預制件組合結構圍墻】 https://url68.ctfile.com/f/1826968-650670604-120a1b?p=2001
07SSZ1 【城市道路質量通病防治系列圖集】 https://url68.ctfile.com/f/1826968-650670601-8cb97d?p=2001
07SSZ1-1 【市政道路工程細部構造】 https://url68.ctfile.com/f/1826968-650670607-71294e?p=2001
07SSZ1-2 【普通混凝土砌塊排水檢查井】 https://url68.ctfile.com/f/1826968-650670610-7595cc?p=2001
07SSZ1-3 【再生水檢查井及管道細部做法】 https://url68.ctfile.com/f/1826968-650670616-bda377?p=2001
07SSZ1-4 【自來水管道檢查井】 https://url68.ctfile.com/f/1826968-650670619-073a3f?p=2001
07SSZ1-5 【燃氣管井】 https://url68.ctfile.com/f/1826968-650670622-7e2dbd?p=2001
07SSZ1-6 【電力排管、工井】 https://url68.ctfile.com/f/1826968-650670625-4d40f3?p=2001
07SSZ1-7 【通信管道人(手)孔】 https://url68.ctfile.com/f/1826968-650670628-366874?p=2001
07SSZ1-8 【熱力管井】 https://url68.ctfile.com/f/1826968-650670637-88b6ab?p=2001
08MS-D 【天津市民用建筑施工圖設計審查要點-電氣篇】 https://url68.ctfile.com/f/1826968-650670640-ba9072?p=2001
08MS-G 【天津市民用建筑施工圖設計審查要點-結構篇】 https://url68.ctfile.com/f/1826968-650670643-6e9b0e?p=2001
08MS-J 【天津市民用建筑施工圖設計審查要點-建筑篇】 https://url68.ctfile.com/f/1826968-650670646-98d18e?p=2001
08MS-JN 【天津市民用建筑施工圖設計審查要點-節能篇(居住建筑和公共建筑部分)】 https://url68.ctfile.com/f/1826968-650670649-7b984d?p=2001
08MS-K 【天津市民用建筑施工圖設計審查要點-勘察篇】 https://url68.ctfile.com/f/1826968-650670652-22e329?p=2001
08MS-N 【天津市民用建筑施工圖設計審查要點-暖通空調及動力篇】 https://url68.ctfile.com/f/1826968-650670655-27f978?p=2001
08MS-S 【天津市民用建筑施工圖設計審查要點-給水排水篇】 https://url68.ctfile.com/f/1826968-650670658-e35056?p=2001
08MS-WT 【天津市房屋建筑施工圖設計審查-常見問題】 https://url68.ctfile.com/f/1826968-650670661-909c0a?p=2001
08SJ804 【建筑防水構造(AU3防水系列)】 https://url68.ctfile.com/f/1826968-650670664-e06113?p=2001
09G305 【先張法預應力離心混凝土空心方樁】 https://url68.ctfile.com/f/1826968-650670670-2c48b4?p=2001
09SJ116 【住宅廚房、衛生間排氣道(變截面、防火)】 https://url68.ctfile.com/f/1826968-650670673-9af986?p=2001
09SJ805 【建筑防水構造(PRRM種植屋面及防水系列)】 https://url68.ctfile.com/f/1826968-650670676-d72ab9?p=2001
10G306 【先張法預應力離心混凝土管樁】 https://url68.ctfile.com/f/1826968-650670679-285b3f?p=2001
12D1 【圖形符號與技術資料】 https://url68.ctfile.com/f/1826968-650670682-a97188?p=2001
12D10 【防雷與接地工程】 https://url68.ctfile.com/f/1826968-650671268-e64cf9?p=2001
12D12 【有線電視工程】 https://url68.ctfile.com/f/1826968-650670904-43cf45?p=2001
12D13 【廣播、擴聲與視頻顯示工程】 https://url68.ctfile.com/f/1826968-650671331-2592d5?p=2001
12D14 【安全防范工程】 https://url68.ctfile.com/f/1826968-650671226-bf5a75?p=2001
12D15 【綜合布線工程】 https://url68.ctfile.com/f/1826968-650671237-40b61d?p=2001
12D16 【空調自控】 https://url68.ctfile.com/f/1826968-650671482-ad2983?p=2001
12D17 【公共建筑能耗監測及管理系統】 https://url68.ctfile.com/f/1826968-650671381-ef04a7?p=2001
12D18 【太陽能光伏系統設計及安裝】 https://url68.ctfile.com/f/1826968-650671336-f1e834?p=2001
12D2 【100.4KV變頻電裝置】 https://url68.ctfile.com/f/1826968-650670825-b3e9d8?p=2001
12D3 【100.4kv變頻電所微機綜合保護系統】 https://url68.ctfile.com/f/1826968-650671257-cfa945?p=2001
12D6 【照明裝置】 https://url68.ctfile.com/f/1826968-650670898-fa68b6?p=2001
12D7 【通用用電設備】 https://url68.ctfile.com/f/1826968-650670713-292de3?p=2001
12D8 【內線工程】 https://url68.ctfile.com/f/1826968-650671270-a0c6a3?p=2001
12D9 【室外電纜工程】 https://url68.ctfile.com/f/1826968-650671048-a31839?p=2001
12J1 【工程做法】 https://url68.ctfile.com/f/1826968-650671273-6cbba8?p=2001
12J10 【附屬建筑】 https://url68.ctfile.com/f/1826968-650671429-ffde90?p=2001
12J11 【衛生、洗滌設施】 https://url68.ctfile.com/f/1826968-650671432-0eeb4d?p=2001
12J12 【無障礙設施】 https://url68.ctfile.com/f/1826968-650671447-5d41c0?p=2001
12J13 【太陽能熱水系統與建筑一體構造】 https://url68.ctfile.com/f/1826968-650671450-52813b?p=2001
12J14 【建筑變形縫】 https://url68.ctfile.com/f/1826968-650671453-689741?p=2001
12J15-1 【住宅廚房】 https://url68.ctfile.com/f/1826968-650671456-fd4686?p=2001
12J15-2 【住宅衛生間】 https://url68.ctfile.com/f/1826968-650671468-f2b976?p=2001
12J16 【 建筑遮陽】 https://url68.ctfile.com/f/1826968-650671471-d70ae6?p=2001
12J2 【地下工程防水】 https://url68.ctfile.com/f/1826968-650671297-9938b1?p=2001
12J3-1 【外墻外保溫】 https://url68.ctfile.com/f/1826968-650671309-df9ccf?p=2001
12J3-2 【外墻夾心保溫】 https://url68.ctfile.com/f/1826968-650671327-3b44e6?p=2001
12J3-3 【蒸壓加氣混凝土砌塊墻】 https://url68.ctfile.com/f/1826968-650671333-4bad19?p=2001
12J3-4 【輕質內隔墻】 https://url68.ctfile.com/f/1826968-650671339-b55b13?p=2001
12J3-5 【蒸壓砂加氣混凝土砌塊】 https://url68.ctfile.com/f/1826968-650671348-8be533?p=2001
12J3-6 【外內保溫墻】 https://url68.ctfile.com/f/1826968-650671357-fe9644?p=2001
12J4-1 【常用門窗】 https://url68.ctfile.com/f/1826968-650671360-77977d?p=2001
12J4-2 【專業門窗】 https://url68.ctfile.com/f/1826968-650671372-7bcb84?p=2001
12J5-1 【平屋面】 https://url68.ctfile.com/f/1826968-650671375-28e430?p=2001
12J5-2 【坡屋面】 https://url68.ctfile.com/f/1826968-650671378-b9a599?p=2001
12J6 【外裝修】 https://url68.ctfile.com/f/1826968-650671384-26067d?p=2001
12J7-1 【內裝修-墻面、樓地面】 https://url68.ctfile.com/f/1826968-650671396-b7f681?p=2001
12J7-2 【內裝修-配件】 https://url68.ctfile.com/f/1826968-650671399-800c54?p=2001
12J7-3 【內裝修-吊頂】 https://url68.ctfile.com/f/1826968-650671405-f2ae23?p=2001
12J8 【樓梯】 https://url68.ctfile.com/f/1826968-650671408-6df26e?p=2001
12J9-1 【室外工程】 https://url68.ctfile.com/f/1826968-650671417-be6774?p=2001
12J9-2 【環境景觀設計】 https://url68.ctfile.com/f/1826968-650671426-72608d?p=2001
12N1 【供暖工程】 https://url68.ctfile.com/f/1826968-650671580-272c9f?p=2001
16J18 【公共建筑節能設計施工圖編制深度圖樣】 https://url68.ctfile.com/f/1826968-650671477-d8807f?p=2001
16J19 【居住建筑節能設計施工圖編制深度圖樣】 https://url68.ctfile.com/f/1826968-650671483-b91fe7?p=2001
16MS-N 【天津市民用建筑施工圖設計審查要點-暖通空調及動力篇】 https://url68.ctfile.com/f/1826968-650671489-1252f6?p=2001
DB12T767-2018 【天津市行政許可事項操作規程建設工程施工許可-建筑工程施工許可】 https://url68.ctfile.com/f/1826968-679454683-eb8572?p=2001
DB12T915-2019 【水利工程項目劃分編制管理規范】 https://url68.ctfile.com/f/1826968-752313010-13326e?p=2001
DB29-103-2010 【鋼筋混凝土地下連續墻施工技術規程】 https://url68.ctfile.com/f/1826968-650671576-8f6672?p=2001
DB29-110-2010 【預應力混凝土管樁技術規程】 https://url68.ctfile.com/f/1826968-650671582-0786da?p=2001
DB29-113-2011 【天津市建設工程施工現場安全管理規程】 https://url68.ctfile.com/f/1826968-650671591-0262cb?p=2001
DB29-1-2007 【天津市居住建筑節能設計標準】 https://url68.ctfile.com/f/1826968-650671501-c3dcb7?p=2001
DB29-1-2013 【天津市居住建筑節能設計標準】 https://url68.ctfile.com/f/1826968-650671507-5de6fe?p=2001
DB29-120-2005 【天津市住宅建筑通用規程】 https://url68.ctfile.com/f/1826968-650671597-363abf?p=2001
DB29-125-2007 【天津市民用建筑節能工程施工技術規程】 https://url68.ctfile.com/f/1826968-650671603-8ef411?p=2001
DB29-126-2010 【天津市民用建筑節能工程施工質量驗收規程】 https://url68.ctfile.com/f/1826968-650671609-0db61c?p=2001
DB29-134-2005 【鋼結構防火涂料工程施工驗收規范】 https://url68.ctfile.com/f/1826968-650671615-140297?p=2001
DB29-153-2005 【天津市公共建筑節能設計標準】 https://url68.ctfile.com/f/1826968-650671618-19b91a?p=2001
DB29-153-2014 【天津市公共建筑節能設計標準】 https://url68.ctfile.com/f/1826968-679454699-7be0d0?p=2001
DB29-164-2006 【天津市建筑節能門窗技術標準】 https://url68.ctfile.com/f/1826968-650671627-19c25b?p=2001
DB29-172-2007 【天津市非承重燒結頁巖空心磚墻體技術規程】 https://url68.ctfile.com/f/1826968-650671630-a1f0be?p=2001
DB29-213-2012 【預應力混凝土空心方樁技術規程】 https://url68.ctfile.com/f/1826968-650671639-2b55af?p=2001
DB29-216-2013 【天津市民用建筑能耗監測系統設計標準】 https://url68.ctfile.com/f/1826968-650671642-bd93d2?p=2001
DB29-22-2000 【天津市城市住宅設計標準(電氣設計部分補充規定)】 https://url68.ctfile.com/f/1826968-650671516-70b517?p=2001
DB29-22-2007 【天津市住宅設計標準】 https://url68.ctfile.com/f/1826968-650671525-90459a?p=2001
DB29-22-2013 【天津市住宅設計標準】 https://url68.ctfile.com/f/1826968-650671531-d34fc3?p=2001
DB29-65-2004 【天津市擠擴灌注樁技術規程】 https://url68.ctfile.com/f/1826968-650671540-b999cc?p=2001
DB29-68-2004 【天津市城市綠化工程施工技術規程】 https://url68.ctfile.com/f/1826968-650671546-fb7001?p=2001
DB29-69-2004 【天津市二次供水工程技術標準】 https://url68.ctfile.com/f/1826968-650671549-01ebe2?p=2001
DB29-69-2016 【天津市二次供水工程技術規程】 https://url68.ctfile.com/f/1826968-650671561-def9b6?p=2001
DB29-7-2008 【天津市居住區公共服務設施配置標準】 https://url68.ctfile.com/f/1826968-650671513-001596?p=2001
DB29-81-2004 【天津市園林綠化工程質量檢查評定和驗收標準】 https://url68.ctfile.com/f/1826968-650671564-74cb9b?p=2001
DB29-86-2004 【天津市建設工程文件歸檔整理規程】 https://url68.ctfile.com/f/1826968-650671567-b03655?p=2001
DBT29-209-2010 【建筑工程施工質量驗收資料管理規程】 https://url68.ctfile.com/f/1826968-650671657-caa377?p=2001
DBT29-217-2013 【天津市巖棉外墻外保溫系統應用技術規程】 https://url68.ctfile.com/f/1826968-650671660-0f854b?p=2001
DBT29-222-2014 【天津市建設工程施工安全資料管理規程】 https://url68.ctfile.com/f/1826968-650671669-4d0b3c?p=2001
DBT29-227-2014 【天津市泡沫塑料板薄抹灰外墻外保溫系統應用技術規程】 https://url68.ctfile.com/f/1826968-650671675-13d7a1?p=2001
DBT29-26-2017 【天津市集中供熱住宅計量供熱設計規程】 https://url68.ctfile.com/f/1826968-752313029-271338?p=2001
DBT29-88-2014 【天津市民用建筑圍護結構節能檢測技術規程】 https://url68.ctfile.com/f/1826968-650671645-a5c5f3?p=2001
津16MS-J 【天津市民用建筑施工圖設計審查要點 建筑篇】 https://url68.ctfile.com/f/1826968-679454693-ae6d1f?p=2001
津17WJ-3 【天津市裝配式鋼結構建筑施工圖設計審查指南】 https://url68.ctfile.com/f/1826968-679454689-12a7b1?p=2001
這是目前收集到的天津地區的圖集、規范,不知道有沒有少的,希望大家留言,我好補全。已經把所有資料打包成了Excel文件,順便制作了一個可以查詢的功能,WPS用起來還是比較不友好,所以如果需要,私信留郵箱,所有的下載密碼都是:2001,目前總共收錄了9823份文件,希望可以幫到大家
搜索頁展示:
地區文件展示