Orange-OpenSource / hurl

Hurl, run and test HTTP requests with plain text.
https://hurl.dev
Apache License 2.0
12.89k stars 482 forks source link

Add XML body cache #3013

Closed jcamiel closed 3 months ago

jcamiel commented 3 months ago

Add a cache on XML parsed body response.

Methods that takes a & http::Response has been modified to take also a &mut BodyCache.

With Hurl 4.3.0, on tests_ok/parse_cache.hurl (multiple XPath query on a 260K HTML doc):

hurl-4 3 0

With Hurl 5.0.0, on tests_ok/parse_cache.hurl:

hurl-5 0 0

A nice x17 improvement on this extreme use case 🥳

To note: there is still a delay between two requests on 5.0.0 which corresponds to the only one XML cached response parsing.

fabricereix commented 3 months ago

/accept

hurl-bot commented 3 months ago

🕗 /accept is running, please wait for completion.

hurl-bot commented 3 months ago

✅ Pull request merged and closed by fabricereix with fast forward merge..

# List of commits merged from Orange-OpenSource/hurl/add-xpath-body-cache branch into Orange-OpenSource/hurl/master branch: