net/http PUT/POST versus GET performance

Discussion in 'Ruby' started by snacktime, Oct 30, 2006.

  1. snacktime

    snacktime Guest

    I've found the performance difference between the PUT/POST and GET
    methods with net/http to be rather dramatic. The former clock in at
    around 10 per second, the latter at around 200. It seems that
    net/http sends the headers, then spends a large amount of time doing
    whatever is does with the body and then sending that. It isn't all
    written out to the socket at once. I can tell because I'm using
    eventmachine for the server end and it's very consistant, the whole
    request is never ready for reading on the server socket, it's always
    sent in two junks fairly far apart.

    Chris
     
    snacktime, Oct 30, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jm
    Replies:
    1
    Views:
    637
    alien2_51
    Dec 12, 2003
  2. Ron Peleg, Creo
    Replies:
    2
    Views:
    854
    Ron Peleg, Creo
    Feb 13, 2006
  3. serge calderara

    HTTP GET vs HTTP POST protocol

    serge calderara, Nov 4, 2005, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    819
  4. Carl Youngblood

    TimeoutError in Net::HTTP get and post

    Carl Youngblood, Sep 22, 2003, in forum: Ruby
    Replies:
    1
    Views:
    128
    Carl Youngblood
    Sep 24, 2003
  5. n3d!m

    Http post and http get

    n3d!m, Jan 25, 2012, in forum: Python
    Replies:
    2
    Views:
    550
    n3d!m
    Feb 6, 2012
  6. Replies:
    7
    Views:
    242
    Enrique Comba Riepenhausen
    May 25, 2007
  7. Paul Butcher
    Replies:
    12
    Views:
    997
    Gary Wright
    Nov 28, 2007
  8. Fred
    Replies:
    17
    Views:
    486
Loading...