Benchmark????ruby??????????
???????????? ???????[ 2012/11/6 10:34:06 ] ????????
????????????????????????????Ч???????????Σ??????????????????????????????????????????????е???????????????д????????У????ж????????????????Ч??????????????????????????
????????????????????????е?????????ruby?У?????? Benchmark???????????????Ruby?????????????????????????????£?
require 'benchmark'
Benchmark.bmbm(10) do |t|
t.report{ruby????1}
t.report{ruby????2}
t.report{ruby????3}
end
????bmbm??Benchmark?????????????????????????????????????????10?????????????????????λ?????????????????t??????bmbm??block?????report????
???????????
Rehearsal ---------------------------------------------
1.781000 0.016000 1.797000 ( 1.953000)
2.297000 0.062000 2.359000 ( 2.359000)
1.688000 0.016000 1.704000 ( 1.719000)
------------------------------------ total: 5.860000sec
user system total real
1.750000 0.000000 1.750000 ( 1.875000)
2.172000 0.015000 2.187000 ( 2.297000)
1.469000 0.016000 1.485000 ( 1.703000)
????????????bmbm???????????????????????????????????????????????????????????????????????????????????????????????λ????
???????ruby??????е??????????Ч?????????????????????????д?????????????????????????У??????????м?????Benchmark????????????????????Σ????????????????????????????????????ruby????????xml?????
???????????????????е????????鵽??????Ч??????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11