LALaker's blog

By LALaker, history, 5 hours ago, In English

How fast can the CF C++ executer run?

Or how much data can the CF C++ executer run in one second?

Can $$$3*10^8$$$ AC in one second's limit?

Which runs faster,C++11, C++14, C++17, C++20 or C++23?

Please reply me.

Sorry for my horrible English grammar.

  • Vote: I like it
  • +3
  • Vote: I do not like it

»
3 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

i don't know so much about the compilers, but C++23 runs noticeably slower than the others, and i recommend use C++14 — C++17 or C++20 (not so much difference)

  • »
    »
    2 hours ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Cuz its in the beta

»
112 minutes ago, # |
  Vote: I like it 0 Vote: I do not like it

The 10^8 estimate is a bit rough, the actual number depends on many factors which can be very tricky to analyze. There are even problems where the intended solution is 10^9 with a good constant.

»
77 minutes ago, # |
  Vote: I like it 0 Vote: I do not like it

Problems with marginal ops usually set higher time limits

»
48 minutes ago, # |
  Vote: I like it 0 Vote: I do not like it

Can $$$3 \times 10^8$$$ AC in one second's limit?

It depends on the algorithm used. While some extremely fast algorithms (sorting, for example) can handle $$$10^9$$$ easily, a general estimation is about $$$10^8$$$ per second.

Which runs faster,C++11, C++14, C++17, C++20 or C++23?

Normally C++ standard version has little to do with runtime performance.

»
12 minutes ago, # |
  Vote: I like it 0 Vote: I do not like it

Depends on your algorithm. If you calculate ALL the constants, based on my personal experience, it is possible to run over $$$10^9$$$.

For example, sometimes an algorithm may appear to be $$$10^8$$$, but with a huge constant, it may still not be able to run.

But sometimes an algorithm looks like $$$10^12$$$ but has a bunch of unpredictable pruning and optimization, and I remember running it once within 4 seconds.

The version doesn't have much impact, but the impact of 32bits or 64bits is much greater than that. The best way is to practice more and research how fast the CF evaluation machine is and whether it performs certain operations particularly fast.