Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Decibel and Gain conversion techniques
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Browser:
Chrome 137
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
10 months ago
Test name
Executions per second
dB to Gain standard
263145568.0 Ops/sec
dB to Gain optimized
265212768.0 Ops/sec
Gain to dB standard
286832992.0 Ops/sec
Gain to dB optimized
272398272.0 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
function dbToGain(db) { return Math.pow(10, db / 20); } function dbToGainOptimized(db) { return Math.exp((0.1151292546497022842008995727342) * db); } function gainToDb(gain) { return 20 * Math.log10(gain); } function gainToDbOptimized(gain) { return 8.6858896380650365530225783783335 * Math.log(gain); }
Tests:
dB to Gain standard
dbToGain(3);
dB to Gain optimized
dbToGainOptimized(3);
Gain to dB standard
gainToDb(3);
Gain to dB optimized
gainToDbOptimized(3);