Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Changes / Updates / Dates for Round 21 #7289

Closed

Description

@NateBrady23

We would like to set our eyes on a new official Round release. Because there have been some rules clarifications, we're going to need the community's help in identifying frameworks whose maintainers need to be pinged for updates so they can be included in the official results.

We'll aim for mid-to-late May for an official preview run. I'll add dates here with a couple week's notice before locking PR's.

Rules Clarification:

  • Database commands coalescing #7019
    • If any pipelining or network optimization is performed, then the execution behavior and semantics must match what they would be if the multiple SQL statements were executed without the optimization, i.e. in separate roundtrips. For example, it is forbidden to perform any optimization could change the transactionality and/or error handling of the SQL statements. To avoid any doubt, such optimizations are forbidden even if they wouldn't produce the behavioral change with the specific SQL statements of the TechEmpower benchmarks, but would produce it with other statements a user might supply.

Dates:

  • All PRs must be in by Tuesday, May 31st to be accepted for Round 21. After that date, only PRs that address issues we've called out will be accepted. No performance updates/improvements, package updates, etc, will be accepted after this date.

Activity

  1. pinned this issue on Apr 11, 2022
  2. joanhey commented on Apr 17, 2022

    @joanhey
    Contributor

    Because there have been some rules clarifications

    Could you clarify exactly the changes.
    Also will be good open a discussion with the changes and the not approved changes.
    And not pollute this issue.

    Thank you !!

  3. NateBrady23 commented on Apr 18, 2022

    @NateBrady23
    MemberAuthor

    Thanks @joanhey - It's really just the db driver clarification (which currently only affects postgres). I updated the issue and will continue to as needed.

    Also will be good open a discussion with the changes and the not approved changes.
    And not pollute this issue.

    There's no need to open discussions about not approved changes. I won't really be monitoring that. It's fine to post here if you need to. People should only care about the pinned post, but it's the easiest way to get a notification to my inbox, since I'm extremely busy with other work atm.

  4. sebastienros commented on May 2, 2022

    @sebastienros
    Contributor

    we're going to need the community's help in identifying frameworks whose maintainers need to be pinged for updates

    I see two options, not exclusive:

    • Ping contributors to verify the implementation
    • Start manually testing the top frameworks in the database benchmarks

    We could have a table to keep track of each framework and the verification status. If contributors are not sure, then someone could help them with manual verification (I volunteer). Which also means document the verification steps.

  5. joanhey commented on May 2, 2022

    @joanhey
    Contributor

    Question:
    In the Fortunes test, is It possible? to :

    Because some frameworks have more or similar req/s in fortunes than in 1-query. That is very odd.

    If yes, I will update some frameworks before the next round.

  6. michaelhixson commented on May 12, 2022

    @michaelhixson
    Contributor

    We could have a table to keep track of each framework and the verification status. If contributors are not sure, then someone could help them with manual verification (I volunteer). Which also means document the verification steps.

    I'm also happy to help with manual verification. Let me know if/when that's needed. I'd probably use the process I described in this PR comment.

    I did do that verification on most of the top frameworks already but I didn't record the results anywhere. The gist was that the frameworks in the tier above vertx in multiquery all failed verification, but those in the same tier were ok.

  7. joanhey commented on May 13, 2022

    @joanhey
    Contributor

    The database conneciton is OK
    @fakeshadow could you explain why it's faster fortunes than 1-query test.
    Thank You.

  8. fakeshadow commented on May 13, 2022

    @fakeshadow
    Contributor

    could you explain why it's faster fortunes than 1-query test. Thank You.

    .prepare("SELECT * FROM fortune", &[])

    You can see the source code here. query statements is cached for fortune test and it's just a single query. For single query test you have to type check the input id and properly encoding it which is more work to do that could very well be slower than a sort.(xitca-postgres acts the same as tokio-postgres in this regards. It uses a lock on client encoding buffer to help potential memory re-use and less allocation which make it relative slower on the encoding part.)

    Edit: I forget to add that there is also extra cost of parsing the query string to a number from uri path in single query test.

  9. joanhey commented on May 13, 2022

    @joanhey
    Contributor

    but the code cannot have foreknowledge of the table's size

    It's not only a sort, it's also to be properly escape all the rows.

    But the important think is now how fast is the fw, but a more tecnicallly question it's the response from the db and to the request, is larger.

    But if you explain, the rest will learn.
    Thanks

  10. fakeshadow commented on May 13, 2022

    @fakeshadow
    Contributor

    It's actually an interesting topic. The top scorers in single query are using batch mode and they have a significant perf drop in fortune test. I suspect it has to do with io read overhead by batching on large response.

  11. joanhey commented on May 13, 2022

    @joanhey
    Contributor

    Yes all, but not all fw

  12. joanhey commented on May 13, 2022

    @joanhey
    Contributor

    The response in Xitca-web fortunes is cached ??
    Sorry but I need to ask it !!

  13. fakeshadow commented on May 13, 2022

    @fakeshadow
    Contributor

    The response in Xitca-web fortunes is cached ??

    No. You can see the source code here.

    Fortune take ownership of the data it owns. And in Rust when ownership goes out of scope all memory it associated with is dropped.

  14. joanhey commented on May 13, 2022

    @joanhey
    Contributor

    Sorry I don't want start a war :)
    I know how work Rust. And that allways clean the memoryl

    In the top 30 frameworks, the issue is not just speed, but the size of the network response.
    And that is technically impossible, than Fortunes is faster than 1-query.

  15. fakeshadow commented on May 13, 2022

    @fakeshadow
    Contributor

    Sorry I don't want start a war :) I know how work Rust. And that allways clean the memoryl

    That's a legit question and I understand your concern. But the result is what it is.
    I'm pretty sure I follow all the rules in this bench and the whole project is open sourced on git. If you find anything I did wrong just ping me and I would fix it if that's the case.

  16. 48 remaining items

  17. volyrique commented on Jul 23, 2022

    @volyrique
    Contributor

    i don't think it's an "unfair" advantage when this is a natural advantage JIT has in the real world and is a possible reason to choose JIT over static, depending on the workload. what's the point in the benchmark if it doesn't give us an insight into which languages and platforms might have advantages over others because everyone has heavily optimised their entry to fit the specific tests?

    I suppose you have done that by accident, but what you wrote might give the impression that you consider feedback-directed/profile-guided optimization for static languages to be somehow not a real-world optimization and to be akin to "coding to the benchmark" - it is not. It is a well-understood generic optimization mechanism, and there is work to make it applicable to an even wider range of use cases (e.g. AutoFDO). In fact, the relative ease with which both h2o and lithium deploy it supports that, and, even better, there is an argument to be made that FDO/PGO as done by them makes more sense than the one done by a tiering compiler in a JIT runtime because it obtains a profile across the whole set of TechEmpower benchmarks instead of the currently running one (an imperfect fix for a JIT runtime would be to run at least the warm-up phases of all benchmarks in parallel instead of sequentially, as is right now), so it would be more likely to produce a result that is not adapted to a particular benchmark, but is a balanced binary that has predictable performance for everything.

    And yes, obviously I disagree that this is a "natural" advantage of JIT runtimes. The real advantages are:

    • FDO/PGO is (way) easier to deploy, even when compared with AutoFDO
    • JIT runtimes tend to build optimizations on top of it that static language compilers ignore, e.g. speculative devirtualization/monomorphization

    In particular, the second advantage would be perfectly well reflected in the results even if FDO/PGO is allowed for languages that are compiled ahead-of-time.

  18. billywhizz commented on Jul 23, 2022

    @billywhizz
    Contributor

    @volyrique i'll leave it up to the TE folks to decide but there's much confusion about what these benchmarks are for and there seems to be a perception out there (on HN/twitter/reddit) that they are rendered meaningless/ridiculous by the extreme lengths maintainers go to in order to achieve the top scores.

    the reality i think is only a tiny fraction of devs out there are interested in those kind of micro-optimizations and would prefer to see a realistic comparison of standard implementations handling a range of different workloads without specific optimizations. i myself was on the other side of this debate in wanting to see the more extreme optimizations and understand what would be possible if we optimized everything we could, but i have been won over to the realistic side of the argument since.

    it might be best to have two distinct categories for "realistic" and "optimized" and have two completely different rankings for them? it certainly seems the status quo is too difficult to police and leaves too much room for "gaming" the rules.

  19. volyrique commented on Jul 23, 2022

    @volyrique
    Contributor

    the reality i think is only a tiny fraction of devs out there are interested in those kind of micro-optimizations and would prefer to see a realistic comparison of standard implementations handling a range of different workloads without specific optimizations.

    This is a false dichotomy - there are certainly generic micro-optimizations, and PGO for the C programs in this repository tends to gravitate towards this category IMHO.

    it might be best to have two distinct categories for "realistic" and "optimized" and have two completely different rankings for them?

    I fail to see how that is going to help with the policing issue - it is just changing labels, unless I am missing something. Also, we kind of already have the same thing with the stripped implementation approach.

  20. unpinned this issue on Jul 30, 2022
  21. inemtsev commented on Aug 26, 2022

    @inemtsev
    Contributor

    Is there an easy way to click-through and see which versions of frameworks were used, which serializers, etc...?

  22. tomaszs commented on Nov 15, 2022

    @tomaszs

    Hello. How to find out what version of Node.js, Java and .NET is used?

  23. averms commented on Nov 22, 2022

    @averms

    could someone tag the commit that was tested in round 21? it looks like it was 0db323061e4e258d1ce66a34ea2132f8beef5cc8.

  24. joanhey commented on Nov 29, 2022

    @joanhey
    Contributor
  25. FleetingEcho commented on Dec 16, 2022

    @FleetingEcho

    will Bun's web framework be included in next round's benchmark? like elysia or Bun's native http service, curious how fast it could be compared with other frameworks. Thanks.

  26. rcollette commented on Jan 20, 2023

    @rcollette

    More frequent rounds are on the horizon

    I'd say the half year mark is probably the cutoff for saying there is improvement on that front.

  27. NateBrady23 commented on Feb 22, 2023

    @NateBrady23
    MemberAuthor

    More frequent rounds are on the horizon

    I'd say the half year mark is probably the cutoff for saying there is improvement on that front.

    It's been a trying year with a big move and hopefully some new hardware very soon. Hopefully the continuous benchmarking we implemented is enough for now. If there's a reason you need one of these runs marked as official, I'd love to hear about it!

  28. psmulovics commented on Feb 22, 2023

    @psmulovics

    @nbrady-techempower actually I am interested in the blog posts explaining the changes more than the actual raw results :) so if you were to name one run official and have an explanation on the changes, that would be super interesting.

  29. NateBrady23 commented on Feb 23, 2023

    @NateBrady23
    MemberAuthor

    @psmulovics Thanks for the insight! We actually didn't do a blog post for Round 21 😅

    I would really love to collect some insights from contributors about what they did to improve their respective frameworks for the next round. The updates from us are the boring kernel and db updates. 😉

  30. psmulovics commented on Feb 23, 2023

    @psmulovics

    Yes - the 21 'blogpost' was this github issue 😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions