GitHub user sameeragarwal opened a pull request:

    https://github.com/apache/spark/pull/12055

    [SPARK-14263][SQL] Benchmark Vectorized HashMap for GroupBy Aggregates

    ## What changes were proposed in this pull request?
    
    This PR proposes a new data-structure called based on a vectorized hashmap 
that can be potentially _codegened_ in `TungstenAggregate` to speed up 
aggregates with group by. Micro-benchmarks show a 10x improvement over the 
current `BytesToBytes` aggregation map.
    
    ## How was this patch tested?
    
        Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz
        BytesToBytesMap:                    Best/Avg Time(ms)    Rate(M/s)   
Per Row(ns)   Relative
        
-------------------------------------------------------------------------------------------
        hash                                      108 /  119         96.9       
   10.3       1.0X
        fast hash                                  63 /   70        166.2       
    6.0       1.7X
        arrayEqual                                 70 /   73        150.8       
    6.6       1.6X
        Java HashMap (Long)                       141 /  200         74.3       
   13.5       0.8X
        Java HashMap (two ints)                   145 /  185         72.3       
   13.8       0.7X
        Java HashMap (UnsafeRow)                  499 /  524         21.0       
   47.6       0.2X
        BytesToBytesMap (off Heap)                483 /  548         21.7       
   46.0       0.2X
        BytesToBytesMap (on Heap)                 485 /  562         21.6       
   46.2       0.2X
        Vectorized Hashmap                         54 /   60        193.7       
    5.2       2.0X


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/sameeragarwal/spark vectorized-hashmap

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/12055.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #12055
    
----
commit 7fd7d705347cb3f45f07d8db2e0188cb534f220d
Author: Sameer Agarwal <[email protected]>
Date:   2016-03-28T18:21:13Z

    Vectorized HashMap

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to