Skip to content

Commit

Permalink
Add benchmark test
Browse files Browse the repository at this point in the history
  • Loading branch information
martinscholz83 committed Apr 7, 2017
1 parent 94dca42 commit f5f4b4c
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 0 deletions.
6 changes: 6 additions & 0 deletions filebeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,12 @@ The name of the Beat sending the log messages. If the Beat name is set in the co
The hostname as returned by the operating system on which the Beat is running.
[float]
=== beat.timezone
The timezone as returned by the operating system on which the Beat is running.
[float]
=== beat.version
Expand Down
6 changes: 6 additions & 0 deletions heartbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ The name of the Beat sending the log messages. If the Beat name is set in the co
The hostname as returned by the operating system on which the Beat is running.
[float]
=== beat.timezone
The timezone as returned by the operating system on which the Beat is running.
[float]
=== beat.version
Expand Down
15 changes: 15 additions & 0 deletions libbeat/processors/add_locale/add_locale_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,18 @@ func getActualValue(t *testing.T, config *common.Config, input common.MapStr) co

return actual
}

func BenchmarkConstruct(b *testing.B) {
var testConfig = common.NewConfig()

input := common.MapStr{}

p, err := newAddLocale(*testConfig)
if err != nil {
b.Fatal(err)
}

for i := 0; i < b.N; i++ {
_, err = p.Run(input)
}
}
6 changes: 6 additions & 0 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,12 @@ The name of the Beat sending the log messages. If the Beat name is set in the co
The hostname as returned by the operating system on which the Beat is running.
[float]
=== beat.timezone
The timezone as returned by the operating system on which the Beat is running.
[float]
=== beat.version
Expand Down
6 changes: 6 additions & 0 deletions packetbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,12 @@ The name of the Beat sending the log messages. If the Beat name is set in the co
The hostname as returned by the operating system on which the Beat is running.
[float]
=== beat.timezone
The timezone as returned by the operating system on which the Beat is running.
[float]
=== beat.version
Expand Down
6 changes: 6 additions & 0 deletions winlogbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ The name of the Beat sending the log messages. If the Beat name is set in the co
The hostname as returned by the operating system on which the Beat is running.
[float]
=== beat.timezone
The timezone as returned by the operating system on which the Beat is running.
[float]
=== beat.version
Expand Down

0 comments on commit f5f4b4c

Please sign in to comment.