• Post Reply Bookmark Topic Watch Topic
  • New Topic

What's the typical performance of a trivial REST server?  RSS feed

 
Jane Jukowsky
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Something very trivial.. say, hello world on a typical developer's box. How many hello world's can it do per second, on localhost? Sorry about asking here instead of doing my own benchmark; there would be a major learning curve involved, and I am not sure I am going to even use it.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suspect the difference between a request formatted as a normal GET with a url giving a file name and a GET to a REST server would not be measurable.

A RESTful server such as you can create with the Jersey project does have a little extra interpretation step to steer the request to the right method but it is probably too small to measure. The initial startup of a Jersey server involves extra steps as it locates classes with the correct annotations, but that is just startup time.

In contrast with the overhead of -say- a SOAP server, which involves parsing XML, REST requests are very simple.

Bill
 
Jane Jukowsky
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK then, same question stands for an HTTP GET. How many hello worlds per second, on localhost, for an average quality developer's box? I know it's vague, but I am only looking for an order of magnitude.

 
michael cheung
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We used rest in my company and when we did load test. we have about 12000 through/min for 10% cpu loads just for a simple login call. We used jaxb for xml marshall/unmarshall. This is just giving you a rough idea what the load look like.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!