forked from haiwan/sledge
parent
0f9b75d784
commit
bae018314f
@ -1,26 +1,46 @@
|
||||
|
||||
Summary:
|
||||
Total: 5.0283 secs
|
||||
Slowest: 0.0000 secs
|
||||
Fastest: 0.0000 secs
|
||||
Average: NaN secs
|
||||
Requests/sec: 51018.3313
|
||||
Total: 10.1989 secs
|
||||
Slowest: 0.2733 secs
|
||||
Fastest: 0.0142 secs
|
||||
Average: 0.2073 secs
|
||||
Requests/sec: 571.9239
|
||||
|
||||
Total data: 268318 bytes
|
||||
Size/request: 46 bytes
|
||||
|
||||
Response time histogram:
|
||||
0.014 [1] |
|
||||
0.040 [9] |
|
||||
0.066 [15] |
|
||||
0.092 [13] |
|
||||
0.118 [13] |
|
||||
0.144 [14] |
|
||||
0.170 [15] |
|
||||
0.196 [827] |■■■■■■■■
|
||||
0.222 [3956] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
|
||||
0.247 [943] |■■■■■■■■■■
|
||||
0.273 [27] |
|
||||
|
||||
|
||||
Latency distribution:
|
||||
10% in 0.1929 secs
|
||||
25% in 0.1991 secs
|
||||
50% in 0.2068 secs
|
||||
75% in 0.2167 secs
|
||||
90% in 0.2276 secs
|
||||
95% in 0.2334 secs
|
||||
99% in 0.2433 secs
|
||||
|
||||
Details (average, fastest, slowest):
|
||||
DNS+dialup: NaN secs, 0.0000 secs, 0.0000 secs
|
||||
DNS-lookup: NaN secs, 0.0000 secs, 0.0000 secs
|
||||
req write: NaN secs, 0.0000 secs, 0.0000 secs
|
||||
resp wait: NaN secs, 0.0000 secs, 0.0000 secs
|
||||
resp read: NaN secs, 0.0000 secs, 0.0000 secs
|
||||
DNS+dialup: 0.0004 secs, 0.0142 secs, 0.2733 secs
|
||||
DNS-lookup: 0.0000 secs, 0.0000 secs, 0.0000 secs
|
||||
req write: 0.0001 secs, 0.0000 secs, 0.0164 secs
|
||||
resp wait: 0.2063 secs, 0.0050 secs, 0.2712 secs
|
||||
resp read: 0.0001 secs, 0.0000 secs, 0.0148 secs
|
||||
|
||||
Status code distribution:
|
||||
[200] 5833 responses
|
||||
|
||||
|
||||
Error distribution:
|
||||
[256536] Post "http://127.0.0.1:10000": dial tcp 127.0.0.1:10000: connect: connection refused
|
||||
|
||||
|
Binary file not shown.
@ -0,0 +1,46 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
#define OUTPUT_BUFFER_SIZE (1024 * 5) // 5KB
|
||||
|
||||
int main() {
|
||||
char *data = (char *)malloc(10 * 1024); // Allocate 10KB
|
||||
if (!data) {
|
||||
fprintf(stderr, "Failed to allocate memory.\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
ssize_t bytesRead = read(STDIN_FILENO, data, 10 * 1024);
|
||||
if (bytesRead == -1) {
|
||||
fprintf(stderr, "Failed to read data from file.\n");
|
||||
free(data);
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Create a combined buffer to hold the output
|
||||
char *combined_output = malloc(2 * OUTPUT_BUFFER_SIZE + 50); // 50 extra bytes for text and safety
|
||||
if (!combined_output) {
|
||||
fprintf(stderr, "Failed to allocate memory for combined output.\n");
|
||||
free(data);
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Format the output in a single buffer
|
||||
int offset = sprintf(combined_output, "Buffer 1 (First 5KB): ");
|
||||
memcpy(combined_output + offset, data, OUTPUT_BUFFER_SIZE);
|
||||
offset += OUTPUT_BUFFER_SIZE;
|
||||
offset += sprintf(combined_output + offset, " Buffer 2 (Second 5KB): ");
|
||||
memcpy(combined_output + offset, data + OUTPUT_BUFFER_SIZE, OUTPUT_BUFFER_SIZE);
|
||||
|
||||
// Print everything in one go
|
||||
fwrite(combined_output, sizeof(char), offset + OUTPUT_BUFFER_SIZE, stdout);
|
||||
printf("\n");
|
||||
|
||||
// Clean up
|
||||
free(data);
|
||||
free(combined_output);
|
||||
|
||||
return 0;
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,44 @@
|
||||
Runtime Environment:
|
||||
CPU Speed: 2400 MHz
|
||||
Processor Speed: 2400 MHz
|
||||
RLIMIT_DATA: Infinite
|
||||
RLIMIT_NOFILE: 1048576 (Increased from 8192)
|
||||
Core Count: 8
|
||||
Listener core ID: 1
|
||||
First Worker core ID: 2
|
||||
Worker core count: 6
|
||||
Scheduler Policy: EDF
|
||||
Sigalrm Policy: BROADCAST
|
||||
Preemption: Enabled
|
||||
Quantum: 5000 us
|
||||
Sandbox Performance Log: /home/hai/sledge-old/runtime_sandbox_perf_log.log
|
||||
Starting listener thread
|
||||
Listener core thread: 7ffff7a006c0
|
||||
Starting 6 worker thread(s)
|
||||
C: 01, T: 0x7ffff7bfdd80, F: runtime_start_runtime_worker_threads>
|
||||
Sandboxing environment ready!
|
||||
|
||||
C: 01, T: 0x7ffff7bfdd80, F: module_new>
|
||||
Stack Size: 524288
|
||||
C: 01, T: 0x7ffff7bfdd80, F: module_new>
|
||||
Stack Size: 524288
|
||||
C: 01, T: 0x7ffff7bfdd80, F: module_new>
|
||||
Stack Size: 524288
|
||||
C: 01, T: 0x7ffff7bfdd80, F: module_new>
|
||||
Stack Size: 524288
|
||||
C: 03, T: 0x7ffff66006c0, F: current_sandbox_start>
|
||||
the ID 0 work2 pre_func_output is 10
|
||||
|
||||
|
||||
C: 02, T: 0x7ffff70006c0, F: current_sandbox_start>
|
||||
the ID 0 work3 pre_func_output is 10
|
||||
|
||||
|
||||
C: 02, T: 0x7ffff70006c0, F: current_sandbox_start>
|
||||
the ID (the output need to be merged) 0 work3 pre_func_output is 10
|
||||
|
||||
|
||||
C: 02, T: 0x7ffff70006c0, F: current_sandbox_start>
|
||||
the ID 0 work3 the merge_output is 10&10
|
||||
|
||||
|
Loading…
Reference in new issue