crepererum commented on PR #542:
URL: 
https://github.com/apache/arrow-rs-object-store/pull/542#issuecomment-3515651837

   These are the results on my machine:
   
   ```text
   === Results Summary ===
   
   Median Latency (p50):
   Concurrency  │      Mutex │   Arc-swap │     RwLock │ Arc vs Mutex │ RwLock 
vs Mutex
   
────────────────────────────────────────────────────────────────────────────────────────────
   100          │     2.14ms │     2.13ms │     2.13ms │         0.3% │         
  0.2%
   500          │     2.33ms │     2.25ms │     2.25ms │         3.8% │         
  3.6%
   5k           │     4.45ms │     3.48ms │     3.26ms │        28.0% │         
 36.3%
   5k           │     4.36ms │     3.47ms │     3.28ms │        25.5% │         
 32.8%
   10k          │     9.53ms │     7.12ms │     6.65ms │        33.8% │         
 43.3%
   25k          │    23.42ms │    18.78ms │    17.56ms │        24.7% │         
 33.4%
   
   
   Tail Latency (p99):
   Concurrency  │      Mutex │   Arc-swap │     RwLock │ Arc vs Mutex │ RwLock 
vs Mutex
   
────────────────────────────────────────────────────────────────────────────────────────────
   100          │     3.25ms │     3.20ms │     3.21ms │         1.7% │         
  1.2%
   500          │     3.51ms │     3.39ms │     3.39ms │         3.7% │         
  3.7%
   5k           │     6.02ms │     7.07ms │     6.59ms │       -14.8% │         
 -8.6%
   5k           │     5.92ms │     7.01ms │     6.52ms │       -15.5% │         
 -9.2%
   10k          │    10.93ms │    12.78ms │    11.68ms │       -14.4% │         
 -6.3%
   25k          │    24.91ms │    36.22ms │    33.63ms │       -31.2% │         
-25.9%
   ```
   
   So here `RwLock` is consistently better than `Arc-swap`, but one also has to 
note that the overall improvement of this entire endeavor is fairly limited 
(like 35% latency improvement at best).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to