Reputation: 85
I'm new to web apps development and I don't know what RPS(requests per second) considered to be normal for dynamic site, however I think that my app very slow.
I'm now working on 4th part of Catalyst::Manual::Tutorial and now I have ~45 RPS for reading 5-10 entries from DB and only about 3-5 RPS for updating/creating/deleting data in DB. I'm using all tools mentioned in tutorial, i.e. SQLite3, Catalyst 5.90075 with perl 5.18 on linux. In DB I have 2 tables with data(author and book) and 1 link table(author_book), my HDD speed ~120MiB/s for read/write and core i5 intel processor.
I have 2 controllers, 1 model and 4 chained actions in my app and using development server(tried Starman with absolutely same results, don't tried perl_mod with Apache for now). Suppose I'm doing something wrong... Can somebody help to improve perfomance?
Upvotes: 1
Views: 326
Reputation: 5779
You should add Catalyst::Stats to you project and get the duration of different parts of you code. This will enable to figure out what is the bottleneck.
Upvotes: 1