Comments (3)
It would be hard to spot this just by looking at the code, most probably it would require some debug output here and there to narrow it down.
But from the code in timeline.ts
:
if (clicks.length !== 1) {
console.log("exactly one click event is expected", fileName, events);
throw "exactly one click event is expected";
}
we can suspect 2 causes:
- click event not dispatched at all, i.e. puppeteer click event fails silently.
- more than one click event dispatched, due to some bug/peculiarity of event system in some framework.
Don't you see in the console at least the framework and scenario where this is triggered, or it is a random event?
from js-framework-benchmark.
Such a trace might then look like that:
This feels so odd, since the browser is in a defined state after initBenchmark. The test driver has verified that the warmup was successful and the dom elements are present. Then tracing starts before runBenchmak whose actions are also validated (i.e. it's neither case 1 or 2). The tracing stops after successful verification that the dom state was modified according to the benchmark. Everything is in its place, but the trace contains almost nothing (no click event, no layout, no paint, ...)
Both puppeteer and playwright occasionally have this error, maybe I find the time to check the webdriver CDP driver.
As a workaround I built a retry for that particular error. @syduki I'll close your PR since I played with that retry on the master branch.
from js-framework-benchmark.
Those 1 & 2 were too optimistic, from your capture looks it is a worse case, more likely tied to CDP itself. Let's see if it improves with the webdriver.
from js-framework-benchmark.
Related Issues (20)
- 90 percentile calculation make comparisons across browser versions impossible. HOT 4
- The weight is killing innovations in `JS` frameworks HOT 28
- Remove lighthouse metrics? HOT 10
- isKeyed test appears to be wrong for qwik HOT 4
- Please add jQuery if just for completion HOT 2
- .NET 8 Released HOT 1
- archive petite-vue
- sprae should be flagged #1139 HOT 2
- doohtml should be flagged #801 HOT 2
- Number of warm-up runs should not be the same every time HOT 3
- The test "total kilobyte weight" might not cover assets cached by service worker HOT 2
- Suggestion: transpose + sort + group table HOT 2
- Results of locally tested frameworks (libraries e.t.c.) are sometimes at the end of the table HOT 1
- hydro-js is broken HOT 1
- Suggestion: calculation for transferred sizes HOT 6
- add htmx and astro for the benchmark ? HOT 3
- Add "Fresh" web framework. HOT 1
- Check #1139 flag HOT 6
- Suggestion: Improvement for Vanillajs-1 implementation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-framework-benchmark.