Github user witgo commented on the pull request:

    https://github.com/apache/spark/pull/332#issuecomment-40863767
  
    @marmbrus 
    You are right ,macros is faster than the inline method. There's a short gap.
    
    the [test 
code](https://github.com/witgo/spark/blob/logger/core/src/test/scala/org/apache/spark/LoggingSuite.scala)
    the results =>
    ```
    1
    logString: 38987.745 ms
    logInline: 14.198 ms
    logFunction0: 16.22 ms
    logMacros: 12.312 ms
    
    2
    logString: 39037.412 ms
    logInline: 14.349 ms
    logFunction0: 16.2 ms
    logMacros: 12.249 ms
    
    3
    logString: 39169.036 ms
    logInline: 14.324 ms
    logFunction0: 16.871 ms
    logMacros: 11.324 ms
    ```


---
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.
---

Reply via email to