Updated benchmarks

This commit is contained in:
Domingo Dirutigliano
2025-02-05 18:43:04 +01:00
parent 47d0254c37
commit 1f9bd38ebf
8 changed files with 3 additions and 207 deletions

View File

@@ -2,7 +2,7 @@
## [GO BACK](../README.md) ## [GO BACK](../README.md)
Tests are a quick and dirty way to check if your modification to the backend code dind't break anything. Tests are a quick and dirty way to check if your modification to the backend code didn't break anything.
# Running all the tests # Running all the tests
If you are working on the same machine firegex is running on, you can just run run_tests.sh If you are working on the same machine firegex is running on, you can just run run_tests.sh
@@ -66,7 +66,7 @@ options:
--output-file OUTPUT_FILE, -o OUTPUT_FILE --output-file OUTPUT_FILE, -o OUTPUT_FILE
Output results csv file Output results csv file
--num-of-streams NUM_OF_STREAMS, -s NUM_OF_STREAMS --num-of-streams NUM_OF_STREAMS, -s NUM_OF_STREAMS
Output results csv file Number of concurrent streams
--mode {netfilter,proxy}, -m {netfilter,proxy} --mode {netfilter,proxy}, -m {netfilter,proxy}
Type of filtering Type of filtering
``` ```

View File

@@ -17,7 +17,7 @@ parser.add_argument("--password", "-p", type=str, required=True, help='Firegex p
parser.add_argument("--num-of-regexes", "-r", type=int, required=True, help='Number of regexes to benchmark with') parser.add_argument("--num-of-regexes", "-r", type=int, required=True, help='Number of regexes to benchmark with')
parser.add_argument("--duration", "-d", type=int, required=False, help='Duration of the Benchmark in seconds', default=5) parser.add_argument("--duration", "-d", type=int, required=False, help='Duration of the Benchmark in seconds', default=5)
parser.add_argument("--output-file", "-o", type=str, required=False, help='Output results csv file', default="benchmark.csv") parser.add_argument("--output-file", "-o", type=str, required=False, help='Output results csv file', default="benchmark.csv")
parser.add_argument("--num-of-streams", "-s", type=int, required=False, help='Output results csv file', default=1) parser.add_argument("--num-of-streams", "-s", type=int, required=False, help='Number of concurrent streams', default=1)
args = parser.parse_args() args = parser.parse_args()
sep() sep()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 KiB

After

Width:  |  Height:  |  Size: 379 KiB

View File

@@ -1,51 +0,0 @@
0,730.449
1,423.354
2,307.163
3,178.303
4,139.111
5,102.774
6,100.106
7,90.722
8,67.083
9,74.475
10,56.209
11,52.584
12,43.16
13,44.007
14,41.597
15,39.327
16,37.487
17,35.718
18,39.123
19,38.705
20,36.028
21,29.985
22,34.013
23,27.12
24,30.239
25,25.035
26,28.456
27,22.972
28,26.196
29,21.872
30,24.821
31,24.202
32,20.028
33,19.277
34,18.47
35,18.062
36,17.525
37,16.866
38,16.496
39,15.975
40,15.702
41,16.453
42,16.58
43,14.644
44,15.084
45,14.709
46,14.754
47,13.849
48,14.306
49,13.651
50,12.954
1 0 730.449
2 1 423.354
3 2 307.163
4 3 178.303
5 4 139.111
6 5 102.774
7 6 100.106
8 7 90.722
9 8 67.083
10 9 74.475
11 10 56.209
12 11 52.584
13 12 43.16
14 13 44.007
15 14 41.597
16 15 39.327
17 16 37.487
18 17 35.718
19 18 39.123
20 19 38.705
21 20 36.028
22 21 29.985
23 22 34.013
24 23 27.12
25 24 30.239
26 25 25.035
27 26 28.456
28 27 22.972
29 28 26.196
30 29 21.872
31 30 24.821
32 31 24.202
33 32 20.028
34 33 19.277
35 34 18.47
36 35 18.062
37 36 17.525
38 37 16.866
39 38 16.496
40 39 15.975
41 40 15.702
42 41 16.453
43 42 16.58
44 43 14.644
45 44 15.084
46 45 14.709
47 46 14.754
48 47 13.849
49 48 14.306
50 49 13.651
51 50 12.954

View File

@@ -1,51 +0,0 @@
0,684.571
1,437.246
2,304.309
3,165.995
4,119.457
5,119.739
6,86.956
7,75.407
8,67.627
9,74.272
10,56.015
11,52.046
12,57.892
13,44.381
14,48.976
15,39.528
16,36.876
17,35.459
18,38.16
19,39.09
20,36.559
21,26.947
22,32.913
23,27.321
24,30.553
25,27.91
26,28.058
27,21.006
28,23.086
29,18.766
30,19.982
31,20.54
32,20.093
33,19.02
34,18.207
35,20.907
36,17.078
37,16.372
38,16.342
39,15.942
40,15.874
41,16.941
42,15.426
43,15.551
44,14.26
45,15.867
46,14.913
47,14.164
48,14.059
49,13.457
50,12.727
1 0 684.571
2 1 437.246
3 2 304.309
4 3 165.995
5 4 119.457
6 5 119.739
7 6 86.956
8 7 75.407
9 8 67.627
10 9 74.272
11 10 56.015
12 11 52.046
13 12 57.892
14 13 44.381
15 14 48.976
16 15 39.528
17 16 36.876
18 17 35.459
19 18 38.16
20 19 39.09
21 20 36.559
22 21 26.947
23 22 32.913
24 23 27.321
25 24 30.553
26 25 27.91
27 26 28.058
28 27 21.006
29 28 23.086
30 29 18.766
31 30 19.982
32 31 20.54
33 32 20.093
34 33 19.02
35 34 18.207
36 35 20.907
37 36 17.078
38 37 16.372
39 38 16.342
40 39 15.942
41 40 15.874
42 41 16.941
43 42 15.426
44 43 15.551
45 44 14.26
46 45 15.867
47 46 14.913
48 47 14.164
49 48 14.059
50 49 13.457
51 50 12.727

View File

@@ -1,51 +0,0 @@
0,769.618
1,232.968
2,154.656
3,118.505
4,97.084
5,80.982
6,69.532
7,59.653
8,56.235
9,49.828
10,45.603
11,42.791
12,39.231
13,37.07
14,34.347
15,32.325
16,33.11
17,28.528
18,31.477
19,29.778
20,27.93
21,26.67
22,25.907
23,24.965
24,20.498
25,23.078
26,22.077
27,21.447
28,20.666
29,20.266
30,19.219
31,18.105
32,14.124
33,12.745
34,14.128
35,13.951
36,13.488
37,13.209
38,13.084
39,12.429
40,12.044
41,11.906
42,11.261
43,9.746
44,10.95
45,10.849
46,10.203
47,10.004
48,8.958
49,9.264
50,9.757
1 0 769.618
2 1 232.968
3 2 154.656
4 3 118.505
5 4 97.084
6 5 80.982
7 6 69.532
8 7 59.653
9 8 56.235
10 9 49.828
11 10 45.603
12 11 42.791
13 12 39.231
14 13 37.07
15 14 34.347
16 15 32.325
17 16 33.11
18 17 28.528
19 18 31.477
20 19 29.778
21 20 27.93
22 21 26.67
23 22 25.907
24 23 24.965
25 24 20.498
26 25 23.078
27 26 22.077
28 27 21.447
29 28 20.666
30 29 20.266
31 30 19.219
32 31 18.105
33 32 14.124
34 33 12.745
35 34 14.128
36 35 13.951
37 36 13.488
38 37 13.209
39 38 13.084
40 39 12.429
41 40 12.044
42 41 11.906
43 42 11.261
44 43 9.746
45 44 10.95
46 45 10.849
47 46 10.203
48 47 10.004
49 48 8.958
50 49 9.264
51 50 9.757

View File

@@ -1,51 +0,0 @@
0,803.99
1,207.751
2,107.739
3,86.386
4,69.129
5,57.75
6,50.605
7,44.745
8,39.99
9,36.051
10,33.123
11,30.457
12,27.997
13,26.202
14,24.211
15,22.663
16,34.662
17,19.939
18,31.032
19,29.072
20,28.32
21,27.248
22,25.699
23,24.453
24,24.184
25,22.719
26,22.098
27,21.046
28,20.256
29,19.72
30,19.099
31,12.525
32,18.613
33,10.502
34,17.247
35,16.858
36,16.479
37,16.075
38,15.444
39,15.381
40,14.867
41,14.378
42,14.067
43,13.679
44,13.27
45,13.177
46,12.926
47,12.72
48,12.585
49,12.301
50,11.851
1 0 803.99
2 1 207.751
3 2 107.739
4 3 86.386
5 4 69.129
6 5 57.75
7 6 50.605
8 7 44.745
9 8 39.99
10 9 36.051
11 10 33.123
12 11 30.457
13 12 27.997
14 13 26.202
15 14 24.211
16 15 22.663
17 16 34.662
18 17 19.939
19 18 31.032
20 19 29.072
21 20 28.32
22 21 27.248
23 22 25.699
24 23 24.453
25 24 24.184
26 25 22.719
27 26 22.098
28 27 21.046
29 28 20.256
30 29 19.72
31 30 19.099
32 31 12.525
33 32 18.613
34 33 10.502
35 34 17.247
36 35 16.858
37 36 16.479
38 37 16.075
39 38 15.444
40 39 15.381
41 40 14.867
42 41 14.378
43 42 14.067
44 43 13.679
45 44 13.27
46 45 13.177
47 46 12.926
48 47 12.72
49 48 12.585
50 49 12.301
51 50 11.851

Binary file not shown.