Skip to content

Instantly share code, notes, and snippets.

@winger
Created December 2, 2015 01:47
Show Gist options
  • Save winger/145857cf3bb4a0ca5284 to your computer and use it in GitHub Desktop.
Save winger/145857cf3bb4a0ca5284 to your computer and use it in GitHub Desktop.
n = 1024
determining the best chunk size for float
chunk size 8: 1.49062e-06
chunk size 16: 1.08529e-06
chunk size 32: 9.03716e-07
chunk size 64: 8.18933e-07
chunk size 128: 7.95847e-07
chunk size 256: 7.62183e-07
chunk size 512: 7.37757e-07
chunk size 1024: 7.20284e-07
best chunk: 1024
best time: 7.20284e-07
determining the best chunk size for double
chunk size 8: 2.66492e-06
chunk size 16: 1.87658e-06
chunk size 32: 1.48542e-06
chunk size 64: 1.35752e-06
chunk size 128: 1.30215e-06
chunk size 256: 1.24749e-06
chunk size 512: 1.221e-06
chunk size 1024: 1.17726e-06
best chunk: 1024
best time: 1.17726e-06
------------------------------------------------------------
n = 1048576
determining the best chunk size for float
chunk size 8: 0.00285808
chunk size 16: 0.00242299
chunk size 32: 0.00218474
chunk size 64: 0.00219718
chunk size 128: 0.00210715
chunk size 256: 0.00205388
chunk size 512: 0.00212658
chunk size 1024: 0.00217329
chunk size 2048: 0.00207769
chunk size 4096: 0.00205159
chunk size 8192: 0.00203351
chunk size 16384: 0.00260704
chunk size 32768: 0.00272236
chunk size 65536: 0.00276884
chunk size 131072: 0.0032213
chunk size 262144: 0.00323304
chunk size 524288: 0.00327204
chunk size 1048576: 0.0032644
best chunk: 8192
best time: 0.00203351
determining the best chunk size for double
chunk size 8: 0.00595115
chunk size 16: 0.00527775
chunk size 32: 0.00488263
chunk size 64: 0.00472041
chunk size 128: 0.00473109
chunk size 256: 0.00470526
chunk size 512: 0.00469035
chunk size 1024: 0.00484832
chunk size 2048: 0.0046975
chunk size 4096: 0.00463708
chunk size 8192: 0.00557677
chunk size 16384: 0.00564238
chunk size 32768: 0.00630266
chunk size 65536: 0.00686834
chunk size 131072: 0.00681465
chunk size 262144: 0.00671651
chunk size 524288: 0.00687258
chunk size 1048576: 0.00762993
best chunk: 4096
best time: 0.00463708
------------------------------------------------------------
n = 134217728
determining the best chunk size for float
chunk size 8: 0.738376
chunk size 16: 0.682802
chunk size 32: 0.651168
chunk size 64: 0.659992
chunk size 128: 0.651358
chunk size 256: 0.648013
chunk size 512: 0.639481
chunk size 1024: 0.671555
chunk size 2048: 0.695072
chunk size 4096: 0.686397
chunk size 8192: 0.637058
chunk size 16384: 0.726165
chunk size 32768: 0.731911
chunk size 65536: 0.712074
chunk size 131072: 0.776625
chunk size 262144: 0.783414
chunk size 524288: 0.773386
chunk size 1048576: 0.789018
chunk size 2097152: 0.895245
chunk size 4194304: 0.975417
chunk size 8388608: 0.998909
chunk size 16777216: 0.991382
chunk size 33554432: 1.172
chunk size 67108864: 1.59442
chunk size 134217728: 1.60473
best chunk: 8192
best time: 0.637058
determining the best chunk size for double
chunk size 8: 1.5404
chunk size 16: 1.44402
chunk size 32: 1.4055
chunk size 64: 1.39966
chunk size 128: 1.39255
chunk size 256: 1.409
chunk size 512: 1.40471
chunk size 1024: 1.41558
chunk size 2048: 1.40423
chunk size 4096: 1.39297
chunk size 8192: 1.55854
chunk size 16384: 1.58133
chunk size 32768: 1.58199
chunk size 65536: 1.70654
chunk size 131072: 1.68945
chunk size 262144: 1.67581
chunk size 524288: 1.68129
chunk size 1048576: 1.91367
chunk size 2097152: 2.10799
chunk size 4194304: 2.1235
chunk size 8388608: 2.11917
chunk size 16777216: 2.46721
chunk size 33554432: 3.31947
chunk size 67108864: 3.34471
chunk size 134217728: 3.33193
best chunk: 128
best time: 1.39255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment