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

experiment fast-json-stringify #222

Closed
wants to merge 1 commit into from
Closed

experiment fast-json-stringify #222

wants to merge 1 commit into from

Conversation

staltz
Copy link
Member

@staltz staltz commented Apr 5, 2021

I don't think this PR gives any benefit, but it was an old branch lying around locally and I thought of sharing it here in case it gives anyone some insight into something new.

@staltz staltz marked this pull request as draft April 5, 2021 08:43
@staltz staltz linked an issue Apr 5, 2021 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Apr 5, 2021

Benchmark results

Part Duration
add 1000 elements 303ms
Migrate (+db1) 8945ms
Migrate (alone) 4031ms
Migrate (+db1 +db2) 7194ms
Migrate (+db2) 3610ms
Migrate continuation (+db2) 1103ms
Memory usage without indexes 745.80 MB = 31.64 MB + etc
Initial indexing 1147ms
Initial indexing leveldb about-self 774ms
Initial indexing maxCpu=86 5406ms
Initial indexing compat 811ms
Two indexes updating concurrently 1246ms
key one initial 47ms
key two 3ms
key one again 2ms
reboot and key one again 45ms
latest root posts 637ms
latest posts 13ms
votes one initial 590ms
votes again 0ms
hasRoot 397ms
hasRoot again 1ms
author one posts 375ms
author two posts 65ms
dedicated author one posts 362ms
dedicated author one posts again 1ms
Maximum memory usage 830.81 MB = 42.66 MB + etc
Indexes folder size 12.23mb

@staltz
Copy link
Member Author

staltz commented Mar 2, 2023

Bye bye old PR

@staltz staltz closed this Mar 2, 2023
@staltz staltz deleted the level-indexes-perf branch March 2, 2023 08:32
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.

Try fast-json-stringify in level indexes
1 participant