Skip to content

adrian17/rust-byteorder-benchmarks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Results:

Every iteration calls the function 10k times, so time per call is (ns/iter)/10000.

// normal usage of cursor+byteorder
test tests::bench_byteorder_cursor           ... bench:      75,715 ns/iter (+/- 5,123)

// manually inlined range checks
test tests::bench_byteorder_cursor_v2        ... bench:      53,481 ns/iter (+/- 2,844)

// manually inlined range checks + removed implicit range checks with `unsafe`
test tests::bench_byteorder_cursor_v2_unsafe ... bench:      41,539 ns/iter (+/- 2,740)


// normal usage of slice+byteorder
test tests::bench_byteorder_slice            ... bench:      84,032 ns/iter (+/- 3,409)

// manually inlined range checks
test tests::bench_byteorder_slice_v2         ... bench:      49,097 ns/iter (+/- 2,885)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages