Skip to content

Commit

Permalink
fix readme (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
itrofimow authored Nov 1, 2022
1 parent fd50a31 commit 48e1dde
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 18 deletions.
32 changes: 24 additions & 8 deletions frameworks/C++/userver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,35 @@ This is the [userver](https://github.com/userver-framework/userver) portion of a

### Test Type Implementation Source Code

* [JSON](userver_benchmark/src/main.cpp)
* [PLAINTEXT](userver_benchmark/src/main.cpp)
* [DB](userver_benchmark/src/main.cpp)
* [PLAINTEXT](userver_benchmark/src/controllers/plaintext/handler.cpp)
* [JSON](userver_benchmark/src/controllers/json/handler.cpp)
* [Single Database Query](userver_benchmark/src/controllers/single_query/handler.cpp)
* [Multiple Database Queries](userver_benchmark/src/controllers/multiple_queries/handler.cpp)
* [Database Updates](userver_benchmark/src/controllers/updates/handler.cpp)
* [Cached Queries](userver_benchmark/src/controllers/cached_queries/handler.cpp)

## Test URLs
### PLAINTEXT

http://localhost:8080/plaintext

### JSON

http://localhost:8090/json
http://localhost:8080/json

### PLAINTEXT
### Single Database Query

http://localhost:8080/db

### Multiple Database Queries

http://localhost:8080/queries

### Database Updates

http://localhost:8080/updates

http://localhost:8090/plaintext
### Cached Queries

### DB
http://localhost:8080/cached-queries

http://localhost:8090/db
2 changes: 1 addition & 1 deletion frameworks/C++/userver/benchmark_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"query_url": "/queries?queries=",
"update_url": "/updates?queries=",
"cached_query_url": "/cached-queries?count=",
"port": 8090,
"port": 8080,
"approach": "Realistic",
"classification": "Micro",
"database": "postgres",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ components_manager:
coro_pool:
initial_size: 10000 # Preallocate 10000 coroutines at startup.
max_size: 65536 # Do not keep more than 65536 preallocated coroutines.
stack_size: 66560 # 64Kb cause why not
stack_size: 66560 # 64Kb for coroutine stack

task_processors: # Task processor is an executor for coroutine tasks
task_processors: # Task processor is an executor for coroutine tasks

main-task-processor: # Make a task processor for CPU-bound couroutine tasks.
thread_name: main-worker # OS will show the threads of this task processor with 'main-worker' prefix.
worker_threads: 12
main-task-processor: # Make a task processor for CPU-bound couroutine tasks.
thread_name: main-worker # OS will show the threads of this task processor with 'main-worker' prefix.
worker_threads: 26
guess-cpu-limit: true

fs-task-processor: # Make a separate task processor for filesystem bound tasks.
fs-task-processor: # Make a separate task processor for filesystem bound tasks.
thread_name: fs-worker
worker_threads: 4

default_task_processor: main-task-processor

components: # Configuring components that were registered via component_list
components: # Configuring components that were registered via component_list
server:
listener: # configuring the main listening socket...
port: 8090 # ...to listen on this port and...
listener: # configuring the main listening socket...
port: 8080 # ...to listen on this port and...
task_processor: main-task-processor # ...process incoming requests on this task processor.
logging:
fs-task-processor: fs-task-processor
Expand Down

0 comments on commit 48e1dde

Please sign in to comment.