sábado, 20 de agosto de 2011

Benchmarks de port forwarding con Python+Eventlet

Les comparto algunos benchmarks que hice para verificar la velocidad del "tcp port forwarder" implementado usando Python+Eventlet: http://blog.eventlet.net/2010/02/28/beautiful-er-eventlet/

No pude hacer los tests usando 'ab', ya que parece haber algun problema por el cual la aplicación no funciona correctamente.

Copia de ISO usando scp, puerto 22: OK
  • ubuntu.iso 100%  698MB  63.4MB/s   00:11
  • ubuntu.iso 100%  698MB  69.8MB/s   00:10
  • ubuntu.iso 100%  698MB  69.8MB/s   00:10

Copia de ISO usando scp, puerto 7000 (eventlet): OK
  • ubuntu.iso 100%  698MB  41.0MB/s   00:17
  • ubuntu.iso 100%  698MB  41.0MB/s   00:17
  • ubuntu.iso 100%  698MB  43.6MB/s   00:16

Copia de ISO, usando wget, bajada directamente de Apache, puerto 80: OK
  • 731,453,440  524M/s   in 1.3s    
  • 731,453,440  539M/s   in 1.3s    
  • 731,453,440  523M/s   in 1.3s    


Copia de ISO, usando wget, bajada directamente de Apache, puerto 7080 (eventlet): OK
    • 731,453,440  319M/s   in 2.2s
    • 731,453,440  318M/s   in 2.2s
    • 731,453,440  323M/s   in 2.2s


    Usando ApacheBench, al puerto 80:  OK
    • ab -n 400 -c 5 http://localhost:80/index.html 
      • Finished 400 requests
      • Concurrency Level:      5
      • Time taken for tests:   0.083 seconds
      • Complete requests:      400
      • Failed requests:        0


    Usando ApacheBench, al puerto 7080 (eventlet): ERROR!!!
      • ab -n 400 -c 5 http://localhost:7080/index.html 
        • apr_poll: The timeout specified has expired (70007)
      • ab -n 40 -c 5 http://localhost:7080/index.html 
        • apr_poll: The timeout specified has expired (70007)
      • ab -n 5 -c 1 http://localhost:7080/index.html 
        • apr_poll: The timeout specified has expired (70007)

      No hay comentarios: