Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a benchmark for scrolling through a large filtered table #138

Merged
merged 1 commit into from
Mar 17, 2023

Conversation

Evertras
Copy link
Owner

For ensuring #135 is performant. Results seemed to be extremely quick, and this was confirmed by a locally modified example that had 40,000 rows and allowed filtering, with a pagination size of 10 which was also performant.

goos: darwin
goarch: amd64
pkg: github.com/evertras/bubble-table/table
cpu: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
BenchmarkPlain3x3TableView-12              23631             50259 ns/op           13334 B/op        348 allocs/op
BenchmarkPlainTableViews/1x1-12           241778              4908 ns/op            1824 B/op         35 allocs/op
BenchmarkPlainTableViews/10x1-12           23725             50341 ns/op           12904 B/op        282 allocs/op
BenchmarkPlainTableViews/1x5-12            65024             18290 ns/op            6506 B/op        142 allocs/op
BenchmarkPlainTableViews/1x20-12           20710             58949 ns/op           33600 B/op        490 allocs/op
BenchmarkPlainTableViews/9x20-12            2672            439013 ns/op          165846 B/op       3843 allocs/op
BenchmarkPlainTableViews/9x50-12            1144           1038650 ns/op          464303 B/op       9426 allocs/op
BenchmarkFilteredScrolling-12            1724365               692.5 ns/op          2052 B/op          2 allocs/op
BenchmarkSelectedRows-12                   64131             19091 ns/op           84192 B/op         11 allocs/op
PASS
ok      github.com/evertras/bubble-table/table  14.091s

@Evertras Evertras merged commit 434f968 into main Mar 17, 2023
@Evertras Evertras deleted the benchmark-large-table-perf branch March 17, 2023 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant