[ 
https://issues.apache.org/jira/browse/CALCITE-1012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15049372#comment-15049372
 ] 

Vladimir Sitnikov commented on CALCITE-1012:
--------------------------------------------

Here's quick pick on "reuse" approach:
{noformat}
Benchmark                                           (comments)  (length)  Mode  
Cnt      Score      Error   Units
ParserBenchmark.parseCached                               true      1000  avgt  
  7    125,794 ±    6,069   us/op
ParserBenchmark.parseCached:·gc.alloc.rate.norm           true      1000  avgt  
  7  51872,058 ±    0,003    B/op
ParserBenchmark.parseNonCached                            true      1000  avgt  
  7    109,976 ±    3,401   us/op
ParserBenchmark.parseNonCached:·gc.alloc.rate.norm        true      1000  avgt  
  7  96102,688 ±   89,184    B/op
{noformat}

Less allocations, but *worse* performance.

> Benchmark SQL parser
> --------------------
>
>                 Key: CALCITE-1012
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1012
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Julian Hyde
>            Assignee: Julian Hyde
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to