Re: benchmarking Flex practices

John Naylor <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.general
Message-ID <CACPNZCuQUejMsKy1Ym42-Z8o3T8MDOHffG_uSDc0aJ=3VbueFA@mail.gmail.com>
I wrote:

> I no longer use state variables to track scanner state, and in fact I
> removed the existing "state_before" variable in ECPG. Instead, I used
> the Flex builtins yy_push_state(), yy_pop_state(), and yy_top_state().
> These have been a feature for a long time, it seems, so I think we're
> okay as far as portability. I think it's cleaner this way, and
> possibly faster.

I thought I should get some actual numbers to test, and the results
are encouraging:

           master       v10
info       1.56s        1.51s
str        1.18s        1.14s
unicode    1.33s        1.34s
uescape    1.44s        1.58s


--
John Naylor                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.