Skip to content

Benchmarking std::f32 inverse square root and Quake III Arena inverse square root.

Notifications You must be signed in to change notification settings

teais4u/quake3-inv-sqrt-benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quake3-inv-sqrt-benchmark (0x5F3759DF)

Benchmarking std::f32 inverse square root and Quake III Arena inverse square root.

Quake III Arena Q_rsqrt source code

Wikipedia

Environment

CPU: Intel i9-9880H (16) @ 2.30GHz

rustc 1.53.0 (53cb7b09b 2021-06-17)

Run

cargo bench

Results

Benchmarked on loop from 0 to LIMIT.

const LIMIT: i32 = 1000000;

The numbers are expressed in US notation.

Name Median Deviation
tests::bench_quake 936,146 ns/iter 93,941 ns/iter
tests::bench_std 1,352,039 ns/iter 127,779 ns/iter

About

Benchmarking std::f32 inverse square root and Quake III Arena inverse square root.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages