File tree Expand file tree Collapse file tree 2 files changed +9
-37
lines changed
Expand file tree Collapse file tree 2 files changed +9
-37
lines changed Original file line number Diff line number Diff line change @@ -56,11 +56,18 @@ jobs:
5656 uses : microsoft/setup-msbuild@v2
5757
5858 - name : Cache vendor dependencies
59+ id : cache-vendor
5960 uses : actions/cache@v4
6061 with :
61- path : vendor
62- key : vendor-${{ runner.os }}-${{ hashFiles('scripts/setup_vendors.sh') }}
62+ path : |
63+ vendor/boringssl/build
64+ vendor/liburing/install
65+ vendor/liburing/src
66+ vendor/nghttp2/install
67+ vendor/nghttp2/lib/.libs
68+ key : vendor-${{ runner.os }}-${{ hashFiles('scripts/setup_vendors.sh') }}-v2
6369 restore-keys : |
70+ vendor-${{ runner.os }}-${{ hashFiles('scripts/setup_vendors.sh') }}-
6471 vendor-${{ runner.os }}-
6572
6673 - name : Setup vendor dependencies
Original file line number Diff line number Diff line change @@ -81,40 +81,5 @@ def test_fingerprint_rotation():
8181 # This will be testable once we implement fingerprint tracking
8282
8383
84- def test_performance ():
85- """Test performance compared to requests library"""
86- import time
87-
88- from tests .test_server import MockHTTPServer
89-
90- iterations = 50 # Reduced for local testing
91-
92- with MockHTTPServer () as server :
93- url = f"{ server .url } /get"
94-
95- # Test httpmorph
96- start = time .time ()
97- for _ in range (iterations ):
98- httpmorph .get (url )
99- httpmorph_time = time .time () - start
100-
101- # Test requests
102- import requests
103-
104- start = time .time ()
105- for _ in range (iterations ):
106- requests .get (url )
107- requests_time = time .time () - start
108-
109- print (f"httpmorph: { httpmorph_time :.2f} s" )
110- print (f"requests: { requests_time :.2f} s" )
111- if httpmorph_time > 0 :
112- print (f"Speedup: { requests_time / httpmorph_time :.2f} x" )
113-
114- # Assert httpmorph completes successfully
115- assert httpmorph_time > 0
116- assert httpmorph_time < requests_time
117-
118-
11984if __name__ == "__main__" :
12085 pytest .main ([__file__ , "-v" ])
You can’t perform that action at this time.
0 commit comments