Skip to content

Commit bbff31d

Browse files
Sarthak | Updates the links in README
1 parent f63cd19 commit bbff31d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ The following command sends 100 requests per second per worker, over 10 TCP conn
9999

100100
2. **Are the workers implemented using goroutines?**
101101

102-
Yes, workers are implemented as cooperative goroutines. You can refer the code [here](https://github.com/SarthakMakhija/blast/blob/main/workers/worker.go).
102+
Yes, workers are implemented as cooperative goroutines. You can refer the code [here](https://github.com/SarthakMakhija/blast-core/blob/main/workers/worker.go).
103103

104104
3. **Can I create more connections than workers?**
105105

106106
No, you can not create more connections that workers. The relationship between the concurrency and the workers is simple: `concurrency % workers must be equal to zero`.
107107
This means, we can have 100 workers with 10 connections, where a group of 10 workers will share one connection.
108108

109-
You can refer the code [here](https://github.com/SarthakMakhija/blast/blob/main/workers/worker_group.go#L89).
109+
You can refer the code [here](https://github.com/SarthakMakhija/blast-core/blob/main/workers/worker_group.go#L77).
110110

111111
4. **My server takes a protobuf encoded byte slice. How do I pass the payload to blast?**
112112

@@ -134,14 +134,14 @@ The above code creates a protobuf encoded message and writes it to a file. The f
134134

135135
5. **blast provides a feature to read responses. How is response reading implemented?**
136136

137-
[ResponseReader](https://github.com/SarthakMakhija/blast/blob/main/report/response_reader.go) implements one goroutine per `net.Conn` to read responses from connections.
137+
[ResponseReader](https://github.com/SarthakMakhija/blast-core/blob/main/report/response_reader.go) implements one goroutine per `net.Conn` to read responses from connections.
138138
The goroutine keeps on reading from the connection, and tracks successful and failed reads. This design means that there will be 1M response reader goroutines if the user
139139
wants to establish 1M connections and read responses. To handle this, IO multiplexing + pool of ResponseReaders is planned in subsequent release.
140140

141141
6. **What is the significance of Rrs flag in blast?**
142142

143143
To read responses from connections, **blast** needs to know the response payload size. The flag `Rrs` signifies the size of the response payload in bytes (or the size of the
144-
byte slice) that [ResponseReader](https://github.com/SarthakMakhija/blast/blob/main/report/response_reader.go) should read in each iteration.
144+
byte slice) that [ResponseReader](https://github.com/SarthakMakhija/blast-core/blob/main/report/response_reader.go) should read in each iteration.
145145

146146
7. **What is the significance of Rrd flag in blast?**
147147

@@ -150,7 +150,7 @@ This flag helps in understanding the responsiveness of the target server. Let's
150150

151151
`./blast -c 100 -conn 100 -f ./payload -Rr -Rrs 19 -Rrd 10ms -Rtr 200000 localhost:8989`.
152152

153-
Here, `Rrd` is 10 milliseconds, this means that the `read` calls in [ResponseReader](https://github.com/SarthakMakhija/blast/blob/main/report/response_reader.go) will block for 10ms and
153+
Here, `Rrd` is 10 milliseconds, this means that the `read` calls in [ResponseReader](https://github.com/SarthakMakhija/blast-core/blob/main/report/response_reader.go) will block for 10ms and
154154
then timeout if there is no response on the underlying connection.
155155

156156
## References

0 commit comments

Comments
 (0)