contributed by < SeanCCC
>
divazone
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 1
On-line CPU(s) list: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 62
Model name: Intel(R) Xeon(R) CPU E5-2630L v2 @ 2.40GHz
Stepping: 4
CPU MHz: 2399.998
BogoMIPS: 4799.99
Virtualization: VT-x
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 15360K
NUMA node0 CPU(s): 0
Execution time of raytracing() : 8.325076 sec
Execution time of raytracing() : 5.163579 sec
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls s/call s/call name
25.67 0.78 0.78 69646433 0.00 0.00 dot_product
15.47 1.25 0.47 56956357 0.00 0.00 subtract_vector
11.68 1.61 0.36 13861875 0.00 0.00 rayRectangularIntersection
7.57 1.84 0.23 10598450 0.00 0.00 normalize
6.91 2.05 0.21 31410180 0.00 0.00 multiply_vector
6.75 2.25 0.21 17836094 0.00 0.00 add_vector
6.09 2.44 0.19 13861875 0.00 0.00 raySphereIntersection
5.10 2.59 0.16 4620625 0.00 0.00 ray_hit_object
static inline
double dot_product(const double *v1, const double *v2)
{
double dp = 0.0;
for (int i = 0; i < 3; i++)
dp += v1[i] * v2[i];
return dp;
}
dp = v1[0] * v2[0] + v1[1] * v2[1] + v1[2] * v2[2];
Execution time of raytracing() : 7.715813 sec
18.16 0.47 0.47 56956357 0.00 0.00 subtract_vector
13.91 0.83 0.36 31410180 0.00 0.00 multiply_vector
11.20 1.12 0.29 69646433 0.00 0.00 dot_product
10.43 1.39 0.27 10598450 0.00 0.00 normalize
8.89 1.62 0.23 4620625 0.00 0.00 ray_hit_object