and the conclusion is.....

Encoding got a decent bit faster.

whilst, decoding got noticeably slower.

earlier on i had already found conversion to int16 was a lot slower than 
int32, so I’d was already up.



/*  Hal3 Sun Jun 19 00:53:10 BST 2016  go version go1.7beta2 linux/amd64

BenchmarkPCM8bitEncode-2        2000000000             1.16 ns/op
BenchmarkPCM8bitDecode-2        2000000000             0.77 ns/op
BenchmarkPCM16bitEncode-2       2000000000             0.83 ns/op
BenchmarkPCM16bitDecode-2       2000000000             1.38 ns/op
BenchmarkPCM24bitEncode-2       2000000000             0.83 ns/op
BenchmarkPCM24bitDecode-2       2000000000             1.73 ns/op
BenchmarkPCM32bitEncode-2       2000000000             0.83 ns/op
BenchmarkPCM32bitDecode-2       1000000000             2.31 ns/op
PASS
ok      _/home/simon/Dropbox/github/working/signals    18.388s
Sun Jun 19 00:53:30 BST 2016 */
/*  Hal3 Sun Jun 19 00:53:41 BST 2016 go version go1.5.1 linux/amd64
PASS
BenchmarkPCM8bitEncode-2     2000000000             0.77 ns/op
BenchmarkPCM8bitDecode-2     2000000000             1.17 ns/op
BenchmarkPCM16bitEncode-2    2000000000             1.16 ns/op
BenchmarkPCM16bitDecode-2    2000000000             1.22 ns/op
BenchmarkPCM24bitEncode-2    2000000000             1.93 ns/op
BenchmarkPCM24bitDecode-2    2000000000             1.60 ns/op
BenchmarkPCM32bitEncode-2    2000000000             1.94 ns/op
BenchmarkPCM32bitDecode-2    2000000000             1.93 ns/op
ok      _/home/simon/Dropbox/github/working/signals    24.686s
Sun Jun 19 00:54:08 BST 2016 */

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to