GithubHelp home page GithubHelp logo

Comments (4)

leeturner avatar leeturner commented on June 23, 2024

Hi, many thanks for taking the time to fork the project and add the test. It is very helpful. Would it be possible to let us know if you are upgrading from one version of WireMock to another where you saw the performance issue so we can try and narrow down where the performance regression might be.

You also mentioned zjson in your issue report. Could you give more information on what zjson is

from wiremock.

dongelci avatar dongelci commented on June 23, 2024

Hi @leeturner,

thanks for your feedback.

I mean zjsonpatch. This is a library used before switching to jsonunit. Relevant commit is 7ead912, which was reverted in
ef4cf34 and then reused in 28c5e67.

2.27.2 has no issue. Next release after this is 3.0.0 and there is an issue in it

from wiremock.

tomakehurst avatar tomakehurst commented on June 23, 2024

We switched away from zjsonpatch partly because there were comparison bugs we couldn't resolve with it IIRC.

Since we're dependent on JsonUnit now and the performance issue is presumably within its diff code, maybe it would make sense to raise an issue with that project?

Also, generally I wouldn't recommend using equalToJson for large comparisons. matchesJsonPath is usually much more efficient here, particularly since we introduced some per-request caching that's most effective when you use sub-matchers.

from wiremock.

dongelci avatar dongelci commented on June 23, 2024

Hi @tomakehurst ,

Sorry for late reply.

I also suspect diff creation. I would open an issue at JsonUnit but needed to discuss other options with you.

We are using recording feature with persistent stubs. We could write a Transformer maybe but I am afraid json is too dynamic to define a concrete attribute to use matchesJsonPath but I will take into consideration.

I will inform, when I open an issue at JsonUnit

from wiremock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.