Necko/MobileCache/MicroBenchmarks: Difference between revisions

Line 16: Line 16:
Some results from a Linux server running 64-bit Ubuntu 10.4
Some results from a Linux server running 64-bit Ubuntu 10.4


Memory-cache capacity: 51200 Kb / Disk-cache capacity: 1048576 Kb
Max #connections=256 / max per server=256
                                         Total time      #runs  avg time/run
                                         Total time      #runs  avg time/run
  === Set datasize 50 bytes
  === Set datasize 50 bytes
  Pure overhead        (no-cache)         10015           14902   0.67
  Calloverhead            (no-cache)     10016           14594   0.69
  Overhead+ClearCache (no-cache)         10016           11703   0.86
  Calloverhead+ClearCache (no-cache)     10015           11647   0.86
  Load                (no cache)         10041           362     27.74
  CacheMiss (nocache)    (no cache)     10047           368     27.30
  Pure overhead        (mem-cache)       10016           14799   0.68
  Calloverhead            (mem-cache)     10015           14532   0.69
  Overhead+ClearCache (mem-cache)       10016          11663   0.86
  Calloverhead+ClearCache (mem-cache)     10016          11616   0.86
  Cache hit            (mem-cache)       10018          4985    2.01
  CacheMiss (clrcache)    (mem-cache)     10018          360    27.83
  Cache miss/clrcache  (mem-cache)       10038           347     28.93
  CacheMiss (nocache)    (mem-cache)     10032           367     27.34
  Cache miss/nocache  (mem-cache)       10046           365    27.52
  CacheHit                (mem-cache)     10017           4674    2.14
  Pure overhead        (disk-cache)       10015          14832   0.68
  Calloverhead            (disk-cache)   10015          13954   0.72
  Overhead+ClearCache (disk-cache)       10015           6674   1.50
  Calloverhead+ClearCache (disk-cache)   10017           6723   1.49
  Cache hit            (disk-cache)       10017           4973    2.01
  CacheMiss (clrcache)    (disk-cache)   10033           346    29.00
  Cache miss/clrcache  (disk-cache)       10019           343     29.21
  CacheMiss (nocache)    (disk-cache)   10032           357     28.10
  Cache miss/nocache  (disk-cache)       10029           363    27.63
  CacheHit                (disk-cache)   10017           4709    2.13
  === Set datasize 1024 bytes
  === Set datasize 1024 bytes
  Load                (no cache)         10020          351     28.55
  CacheMiss (nocache)    (no cache)     10020          339     29.56
  Cache hit            (mem-cache)       10019           3829    2.62
  CacheMiss (nocache)    (mem-cache)     10037           351    28.60
  Cache miss/nocache  (mem-cache)       10037           349    28.76
  CacheHit                (mem-cache)     10019           3634    2.76
  Cache hit          (disk-cache)       10018           3800    2.64
  CacheMiss (nocache)    (disk-cache)   10048           345    29.12
  Cache miss/nocache  (disk-cache)       10018          344    29.12
  CacheHit                (disk-cache)   10018          3535    2.83
  === Set datasize 51200 bytes
  === Set datasize 51200 bytes
  Load                (no cache)         10093           108     93.45
  CacheMiss (nocache)    (no cache)     10095           103     98.01
  Cache hit            (mem-cache)       10053           324     31.03
  CacheMiss (nocache)    (mem-cache)     10023           104     96.38
  Cache miss/nocache  (mem-cache)       10051           106     94.82
  CacheHit                (mem-cache)     10070           306     32.91
  Cache hit          (disk-cache)       10060           325     30.95
  CacheMiss (nocache)    (disk-cache)   10110           104     97.21
  Cache miss/nocache  (disk-cache)       10039           107     93.82
  CacheHit                (disk-cache)   10054           301     33.40
  === Set datasize 524288 bytes
  === Set datasize 524288 bytes
  Load                (no cache)         10557           15     703.80
  CacheMiss (nocache)    (no cache)     10277           14     734.07
  Cache hit            (mem-cache)       10404           33     315.27
  CacheMiss (nocache)    (mem-cache)     10312           14     736.57
  Cache miss/nocache  (mem-cache)       10577           15     705.13
  CacheHit                (mem-cache)     10443           31     336.87
  Cache hit          (disk-cache)       10354           33     313.76
  CacheMiss (nocache)    (disk-cache)   10283           14     734.50
  Cache miss/nocache  (disk-cache)       10604           15     706.93
  CacheHit                (disk-cache)   10451           31     337.13


The important numbers are found in the rightmost column. Note that the first block (datasize 50 bytes) includes more results than the other blocks. "Pure Overhead" measures the call-overhead from JavaScript, and "Overhead+ClearCache" measures the time to Clear the cache from JavaScript. These numbers are unrelated to the size of the data loaded, hence reported only once.
The important numbers are found in the rightmost column. Note that the first block (datasize 50 bytes) includes more results than the other blocks. "Pure Overhead" measures the call-overhead from JavaScript, and "Overhead+ClearCache" measures the time to Clear the cache from JavaScript. These numbers are unrelated to the size of the data loaded, hence reported only once.
97

edits