Skip to content
Discussion options

You must be logged in to vote

I actually cannot reproduce as given. I tried your program and Cargo.toml on my aarch64 M2 mac mini and got this:

=== memchr search benchmark ===
memchr crate version: 2.7.6
Target: 2000 MB

Generated 2000 MB to file (4032502 products, 2097152288 bytes)
Generation took 2.2s
Mmap'd 2097152288 bytes

Needle: "sku": "SKU-0002097152" (len=23)
Needle at byte 1087983444 (51.9%)

---------------------------------------------------------------------------
Method                                            Position    Time (ms)
---------------------------------------------------------------------------
1. memchr first byte (fwd)                      1087983444    1037.3ms  (1.0x)
2. Finder default …

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@kotysoft
Comment options

@BurntSushi
Comment options

@kotysoft
Comment options

Answer selected by kotysoft
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@BurntSushi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants