Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
perxis-go
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
perxis
perxis-go
Commits
197886fd
Commit
197886fd
authored
2 years ago
by
Alena Petraki
Browse files
Options
Downloads
Patches
Plain Diff
Убран bench.txt
parent
68e79749
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/expr/bench.txt
+0
-30
0 additions, 30 deletions
pkg/expr/bench.txt
with
0 additions
and
30 deletions
pkg/expr/bench.txt
deleted
100644 → 0
+
0
−
30
View file @
68e79749
------
BenchmarkConvertToMongo
------
Конвертация выражения expr `id in [ ...ids ]` в формат bson.
test 1:
Количество идентификаторов в фильтре: 10_000
Размер выражения: 230007b (0,2Mb)
goos: darwin
goarch: amd64
pkg: github.com/perxteam/perxis/pkg/expr
cpu: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
BenchmarkConvertToMongo-12 27 44312238 ns/op 13374293 B/op 81067 allocs/op
PASS
ok github.com/perxteam/perxis/pkg/expr 2.572s
test 2:
Количество идентификаторов в фильтре: 1_000_000
Размер выражения: 23000007b (21,9Mb)
goos: darwin
goarch: amd64
pkg: github.com/perxteam/perxis/pkg/expr
cpu: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
BenchmarkConvertToMongo-12 1 4142071283 ns/op 1064427296 B/op 7135952 allocs/op
PASS
ok github.com/perxteam/perxis/pkg/expr 4.646s
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment