看板 Grad-ProbAsk 關於我們 聯絡資訊
※ 引述《kai5566 (中肯˙專業凱56)》之銘言: : Assume that equal amounts of time will be spent running each program on some : machine. Which machine is fastest using the data of problem 2.2 table and : assuming a weighting that generates equal execution time for each benchmark : on machine A : ======================================================================= : 這是95中山計組第2.3題 : 請問benchmark 還有weight是什麼意思呢? : weight要怎麼算??? : 這整題算出來的答案拿來比較 有什麼涵意嗎? : 不然就算execution time就好了不是嗎 : 多利用weight有什麼用嗎? : 這是題目連結http://www.lib.nsysu.edu.tw/exam/master/eng/infoe/infoe_95.pdf 即求Geometric means geometric mean = (a1a2...an)^(1/n) 幾何平均數 來比較哪台機器快 benchmark on machine A 以A為基準設為1 其他設為相對的數字 EX. MachineB*Program1=>1000/100=10 ─────────────────────────────────────┐ Program │ floating-point │ │ operation │ Execution time in seconds ────── ─────────┼───────┬──────┬─────┐ │ Machine A │ Machine B │ MachineC │ ─────────────── ┼───────┼──────┼─────┤ Program1 │ 100000000 │ 1000 1 │ 100 10│ 40 25│ ─────────────── ┼───────┼──────┼─────┤ Program2 │ 1000000 │ 1 1 │ 10 0.1│ 40 0.025│ ───────────────────────────────────-─┤ GM=(a1a2)^(1/2) │ 1 │ 1 │ 0.79056.. ───────────────────────────────────── 所以此時MachineC最快 benchmark on machine B ─────────────────────────────────────┐ Program │ floating-point │ │ operation │ Execution time in seconds ────── ─────────┼───────┬──────┬─────┐ │ Machine A │ Machine B │ MachineC │ ─────────────── ┼───────┼──────┼─────┤ Program1 │ 100000000 │ 1000 0.1│ 100 1 │ 40 2.5│ ─────────────── ┼───────┼──────┼─────┤ Program2 │ 1000000 │ 1 10 │ 10 1 │ 40 0.25│ ───────────────────────────────────-─┤ GM=(a1a2)^(1/2) │ 1 │ 1 │ 0.79056.. ───────────────────────────────────── 所以此時還是MachineC最快 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 210.69.54.7