Skip to content
This repository was archived by the owner on Feb 1, 2019. It is now read-only.

Commit 8046aef

Browse files
committed
perf-metrics.md: Add performance metrics
Add performance metrics data from Phase-1 to the repo. Closes #10
1 parent 9c69c5b commit 8046aef

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

docs/images/perf-phase-1.png

35.1 KB
Loading

perf-metrics.md

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
## Performance Metrics
2+
3+
Performance metrics of the coala-ls server. To maintain standard
4+
comparison against some configuration at every phase of development
5+
the codebase from https://github.com/ksdme/projects/tree/coalals-perf
6+
is used to calculate the metrics. The .coafile configuration can be
7+
found in the same repo.
8+
9+
Metrics are calculated on a per file basis since such said metrics
10+
are heavily dependent on the source file and the coala configuration.
11+
The number of concurrent jobs also affects the performance heavily,
12+
metrics are also collected as per the number of jobs running. The
13+
average time for the server to start up is `3.2 Sec`.
14+
15+
Response times for various requests in seconds sent to the server
16+
with `max_jobs = 1`.
17+
18+
| request type | time | time (legacy) |
19+
| -------------------------------------------- | --------- | ------------- |
20+
| initialize | 0.03 sec | 0.019 sec |
21+
| `resources/css/404.css` textDocument/didOpen | 7.18 sec | |
22+
| `resources/css/404.css` textDocument/didSave | 5.32 sec | 11.36 sec |
23+
| `index.html` textDocument/didOpen | 10.16 sec | |
24+
| `index.html` textDocument/didSave | 8.33 sec | 10.95 sec |
25+
26+
27+
Response time metrics in seconds with `max_jobs = 2`. coala-vs-code does
28+
not support any other modes other than a default `max_jobs = 1` equivalent.
29+
30+
| job | request type | time |
31+
| --- | -------------------------------------------- | --------- |
32+
| | initialize | 0.03 sec |
33+
| J1 | `resources/css/404.css` textDocument/didOpen | 11.03 sec |
34+
| J1 | `index.html` textDocument/didOpen | 15.65 sec |
35+
| J2 | `resources/css/404.css` textDocument/didSave | 5.08 sec |
36+
| J2 | `index.html` textDocument/didSave | 8.40 sec |
37+
38+
39+
Response time metrics in seconds with `max_jobs = 3`.
40+
41+
| job | request type | time |
42+
| --- | --------------------------------------------------- | -------- |
43+
| | initialize | 0.03 sec |
44+
| J1 | `resources/css/404.css` textDocument/didSave | 5.15 sec |
45+
| J1 | `index.html` textDocument/didOpen | 8.45 sec |
46+
| J2 | `resources/css/404.css` textDocument/didSave | 5.12 sec |
47+
| J2 | `resources/css/style.css` textDocument/didSave | 4.57 sec |
48+
| J2 | `index.html` textDocument/didSave | 8.65 sec |
49+
50+
### Graphical Representation
51+
![Graph](./docs/images/perf-phase-1.png)

0 commit comments

Comments
 (0)