Skip to content

Instantly share code, notes, and snippets.

@tshev
Created May 29, 2019 10:42
Show Gist options
  • Save tshev/991662d17ded1a6a00e708abc2a7bb27 to your computer and use it in GitHub Desktop.
Save tshev/991662d17ded1a6a00e708abc2a7bb27 to your computer and use it in GitHub Desktop.
Applying operation 100000000 times (sequence length 1000 by 100000 iterations) at: Wed May 29 13:28:12 2019
type plus fplus times norm cnvrt div sqrt pow
vector<int8_t> 0.04 1.19 0.09 0.11 1.07 2.34 1.71 18.91
vector<int16_t> 0.06 1.16 0.06 0.08 1.00 2.38 1.74 18.91
vector<int32_t> 0.12 1.48 0.26 0.43 0.51 2.30 1.75 18.98
vector<int64_t> 0.25 1.23 0.50 0.66 0.80 8.08 1.77 18.94
vector<float> 0.12 1.49 0.12 0.16 0.11 0.89 2.24 20.63
vector<double> 0.22 1.15 0.23 0.30 0.23 1.20 1.93 20.29
deque<int8_t> 0.75 1.47 0.73 1.26 1.48 3.57 1.83 20.54
deque<int16_t> 0.76 1.46 0.77 0.97 1.49 2.71 2.01 20.70
deque<int32_t> 0.95 1.54 0.81 1.04 1.25 2.78 1.98 20.95
deque<int64_t> 0.96 1.58 0.82 1.00 1.32 9.15 1.98 20.74
deque<float> 0.83 1.24 0.92 1.03 0.81 1.45 2.51 22.47
deque<double> 0.90 1.58 0.75 1.00 0.90 1.67 1.97 21.78
list<int8_t> 1.82 2.00 1.85 1.97 1.98 2.41 2.00 19.79
list<int16_t> 1.71 1.98 1.83 1.85 1.71 2.34 2.10 19.14
list<int32_t> 1.75 1.97 1.84 1.81 1.74 2.38 2.01 20.46
list<int64_t> 2.10 2.32 2.14 2.06 2.16 8.65 2.19 21.45
list<float> 2.13 2.00 1.92 1.91 2.04 1.90 3.47 21.54
list<double> 1.81 1.84 1.82 1.82 1.84 1.71 2.00 20.50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment