Beruflich Dokumente
Kultur Dokumente
Haoke Xu
UD ID: 702367277
1. Environment
Processor: Intel Core i7-4710MQ CPU 2.50GHZ
Ram: 8.00 GB
OS: Windows 7 64 bit SP 1
Compiler: Visual studio 2015 community
2. Introduction
To have a deeper understanding of how CPU and memory
work, we double the value of every element in an array by
different orders. Then we collect the time the machine
cost of each order and analysis the result we get.
3. Experiment design
My design is that, process the elements by strides. Process
the n element, then process the n+i element, then n+2i,
then n+3i, and go on. After the array is done by stride by
stride, we begin to process n+1, then n+i+1 and we
repeat this kind of processing unless we double all the
element in the array.
So it is easily to know that if stride is 1, then we just
process the element one by one. If stride is 2, then we do
all the elements with odd orders and then all the even
ones.
So my design is collect the time of processing using 1 to
100 as stride, and collect the time of each iteration.
3. Experiment result
This is part of my result:
Computing tim(Second)
6
4
2
0
10
12
Stride