Skip to content

Map strings without encoding/decoding them - #39

Merged
JasperGeurtz merged 2 commits into
developfrom
fasterGetPutString
Aug 11, 2019
Merged

JasperGeurtz merged 2 commits into
developfrom
fasterGetPutString

Conversation

@Bytekeeper

@Bytekeeper Bytekeeper commented Aug 10, 2019 •

Copy link
Copy Markdown
Collaborator

Although Travis build-environment might differ per run, which would skew benchmark results a lot, I think comparing the op/s from this branch are to the base branch is still "ok":
This branch:

Benchmark                            Mode  Cnt          Score          Error  Units
ClientDataBenchmark.addString       thrpt    9    1221113.088 ±    26604.606  ops/s
ClientDataBenchmark.getString       thrpt    9     720786.947 ±    15406.933  ops/s
ClientDataBenchmark.reference       thrpt    4  373790491.499 ±  1494879.446  ops/s

develop branch:

Benchmark                            Mode  Cnt          Score         Error  Units
ClientDataBenchmark.addString       thrpt    9     577234.152 ±   29329.252  ops/s
ClientDataBenchmark.getString       thrpt    9     213828.911 ±    2650.206  ops/s
ClientDataBenchmark.reference       thrpt    4  373824888.150 ± 2797797.599  ops/s

@JasperGeurtz

Copy link
Copy Markdown
Collaborator

Cool! How does the initial approach using copyMemory (but without the re-encoding) compare to this?

@Bytekeeper

Bytekeeper commented Aug 11, 2019 •

Copy link
Copy Markdown
Collaborator Author

Cool! How does the initial approach using copyMemory (but without the re-encoding) compare to this?

It's not encoding, but decoding, which is quite slow due to handling more cases. I can revert the change in develop if you want to see. But the current state of develop is a bit faster than the original one, so I don't see benefits there.

@JasperGeurtz
JasperGeurtz merged commit 734634c into develop Aug 11, 2019
@JasperGeurtz
JasperGeurtz deleted the fasterGetPutString branch August 16, 2019 18:12
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.

2 participants