Skip to content

Instantly share code, notes, and snippets.

@killeent
Created December 22, 2016 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save killeent/db89b04f62c55284c8a1998216a41327 to your computer and use it in GitHub Desktop.
Save killeent/db89b04f62c55284c8a1998216a41327 to your computer and use it in GitHub Desktop.
Old Code Path:
Averages of 10 trials used to generate results
----------------------------------------------------------------
CatArray for 2 1D Tensors took 4.7445297241211e-05 seconds
CatArray for 4 1D Tensors took 5.0187110900879e-05 seconds
CatArray for 8 1D Tensors took 7.932186126709e-05 seconds
CatArray for 16 1D Tensors took 0.00016393661499023 seconds
CatArray for 32 1D Tensors took 0.00027034282684326 seconds
CatArray for 64 1D Tensors took 0.00049459934234619 seconds
CatArray for 128 1D Tensors took 0.00099062919616699 seconds
CatArray for 256 1D Tensors took 0.0018555879592896 seconds
CatArray for 512 1D Tensors took 0.0039491891860962 seconds
CatArray for 1024 1D Tensors took 0.0078642129898071 seconds
CatArray for 2048 1D Tensors took 0.015282130241394 seconds
CatArray for 4096 1D Tensors took 0.033820652961731 seconds
CatArray for 8192 1D Tensors took 0.063122916221619 seconds
----------------------------------------------------------------
CatArray for 2 2D Tensors along dim=1 took 4.0292739868164e-05 seconds
CatArray for 2 2D Tensors along dim=2 took 4.727840423584e-05 seconds
CatArray for 4 2D Tensors along dim=1 took 7.7486038208008e-05 seconds
CatArray for 4 2D Tensors along dim=2 took 5.3644180297852e-05 seconds
CatArray for 8 2D Tensors along dim=1 took 8.3112716674805e-05 seconds
CatArray for 8 2D Tensors along dim=2 took 8.5854530334473e-05 seconds
CatArray for 16 2D Tensors along dim=1 took 0.00015788078308105 seconds
CatArray for 16 2D Tensors along dim=2 took 0.00015175342559814 seconds
CatArray for 32 2D Tensors along dim=1 took 0.0002760648727417 seconds
CatArray for 32 2D Tensors along dim=2 took 0.00026459693908691 seconds
CatArray for 64 2D Tensors along dim=1 took 0.00051555633544922 seconds
CatArray for 64 2D Tensors along dim=2 took 0.00053470134735107 seconds
CatArray for 128 2D Tensors along dim=1 took 0.0010017395019531 seconds
CatArray for 128 2D Tensors along dim=2 took 0.0010006904602051 seconds
CatArray for 256 2D Tensors along dim=1 took 0.0020315885543823 seconds
CatArray for 256 2D Tensors along dim=2 took 0.0020285606384277 seconds
CatArray for 512 2D Tensors along dim=1 took 0.0040197372436523 seconds
CatArray for 512 2D Tensors along dim=2 took 0.004431414604187 seconds
CatArray for 1024 2D Tensors along dim=1 took 0.0078263759613037 seconds
CatArray for 1024 2D Tensors along dim=2 took 0.012330675125122 seconds
CatArray for 2048 2D Tensors along dim=1 took 0.03656861782074 seconds
CatArray for 2048 2D Tensors along dim=2 took 0.029906320571899 seconds
CatArray for 4096 2D Tensors along dim=1 took 0.033309888839722 seconds
CatArray for 4096 2D Tensors along dim=2 took 0.031117582321167 seconds
CatArray for 8192 2D Tensors along dim=1 took 0.060645318031311 seconds
CatArray for 8192 2D Tensors along dim=2 took 0.062959051132202 seconds
----------------------------------------------------------------
CatArray for 2 3D Tensors along dim=1 took 4.7540664672852e-05 seconds
CatArray for 2 3D Tensors along dim=2 took 0.00012071132659912 seconds
CatArray for 2 3D Tensors along dim=3 took 4.9233436584473e-05 seconds
CatArray for 4 3D Tensors along dim=1 took 6.568431854248e-05 seconds
CatArray for 4 3D Tensors along dim=2 took 9.2697143554688e-05 seconds
CatArray for 4 3D Tensors along dim=3 took 5.8293342590332e-05 seconds
CatArray for 8 3D Tensors along dim=1 took 8.7976455688477e-05 seconds
CatArray for 8 3D Tensors along dim=2 took 0.00012013912200928 seconds
CatArray for 8 3D Tensors along dim=3 took 0.00012049674987793 seconds
CatArray for 16 3D Tensors along dim=1 took 0.00024595260620117 seconds
CatArray for 16 3D Tensors along dim=2 took 0.00016570091247559 seconds
CatArray for 16 3D Tensors along dim=3 took 0.00020656585693359 seconds
CatArray for 32 3D Tensors along dim=1 took 0.00030195713043213 seconds
CatArray for 32 3D Tensors along dim=2 took 0.00031402111053467 seconds
CatArray for 32 3D Tensors along dim=3 took 0.00038647651672363 seconds
CatArray for 64 3D Tensors along dim=1 took 0.00066125392913818 seconds
CatArray for 64 3D Tensors along dim=2 took 0.00074398517608643 seconds
CatArray for 64 3D Tensors along dim=3 took 0.00067653656005859 seconds
CatArray for 128 3D Tensors along dim=1 took 0.0014249801635742 seconds
CatArray for 128 3D Tensors along dim=2 took 0.0013843059539795 seconds
CatArray for 128 3D Tensors along dim=3 took 0.0014357566833496 seconds
CatArray for 256 3D Tensors along dim=1 took 0.0024216890335083 seconds
CatArray for 256 3D Tensors along dim=2 took 0.0024879932403564 seconds
CatArray for 256 3D Tensors along dim=3 took 0.0024538516998291 seconds
CatArray for 512 3D Tensors along dim=1 took 0.0528568983078 seconds
CatArray for 512 3D Tensors along dim=2 took 0.0045055866241455 seconds
CatArray for 512 3D Tensors along dim=3 took 0.0044718027114868 seconds
CatArray for 1024 3D Tensors along dim=1 took 0.031960463523865 seconds
CatArray for 1024 3D Tensors along dim=2 took 0.0080471038818359 seconds
CatArray for 1024 3D Tensors along dim=3 took 0.027758288383484 seconds
CatArray for 2048 3D Tensors along dim=1 took 0.015772366523743 seconds
CatArray for 2048 3D Tensors along dim=2 took 0.031630563735962 seconds
CatArray for 2048 3D Tensors along dim=3 took 0.016491961479187 seconds
CatArray for 4096 3D Tensors along dim=1 took 0.055450701713562 seconds
CatArray for 4096 3D Tensors along dim=2 took 0.054601669311523 seconds
CatArray for 4096 3D Tensors along dim=3 took 0.056299877166748 seconds
CatArray for 8192 3D Tensors along dim=1 took 0.065966153144836 seconds
CatArray for 8192 3D Tensors along dim=2 took 0.094370603561401 seconds
CatArray for 8192 3D Tensors along dim=3 took 0.11704707145691 seconds
New Code Path:
Averages of 10 trials used to generate results
----------------------------------------------------------------
CatArray for 2 1D Tensors took 9.920597076416e-05 seconds
CatArray for 4 1D Tensors took 3.2305717468262e-05 seconds
CatArray for 8 1D Tensors took 3.1089782714844e-05 seconds
CatArray for 16 1D Tensors took 5.8412551879883e-05 seconds
CatArray for 32 1D Tensors took 3.6716461181641e-05 seconds
CatArray for 64 1D Tensors took 4.429817199707e-05 seconds
CatArray for 128 1D Tensors took 7.8392028808594e-05 seconds
CatArray for 256 1D Tensors took 9.1338157653809e-05 seconds
CatArray for 512 1D Tensors took 0.00018060207366943 seconds
CatArray for 1024 1D Tensors took 0.00034816265106201 seconds
CatArray for 2048 1D Tensors took 0.00063626766204834 seconds
CatArray for 4096 1D Tensors took 0.0023834943771362 seconds
CatArray for 8192 1D Tensors took 0.0043939113616943 seconds
----------------------------------------------------------------
CatArray for 2 2D Tensors along dim=1 took 6.0439109802246e-05 seconds
CatArray for 2 2D Tensors along dim=2 took 3.1781196594238e-05 seconds
CatArray for 4 2D Tensors along dim=1 took 6.2131881713867e-05 seconds
CatArray for 4 2D Tensors along dim=2 took 3.361701965332e-05 seconds
CatArray for 8 2D Tensors along dim=1 took 3.3307075500488e-05 seconds
CatArray for 8 2D Tensors along dim=2 took 3.349781036377e-05 seconds
CatArray for 16 2D Tensors along dim=1 took 3.9410591125488e-05 seconds
CatArray for 16 2D Tensors along dim=2 took 3.8003921508789e-05 seconds
CatArray for 32 2D Tensors along dim=1 took 0.00041279792785645 seconds
CatArray for 32 2D Tensors along dim=2 took 4.2510032653809e-05 seconds
CatArray for 64 2D Tensors along dim=1 took 8.3565711975098e-05 seconds
CatArray for 64 2D Tensors along dim=2 took 5.9700012207031e-05 seconds
CatArray for 128 2D Tensors along dim=1 took 0.0001011848449707 seconds
CatArray for 128 2D Tensors along dim=2 took 0.00010066032409668 seconds
CatArray for 256 2D Tensors along dim=1 took 0.00014088153839111 seconds
CatArray for 256 2D Tensors along dim=2 took 0.00016298294067383 seconds
CatArray for 512 2D Tensors along dim=1 took 0.00029289722442627 seconds
CatArray for 512 2D Tensors along dim=2 took 0.00031960010528564 seconds
CatArray for 1024 2D Tensors along dim=1 took 0.00056262016296387 seconds
CatArray for 1024 2D Tensors along dim=2 took 0.00057311058044434 seconds
CatArray for 2048 2D Tensors along dim=1 took 0.00097699165344238 seconds
CatArray for 2048 2D Tensors along dim=2 took 0.00099480152130127 seconds
CatArray for 4096 2D Tensors along dim=1 took 0.0019161462783813 seconds
CatArray for 4096 2D Tensors along dim=2 took 0.001871919631958 seconds
CatArray for 8192 2D Tensors along dim=1 took 0.003282618522644 seconds
CatArray for 8192 2D Tensors along dim=2 took 0.0036946058273315 seconds
----------------------------------------------------------------
CatArray for 2 3D Tensors along dim=1 took 3.5834312438965e-05 seconds
CatArray for 2 3D Tensors along dim=2 took 4.2128562927246e-05 seconds
CatArray for 2 3D Tensors along dim=3 took 3.6835670471191e-05 seconds
CatArray for 4 3D Tensors along dim=1 took 4.1794776916504e-05 seconds
CatArray for 4 3D Tensors along dim=2 took 6.0868263244629e-05 seconds
CatArray for 4 3D Tensors along dim=3 took 3.9482116699219e-05 seconds
CatArray for 8 3D Tensors along dim=1 took 3.5285949707031e-05 seconds
CatArray for 8 3D Tensors along dim=2 took 6.0296058654785e-05 seconds
CatArray for 8 3D Tensors along dim=3 took 6.4206123352051e-05 seconds
CatArray for 16 3D Tensors along dim=1 took 6.4492225646973e-05 seconds
CatArray for 16 3D Tensors along dim=2 took 9.9396705627441e-05 seconds
CatArray for 16 3D Tensors along dim=3 took 0.00062859058380127 seconds
CatArray for 32 3D Tensors along dim=1 took 0.00015888214111328 seconds
CatArray for 32 3D Tensors along dim=2 took 0.00015928745269775 seconds
CatArray for 32 3D Tensors along dim=3 took 0.00015902519226074 seconds
CatArray for 64 3D Tensors along dim=1 took 0.00016093254089355 seconds
CatArray for 64 3D Tensors along dim=2 took 0.00020830631256104 seconds
CatArray for 64 3D Tensors along dim=3 took 0.00021281242370605 seconds
CatArray for 128 3D Tensors along dim=1 took 0.00027801990509033 seconds
CatArray for 128 3D Tensors along dim=2 took 0.00031006336212158 seconds
CatArray for 128 3D Tensors along dim=3 took 0.0003173828125 seconds
CatArray for 256 3D Tensors along dim=1 took 0.00040590763092041 seconds
CatArray for 256 3D Tensors along dim=2 took 0.00044009685516357 seconds
CatArray for 256 3D Tensors along dim=3 took 0.054935359954834 seconds
CatArray for 512 3D Tensors along dim=1 took 0.00061342716217041 seconds
CatArray for 512 3D Tensors along dim=2 took 0.0005687952041626 seconds
CatArray for 512 3D Tensors along dim=3 took 0.00059387683868408 seconds
CatArray for 1024 3D Tensors along dim=1 took 0.0013912200927734 seconds
CatArray for 1024 3D Tensors along dim=2 took 0.019111132621765 seconds
CatArray for 1024 3D Tensors along dim=3 took 0.00073769092559814 seconds
CatArray for 2048 3D Tensors along dim=1 took 0.026404428482056 seconds
CatArray for 2048 3D Tensors along dim=2 took 0.022029209136963 seconds
CatArray for 2048 3D Tensors along dim=3 took 0.0016501903533936 seconds
CatArray for 4096 3D Tensors along dim=1 took 0.019539141654968 seconds
CatArray for 4096 3D Tensors along dim=2 took 0.018377304077148 seconds
CatArray for 4096 3D Tensors along dim=3 took 0.022036123275757 seconds
CatArray for 8192 3D Tensors along dim=1 took 0.024634146690369 seconds
CatArray for 8192 3D Tensors along dim=2 took 0.078605961799622 seconds
CatArray for 8192 3D Tensors along dim=3 took 0.078671908378601 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment