Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ssvb
Created February 17, 2020 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssvb/ba785950cd8d931e2db034f7c70a1993 to your computer and use it in GitHub Desktop.
Save ssvb/ba785950cd8d931e2db034f7c70a1993 to your computer and use it in GitHub Desktop.

Little endian MIPS74K @480MHz without FPU, GCC 7.2.0

Without DSP r2:

# JSIMD_FORCENONE=1 ./tjbench-static test-image.ppm 75 -fastdct

Using fastest DCT/IDCT algorithm

>>>>>  BGR (Top-down) <--> JPEG GRAY Q75  <<<<<

Image size: 2592 x 1944
Compress      --> Frame rate:         0.462385 fps
                  Output image size:  673129 bytes
                  Compression ratio:  22.457128:1
                  Throughput:         2.329887 Megapixels/sec
                  Output bit stream:  2.489957 Megabits/sec
Reference image written to test-image_GRAY_Q75.jpg
Decompress    --> Frame rate:         0.919445 fps
                  Throughput:         4.632942 Megapixels/sec
Compression error written to test-image_GRAY_Q75_full-err.ppm.

>>>>>  BGR (Top-down) <--> JPEG 4:2:0 Q75  <<<<<

Image size: 2592 x 1944
Compress      --> Frame rate:         0.285719 fps
                  Output image size:  756896 bytes
                  Compression ratio:  19.971758:1
                  Throughput:         1.439695 Megapixels/sec
                  Output bit stream:  1.730077 Megabits/sec
Reference image written to test-image_420_Q75.jpg
Decompress    --> Frame rate:         0.407663 fps
                  Throughput:         2.054152 Megapixels/sec
Compression error written to test-image_420_Q75_full-err.ppm.

>>>>>  BGR (Top-down) <--> JPEG 4:2:2 Q75  <<<<<

Image size: 2592 x 1944
Compress      --> Frame rate:         0.238334 fps
                  Output image size:  880889 bytes
                  Compression ratio:  17.160555:1
                  Throughput:         1.200928 Megapixels/sec
                  Output bit stream:  1.679565 Megabits/sec
Reference image written to test-image_422_Q75.jpg
Decompress    --> Frame rate:         0.343107 fps
                  Throughput:         1.728864 Megapixels/sec
Compression error written to test-image_422_Q75_full-err.ppm.

>>>>>  BGR (Top-down) <--> JPEG 4:4:4 Q75  <<<<<

Image size: 2592 x 1944
Compress      --> Frame rate:         0.188371 fps
                  Output image size:  976234 bytes
                  Compression ratio:  15.484550:1
                  Throughput:         0.949171 Megapixels/sec
                  Output bit stream:  1.471151 Megabits/sec
Reference image written to test-image_444_Q75.jpg
Decompress    --> Frame rate:         0.347561 fps
                  Throughput:         1.751307 Megapixels/sec
Compression error written to test-image_444_Q75_full-err.ppm.

With DSP r2

# ./tjbench-static test-image.ppm 75 -fastdct

Using fastest DCT/IDCT algorithm

>>>>>  BGR (Top-down) <--> JPEG GRAY Q75  <<<<<

Image size: 2592 x 1944
Compress      --> Frame rate:         0.568756 fps
                  Output image size:  673129 bytes
                  Compression ratio:  22.457128:1
                  Throughput:         2.865873 Megapixels/sec
                  Output bit stream:  3.062767 Megabits/sec
Reference image written to test-image_GRAY_Q75.jpg
Decompress    --> Frame rate:         1.171622 fps
                  Throughput:         5.903626 Megapixels/sec
Compression error written to test-image_GRAY_Q75_full-err.ppm.

>>>>>  BGR (Top-down) <--> JPEG 4:2:0 Q75  <<<<<

Image size: 2592 x 1944
Compress      --> Frame rate:         0.343179 fps
                  Output image size:  756896 bytes
                  Compression ratio:  19.971758:1
                  Throughput:         1.729228 Megapixels/sec
                  Output bit stream:  2.078007 Megabits/sec
Reference image written to test-image_420_Q75.jpg
Decompress    --> Frame rate:         0.503371 fps
                  Throughput:         2.536409 Megapixels/sec
Compression error written to test-image_420_Q75_full-err.ppm.

>>>>>  BGR (Top-down) <--> JPEG 4:2:2 Q75  <<<<<

Image size: 2592 x 1944
Compress      --> Frame rate:         0.281814 fps
                  Output image size:  880889 bytes
                  Compression ratio:  17.160555:1
                  Throughput:         1.420020 Megapixels/sec
                  Output bit stream:  1.985978 Megabits/sec
Reference image written to test-image_422_Q75.jpg
Decompress    --> Frame rate:         0.471297 fps
                  Throughput:         2.374793 Megapixels/sec
Compression error written to test-image_422_Q75_full-err.ppm.

>>>>>  BGR (Top-down) <--> JPEG 4:4:4 Q75  <<<<<

Image size: 2592 x 1944
Compress      --> Frame rate:         0.222632 fps
                  Output image size:  976234 bytes
                  Compression ratio:  15.484550:1
                  Throughput:         1.121808 Megapixels/sec
                  Output bit stream:  1.738727 Megabits/sec
Reference image written to test-image_444_Q75.jpg
Decompress    --> Frame rate:         0.448789 fps
                  Throughput:         2.261380 Megapixels/sec
Compression error written to test-image_444_Q75_full-err.ppm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment