Skip to content

Commit

Permalink
1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
psemiletov committed Feb 8, 2023
1 parent 04ecdf1 commit 6bf99c0
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 52 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/cmake.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.5)

set (CMAKE_CXX_STANDARD 17)

project (logfilegen VERSION 1.1.0 LANGUAGES CXX)
project (logfilegen VERSION 1.2.0 LANGUAGES CXX)
add_definitions(-DVERSION_NUMBER="\\"${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}\\"")


Expand Down
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
+ --test
* params.max_log_files < 1 fix

+ DESTDIR support
+ $protocol //corrected
+ $server_protocol
Expand Down
15 changes: 4 additions & 11 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
What's new?
The new release is slighty faster. Two new macros were added: @meta and @seq. All of them are described at the documentation, here in a short - @meta allows to combine several macros into one, so we can use more than one macro at the simple (non-sequenced) variable value. And @seq can be used to use sequences at macro, as in the usual variable value.
This release adds a new, simplifier version of the benchmark: --test
A some sort of quick benchmark at full speed, using the default template for the current mode (nginx by default), one step of the log rotation; output to the temporary file at system's temporary directory (the output log will be deleted after all is done). Result, in lines per second, may vary depended on the randomizer engine work and use of gzip.
Useful to run on the clean installation, when we have no configs and templates yet.

Example 001:

$test=@seq:GET:PUT
$logstring=hello, $test

Example 002:

$test=@meta:foo (@str:12) bar (@int:12:16) (@ip)
$logstring=hello, $test
Fixes: log rotation queue minimal length is 1 now, i.e. one log file + at least one rotation file, if needed.
9 changes: 7 additions & 2 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ You can use following configuration variables:

**pure=boolean** - "true" or "false" (default). It "true", logfilegen just generate log lines at the memory without the actual file output.

**benchmark=boolean** - "true" or "false" (default). It "true", logfilegen run the generation at full speed, with the current template (or the default one if not provided), to the current log file. Results, in lines per second, may vary depended on the template complexity, randomizer engine work, use of gzip, log rotation settings.
**test=boolean** - "true" or "false" (default). A some sort of quick benchmark at full speed, using the default template for the current mode (nginx by default), one step of the log rotation; output to the temporary file at system's temporary directory (the output log will be deleted after all is done). Result, in lines per second, may vary depended on the randomizer engine work and use of gzip.

**benchmark=boolean** - "true" or "false" (default). It "true", logfilegen run the generation at full speed, with the current template (or the default one if not provided), to the current log file. Result, in lines per second, may vary depended on the template complexity, randomizer engine work, use of gzip, log rotation settings. Use ```benchmark``` instead of ```benchmark``` when you want to know the performance of some working template and config, on the given filesystem (```temp``` directory from ```test``` may have the performance different from the other disks or partitions).

**duration=integer** - how many seconds runs the lines gerenation cycle. If 0 (zero), cycle will run until break by Ctrl-C.

Expand Down Expand Up @@ -110,7 +112,10 @@ In thos case, the usual variable name must be prefoxed with ```LFG``` (shortened

**LFG_SIZE** - set **size**

**LFG_BENCHMARK** - set **size**
**LFG_BENCHMARK** - set **becnhmark**

**LFG_TEST** - set **test**



Example:
Expand Down
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


#ifndef VERSION_NUMBER
#define VERSION_NUMBER "1.1.0"
#define VERSION_NUMBER "1.2.0"
#endif


Expand Down

0 comments on commit 6bf99c0

Please sign in to comment.