Posted on March 17th, 2008 at 23:39 by fr3@K
Source code used to produce results in my previous post is available for download here.
Please note that Boost.Date_Time is required in order to build it.
![]() |
|
| Previous Post « Benchmarking Sequential Iterators « |
Next Post » 有趣的 Gmail 地址小技巧 » |
![del.icio.us:Source Code [Benchmarking Sequential Iterators]](/codefreak/wp-content/plugins/blogbling/images/delicious.png)
![digg:Source Code [Benchmarking Sequential Iterators]](/codefreak/wp-content/plugins/blogbling/images/digg.png)
![spurl:Source Code [Benchmarking Sequential Iterators]](/codefreak/wp-content/plugins/blogbling/images/spurl.png)
![newsvine:Source Code [Benchmarking Sequential Iterators]](/codefreak/wp-content/plugins/blogbling/images/newsvine.png)
![furl:Source Code [Benchmarking Sequential Iterators]](/codefreak/wp-content/plugins/blogbling/images/furl.png)
![Y!:Source Code [Benchmarking Sequential Iterators]](/codefreak/wp-content/plugins/blogbling/images/yahoo.png)
![黑米共享書籤:Source Code [Benchmarking Sequential Iterators]](/codefreak/wp-content/plugins/blogbling/images/hemidemi.png)
![推推王:Source Code [Benchmarking Sequential Iterators]](/codefreak/wp-content/plugins/blogbling/images/funp.png)
我猜 pointer 比較慢是因為其他的 container 在 initialize 時 container_t c(size, 0);
已經填了 size 個 0 了.
int* v = new int[size];
之後應該也要有對應的 fill(v, v+size, 0); 才公平.
Comment by kcwu — March 23, 2008 @ 13:54