Comments (6)
Closing this issue as it seems related to the configuration of the openjdk server cr.openjdk.org
more than anything else. The workaround using CorsProxy works.
from jmh-visualizer.
See this comment:
openjdk/jdk#19251 (comment)
from jmh-visualizer.
I work on OpenJDK, and I'm trying to publish a JMH report using your great tool. I've uploaded my JMH json files here:
https://cr.openjdk.org/~mcimadamore/jdk/8331865/
Ideally, I'd like to pass the two URLs to the visualizer, so that I can then share the resulting page. But I'm not having luck with using such URLs. Using gist works (or uploading locally) - but I wonder if there's a reason as to why the URL function doesn't seem to work? (and, maybe also making sure it's not an issue on our end, e.g. our code review server).
I tried this URL and got following errors in the browser console:
You can follow Learn More links to see a list of possible mitigations
from jmh-visualizer.
Many thanks for getting back to me. I've verified that indeed there are errors on the browser console, and raised the issue to our team in charge of the server configuration. I will update this issue once I know more. Thanks again.
from jmh-visualizer.
Hey @mcimadamore , it's a CORS issue. Because JMH visualizer doesn't have a server and just runs in the browser, it cannot fetch content from servers with a restrictive content policy.
Workaround would be to use a proxy.
You could manually wrap your urls into e.g. CorsProxy (https://corsproxy.io):
So
https://cr.openjdk.org/~mcimadamore/jdk/8331865/loop_over_00_baseline.json
will become
https://corsproxy.io/?https://cr.openjdk.org/~mcimadamore/jdk/8331865/loop_over_00_baseline.json
and that will be loadable with the visualizer
https://jmh.morethan.io/?source=https://corsproxy.io/?https://cr.openjdk.org/~mcimadamore/jdk/8331865/loop_over_00_baseline.json
from jmh-visualizer.
So
https://cr.openjdk.org/~mcimadamore/jdk/8331865/loop_over_00_baseline.json
will become
https://corsproxy.io/?https://cr.openjdk.org/~mcimadamore/jdk/8331865/loop_over_00_baseline.json
and that will be loadable with the visualizer
https://jmh.morethan.io/?source=https://corsproxy.io/?https://cr.openjdk.org/~mcimadamore/jdk/8331865/loop_over_00_baseline.json
Nice trick/workaround - thanks!
from jmh-visualizer.
Related Issues (20)
- Missing parameter labels/names HOT 2
- Rework colors of summary scoreDiff/ErrorDiff chart HOT 1
- Custom Reports
- Error bar isn't centralized HOT 6
- Cannot read property 'forEach' of undefined HOT 2
- Show nano fractions HOT 5
- Comparison chart with bars HOT 7
- Accept jmh files by URL HOT 2
- Doesn't work when source URL is a URL shortener HOT 3
- Issues building on Windows? HOT 1
- Support multi file gists HOT 7
- The order of two input gists is not as specified via URL HOT 1
- dark mode HOT 1
- Add an always-accessible drop zone, instead of Reset & Upload New HOT 1
- Fails on file containing both parameterized and non-parameterized benchmarks HOT 3
- Auto-scroll to benchmark class heading by anchor in URL
- Error bars don't make sense.
- Support for Docker Image HOT 3
- Incorrect measurement values extracted/shown from json file HOT 4
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 jmh-visualizer.