仙人掌世界
learn - innovate - share
Showing posts with label
performance
.
Show all posts
Showing posts with label
performance
.
Show all posts
Apr 19, 2013
golang - Profiling Go Programs 記錄(Part 5)
›
結論 這裡用的 Profiling 方法跟在 Java 沒什麼太大差別,仍是使用工具找出程式與資源間的關系, 會需要看點 Go 函式庫源始碼, 還好 Go net/http 函式庫的程式碼大部份都不會很長還滿好懂,過程也沒遇到什麼奇怪的狀況。 內建的 Profiling 工...
Apr 18, 2013
golang - Profiling Go Programs 記錄(Part 4)
›
4. 快取計算結果 第2與3項只修正 bug 但對效能沒有直接改善,以目前的觀測結果,程式向系統申請的記憶體用量還有點高(350M左右), 接著來檢查 GC 與 heap 狀況看哪些物件申請了這些記憶體 用 GOGCTRACE=1 讓 GO runtime 把 gclog 印...
golang - Profiling Go Programs 記錄(Part 3)
›
3. 正常結束 Goroutine $ go tool pprof ./gb heap-6438-1.pprof (pprof) top10 Total: 8.6 MB 1.5 17.8% 17.8% 3.0 35.3% main.(*Benchma...
golang - Profiling Go Programs 記錄(Part 2)
›
2. 程式化停止 Timer $ go tool pprof ./gb cpu-27989.pprof Welcome to pprof! For help, type 'help'. (pprof) top10 Total: 967 samples ...
golang - Profiling Go Programs 記錄(Part 1)
›
利用了 profiling 工具解決了一些 Go-HttpBench 的 bug 並做了些效能優化 以 ./gb -c 100 -n 200000 -k http://localhost/10k.dat 來比較版本 0.1.0 與 0.1.6 的結果(based on G...
Apr 3, 2013
ab 漸進壓力測試工具
›
最近在學 Go ,也用Go寫一個 ab-like 的玩具( Go-HttpBench ),為了要比較兩者效能另外寫了 bash script 用來轉換 ab 報表為行列數據,功能跟 autobench 相似,用階段性漸增的壓力來測試 http server,搜集到的數據可再用 g...
Jan 22, 2012
[Java Performance]Chapter 3:JVM Overview
›
這篇談JVM的概觀與各元件用途與描述HotSpot VM在各元件上的優化技術 HotSpot VM High Level Architecture JVM 有三個主要元件: VM Runtime JIT Compiler Memory manager ...
Dec 20, 2011
[Java Performance]Chapter 2:Operating System Performance Monitoring
›
這篇談到如何在作業系統層級搜集數據(CPU、Memory、Network I/O、Disk I/O),從數據中分析可能的效能問題 名詞定義: Performance monitoring: 使用非侵入式的方法從作業系統或應用程式搜集、觀察數據,如使用作業系統提供的工具(...
Dec 15, 2011
[Java Performance]Chapter 1:Strategies, Approaches, and Methodologies
›
在軟體開發流程中該在何時評估效能? 傳統上瀑布式開發(Analysis > Design > Code > Test)會在測試階段進行效能測式,當效能結果不符合要求,調整代價可能很高,因此在擬定需求時就需要將效能指標定義出來,由需求驅動開發過程中各階段的效...
›
Home
View web version