You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
In the cached queries some fw are caching the response.
I think that will be good that the test try 2 times the 20 request,
and the test need to call 2 times the request for 20 queries
If the body is the same is NOT correct
later we continue !!!
Tests:
2 calls to the 20 mulltiqueries and cached
if the body is the same, It is NOT CORECT
In this test, each request is processed by fetching multiple cached objects from an in-memory database (the cache having been populated from a database table either as needed or prior to testing) and serializing these objects as a JSON response. The test is run multiple times: testing 1, 5, 10, 15, and 20 cached object fetches per request. All tests are run at 512 concurrency. Conceptually, this is similar to the multiple-queries test except that it uses a caching layer.
i think you are right @fafhrd91. i cannot remember why i did it this way but that certainly wasn't intentional. i will create a PR just to use JSON.stringify on a new object.
I would not presume malicious intent, given that the author has been responsive to issues like that in the past. Anyway, apparently there is already a fix.
As already discussed in #7899 and #7900, it appears that requirement 7b of the cached queries test is frequently violated:
vii. The implementation may use any caching library or approach desired, with the following caveats. [...] b. The implementation should use a bona-fide cache library or server with features such as read through, a replacement algorithm, and so on. Implementations should not create a plain key-value map of objects. If the platform or framework does not ship with a canonical caching capability, use a caching library or separate-process caching server that is realistic for a production environment. A "reference implementation" would use Google's Guava CacheBuilder for in-VM or Redis for separate-process caching.
In particular, the following implementations seem not to comply:
Activity
[-]Some frawerkos don¡t want to ustesdant [/-][+]Some frawerkos don't want to unstedast the rules[/+]joanhey commentedon Aug 26, 2021
In the cached queries some fw are caching the response.
I think that will be good that the test try 2 times the 20 request,
and the test need to call 2 times the request for 20 queries
If the body is the same is NOT correct
later we continue !!!
Tests:
2 calls to the 20 mulltiqueries and cached
if the body is the same, It is NOT CORECT
;)
joanhey commentedon Aug 26, 2021
https://github.com/vasily-kartashov you are the first
but I suspect that others fws do the same
joanhey commentedon Aug 26, 2021
I'll help https://github.com/vasily-kartashov
https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/PHP/hamlet/Benchmark/Resources/CachedQueriesResource.php#L18-L28
joanhey commentedon Aug 26, 2021
In this test, each request is processed by fetching multiple cached objects from an in-memory database (the cache having been populated from a database table either as needed or prior to testing) and serializing these objects as a JSON response. The test is run multiple times: testing 1, 5, 10, 15, and 20 cached object fetches per request. All tests are run at 512 concurrency. Conceptually, this is similar to the multiple-queries test except that it uses a caching layer.
joanhey commentedon Aug 26, 2021
NOT a cached response
[-]Some frawerkos don't want to unstedast the rules[/-][+]Some fraweworks don't follow the rules[/+]NateBrady23 commentedon Aug 31, 2021
Thanks @joanhey
I’m returning to the office in a couple of weeks and I’ll take a look at this.
fafhrd91 commentedon Nov 7, 2022
Seems "just" framework uses const message object for json bench. I am not sure, I don't have much of js knowledge.
FrameworkBenchmarks/frameworks/JavaScript/just/tfb.config.js
Line 49 in 542904f
billywhizz commentedon Nov 9, 2022
i think you are right @fafhrd91. i cannot remember why i did it this way but that certainly wasn't intentional. i will create a PR just to use JSON.stringify on a new object.
fafhrd91 commentedon Jan 23, 2023
@billywhizz just still uses const message
@nbrady-techempower
In last test run, redkale performs two times more in updates bench. Looks like a bug in framework or cheating.
volyrique commentedon Jan 23, 2023
I would not presume malicious intent, given that the author has been responsive to issues like that in the past. Anyway, apparently there is already a fix.
joanhey commentedon Jan 23, 2023
Check the multiple queries for Redkale
https://www.techempower.com/benchmarks/#section=test&runid=8b5c71ba-c738-444e-80d1-581f7e650b68&test=query
It's the first and twice faster than the next fw, and in single query have about 40 faster in front.
NinoFloris commentedon Jan 24, 2023
Redkale seems to be using an entity cache.
The single and multiple queries benchmark rules don't permit this "Use of an in-memory cache of World objects or rows by the application is not permitted." (see rule xii of https://github.com/TechEmpower/FrameworkBenchmarks/wiki/Project-Information-Framework-Tests-Overview#single-database-query)
Benchmark code:
https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/Java/redkale/src/main/java/org/redkalex/benchmark/BenchmarkService.java#L44-L54
For the single query scenario
source.findAsyncis defined here:https://github.com/redkale/redkale/blob/961ff7fa225cb05273278e01164d7bcb4e03f947/src/main/java/org/redkale/source/DataSqlSource.java#L2606
And the relevant callee of
source.findListAsyncfor multiple queries is defined here (just trace it from findListAsync, it's all the same file):https://github.com/redkale/redkale/blob/961ff7fa225cb05273278e01164d7bcb4e03f947/src/main/java/org/redkale/source/DataSqlSource.java#L3216
This is likely also the source of the updates score discrepancy (given that it also calls into
source.findListAsync)@redkale could you verify whether this is the case?
volyrique commentedon Feb 20, 2023
As already discussed in #7899 and #7900, it appears that requirement 7b of the cached queries test is frequently violated:
In particular, the following implementations seem not to comply:
atreugo-preforkfasthttp-preforkfiber-preforkgearbox-preforkredkale/redkale-graalvmsalvo-diesel/salvo-pgviz-diesel/viz-pg/viz-sqlxNote that this list is definitely not exhaustive.
Pinging @abahmed, @chrislearn, @Fenny, @fundon, @redkale, and @savsgio for their input.
redkale commentedon Mar 18, 2023
@volyrique
Cache had changed
redkale commentedon Mar 18, 2023
@NinoFloris
Redkale does not use entity caching default, and EntityCache requires the entity class tag @ Cacheable to take effect
see https://github.com/redkale/redkale/blob/master/src/main/java/org/redkale/source/EntityInfo.java#L689
such as CachedWorld @Cacheable(direct = true)
cesco69 commentedon Mar 4, 2025
billywhizz commentedon Mar 4, 2025
no. it doesn't. this is the cache used for the cached-query benchmark, which is not even included in the composite scores.
NateBrady23 commentedon Mar 24, 2026
Closing as part of bulk cleanup.