andresriancho / w3af

w3af: web application attack and audit framework, the open source web vulnerability scanner.
http://w3af.org/
4.57k stars 1.22k forks source link

Experiment with different cache replacement algorithms for the parser cache #9077

Open andresriancho opened 9 years ago

andresriancho commented 9 years ago

We're now using the LRU algorithm to replace the items in the parser cache, but maybe it's not the best thing to do?

Check these cache replacement algorithms

Run different tests using the new profiling features

This is the output from a random scan:

$ cat /tmp/w3af-*core | grep hit_rate
        "hit_rate": 0.26894865525672373, 
        "hit_rate": 0.26875, 
        "hit_rate": 0.29097605893186, 
        "hit_rate": 0.28468468468468466, 
$

~27% hit rate is really high for any cache!

andresriancho commented 9 years ago

Related with Effective use of memory/CPU #9068