Varun Vasudev commented on YARN-4081:

So I ran a benchmark for the Resource.newInstance call using the Apache jmh 

The current implementation returned a performance of 0.033 ±(99.9%) 0.003 
ops/ns [Average]
The Map based implementation returned a performance of 0.005 ±(99.9%) 0.001 
ops/ns [Average]

So a significant drop but that still translates to being able to create 5M 
Resource objects per second per thread(the test was run in a single thread). 
This was on my MacBookPro(i7-2.3G). I'm unsure of how to test the GC 

> Add support for multiple resource types in the Resource class
> -------------------------------------------------------------
>                 Key: YARN-4081
>                 URL: https://issues.apache.org/jira/browse/YARN-4081
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: resourcemanager
>            Reporter: Varun Vasudev
>            Assignee: Varun Vasudev
>         Attachments: YARN-4081-YARN-3926.001.patch
> For adding support for multiple resource types, we need to add support for 
> this in the Resource class.

This message was sent by Atlassian JIRA

Reply via email to