Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Benchmark results for APL-style indexing Compat code

This is the output of the Benchmark code for APL-style indexing Compat code.

The "time plain array" is the time needed to index into a plain array is nano seconds per indexing operation. The relative times are relative to this and either for indexing into a prefabricated ArrayAPL or indexing with @compat.

Julia Version 0.3.2
Platform Info:
  System: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz
  WORD_SIZE: 64
  BLAS: libopenblas (NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.5
#dims #trailing ints time plain array rel. time ArrayAPL rel.time @compat
1 0 151.89489712348407 0.9819258429058888 1.054020362614058
1 1 90.423907286 0.9962925258589007 1.1142587423182455
2 0 212.76574273228474 1.0081086336447793 1.0684799589961054
2 1 186.99573535648955 1.0235429133802745 1.0944920573236316
2 2 104.644322066 1.044476423738161 1.1529309197675013
3 0 369.2482027671603 1.003107209544299 1.0380874808470748
3 1 340.8521828586721 0.9961859185412552 1.02051941928415
3 2 301.6166253428647 1.0177470776133912 1.0534416818023202
3 3 115.36680587726639 1.013073802264995 1.1154398713312086
4 0 606.6843133276518 1.0043887909636215 1.020828508378891
4 1 553.2197865644833 1.1119163503628218 1.1364485463974252
4 2 373.1444764485932 0.9957667242762008 1.0476380489100343
4 3 344.82017204474096 0.9829219532284176 1.0244962698689684
4 4 122.651622132 0.978661129608353 1.0589650832030302
5 0 2522.7494222173514 1.0656445350487551 1.0665665649634086
5 1 2672.405987568532 1.0459219854633672 1.0471640984709
5 2 2302.607594457141 1.0478684768171502 1.0488351761881198
5 3 2384.1650351506883 0.9889977430638407 1.0218348312782248
5 4 2168.2457436064105 1.0709099078007815 1.0571253469101982
5 5 133.75206618 0.9906607363857921 1.0841221230172102
6 0 5358.790918125791 1.0404072757814764 1.0416804981246388
6 1 4075.7081615036122 1.0504425747769235 1.0515052889438674
6 2 3275.820016734011 1.0329431486874696 1.0264148498463073
6 3 2902.469990000408 1.0464664215832162 1.051372359500616
6 4 2681.984052691727 1.0082592523974108 1.001700063228593
6 5 2316.0089420839968 1.0447310280359898 1.0475634071319695
6 6 133.7522575344955 1.0136922651930935 1.1415076885806184
7 0 12253.913645969087 1.0004339537078901 1.0048940050446988
7 1 7489.479968321299 1.0954824526531939 1.095962556538575
7 2 5201.600706942444 1.1869178822148316 1.1820140464446414
7 3 4374.829157004563 1.1829524388347172 1.1973597654385633
7 4 4057.0998967613755 1.223438706260907 1.2155962401786347
7 5 3551.233388288223 1.2461658189758695 1.2550715892090523
7 6 3307.0642800788023 1.223350949084943 1.2330007808718948
7 7 328.70087777129913 1.4647803777376036 1.494605856256762
8 0 29221.147648870763 1.0179370173375495 1.0156815388022593
8 1 14242.08049238918 1.0501574488121517 1.048473630705567
8 2 8150.270360026307 1.1227373895787895 1.1244323638924294
8 3 5838.702701034817 1.177634399428797 1.1772486278711578
8 4 4929.884420958719 1.1795927135073003 1.1860441515027451
8 5 4550.355229541235 1.2111364119384787 1.2080217267056943
8 6 4080.649119373432 1.2559890492735206 1.2587806481363022
8 7 3801.3234920735676 1.2135857133686598 1.2068915345404867
8 8 364.54890528 1.4608727789731137 1.5069301087766525
9 0 83066.41582537566 0.9983410778608153 1.0039987117794062
9 1 34636.63931868371 0.9680561387470615 0.9811098638046639
9 2 14992.631267283286 1.0904014621469762 1.0893515242163168
9 3 9097.149588236029 1.142417167093235 1.133018862992772
9 4 6631.481591570844 1.1950492130235237 1.1824626173606967
9 5 5643.172410653556 1.1913294798402856 1.2147529583193413
9 6 5390.016292035541 1.1947124140497742 1.1920511747317708
9 7 4613.154486915136 1.2323521392462715 1.229142905306431
9 8 4397.325406899211 1.2173065377336874 1.2175697274419917
9 9 440.22598520119215 1.47492866371766 1.4695474948346692
10 0 228404.3226088633 0.9984876070133006 0.973850322349686
10 1 84228.42797669204 1.0168809592496315 1.0722903860596142
10 2 34295.92956197604 1.0084574468854173 1.0145525602634617
10 3 15315.49780059698 1.0805149717469786 1.0854485972075572
10 4 9467.24581185107 1.1280094739875717 1.135111084292064
10 5 7220.908217769463 1.169031548997485 1.1684370369509276
10 6 6305.182636141619 1.1817891109194674 1.1783836056789583
10 7 5768.404861537582 1.1905339861352102 1.2085018420742626
10 8 5321.080749510847 1.2243995574785633 1.2046352862493275
10 9 4934.42462403062 1.2265150441021864 1.2195623608306791
10 10 497.86895566 1.4078756003792245 1.4203739842998508
Julia Version 0.4.5
Commit 2ac304d (2016-03-18 00:58 UTC)
Platform Info:
  System: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.3
#dims #trailing ints time plain array rel. time ArrayAPL rel.time @compat
1 0 120.46488957828089 1.048188917749243 1.0612897477329781
1 1 89.27114709 0.8480421495388225 0.9103387066155822
2 0 266.4878504213847 0.988580461252054 1.0167726262228947
2 1 195.24020569074887 0.9977823431813805 1.0083533728795255
2 2 112.66895938 0.8902673085112859 0.9435222462778018
3 0 1246.9757690934257 0.331755942178518 0.3344115104420252
3 1 1276.4214785762388 0.22894257725357717 0.2322751273339152
3 2 1073.6763572913608 0.20271461185138323 0.2081180765508707
3 3 239.11211245775775 0.49060726597244864 0.5361213337897506
4 0 1714.4204708215043 0.3896833537018934 0.39111646137837663
4 1 1621.1622466876927 0.2694669832659745 0.2716354654771293
4 2 1441.2949346566465 0.22343606287118187 0.22166750791527337
4 3 1208.3080155045334 0.2014554860035863 0.20078193089449617
4 4 525.7576072 0.24660953569555882 0.255801611157363
5 0 2598.522972895092 0.5113613051598724 0.5098148985064946
5 1 2133.966329788189 0.3258590978885523 0.327956871093893
5 2 1771.488683849768 0.27113773348602144 0.27229290368927234
5 3 1655.0263065653985 0.21507941143706227 0.2214136877942566
5 4 1455.2139907392273 0.17717234287910605 0.1783681310772498
5 5 834.01512255 0.17882144851763035 0.1814223945812552
6 0 3695.162821925636 0.5982730892833672 0.6031970263521074
6 1 3304.596877678462 0.47432417192288073 0.4775179375730518
6 2 2559.707107873148 0.33909784959404343 0.34364671356468146
6 3 2124.1546528713116 0.27489522758916524 0.2715851209969979
6 4 1800.0083955756909 0.23268813486185733 0.23548995868004252
6 5 1636.935853638627 0.20684056781242177 0.20748707418298037
6 6 1088.848099443038 0.1683012116278187 0.18775727534060133
7 0 12298.018432093528 0.7627455946587391 0.9092200520730266
7 1 8001.631503837698 0.8782047112332668 0.8867642455803836
7 2 6820.673360675058 0.7822770236206724 0.7906919256214048
7 3 5461.278495605182 0.7098554003846795 0.7104725215179866
7 4 4330.555139858491 0.6855737927828874 0.6926127207590859
7 5 3451.3067972898266 0.6147871584726181 0.6100350746768549
7 6 2523.1708643499055 0.5605389151178077 0.5544940763804075
7 7 1413.6457230877138 0.1331950073065013 0.13408908830300703
8 0 21773.546032389735 0.907243459993908 0.905538444869374
8 1 13175.091377136761 0.8988625786644185 0.881830696613934
8 2 9473.01146952773 0.8583999199860899 0.849304123478873
8 3 7363.852324320512 0.7472910137812124 0.7470240319767215
8 4 5788.618393560843 0.7199304996188347 0.7207237984924091
8 5 4692.3311087797865 0.6706109379999065 0.6776347673875086
8 6 3677.645978612549 0.609872463012376 0.6098912280368758
8 7 2723.534386543361 0.5297201260276213 0.5251276061339455
8 8 1697.06812816 1.0605483799589173 1.058264011891618
9 0 52122.02279705798 0.9533115991281348 0.9474185357580694
9 1 23147.034900742645 0.931925262376905 0.9253204354811695
9 2 13754.749946443873 0.8912250267241365 0.8892476360179452
9 3 9630.379837903456 0.8627351975670527 0.8582143953016672
9 4 7823.078816766638 0.7276413461483584 0.7278239951407883
9 5 6307.487932019423 0.6818546915754988 0.6877041158162451
9 6 4959.278777492145 0.6399906968694196 0.6445692165298244
9 7 4114.824443016281 0.5823728025899069 0.5719586221376869
9 8 2988.8790167095117 0.494075077070159 0.5073712119071407
9 9 2040.8698826904094 1.0616234221375136 1.0542456962162547
10 0 138669.38999571552 0.967434693947004 0.9695148103953053
10 1 54215.82240788346 0.9704960159041065 0.9637280328099116
10 2 25812.50174950014 0.8980428324469054 0.894341029062315
10 3 14307.278670379892 0.8820375470735036 0.8849365639466079
10 4 10465.433161953728 0.8840373327881291 0.871388156789282
10 5 8480.841723793203 0.7418414528453005 0.7272031491076665
10 6 7001.2497857754925 0.6527318458729499 0.653235515077479
10 7 5614.107862039417 0.6216731407536278 0.6230816442792557
10 8 4706.023671808055 0.5645172938646315 0.540733174756708
10 9 3336.2604612967725 0.508317979510345 0.507163905115327
10 10 2387.5194253 1.043363136903898 1.0518472308908842
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment