← Back

WebAssembly pipeline vs native video decoding Benchmark

In this benchmark, we decode as fast as possible the ogg file trailer_1080p.ogg using a Wasm-based decoding pipeline and we compare it with a native browser decoding peformance (where supported).

Decoding 1080p theora video using Webassembly pipeline

We decode the ogg file trailer_1080p.ogg that contains a theora video stream and a vorbis audio stream using the universal canvas tag :

<canvas is="universal-canvas_1" data-url="../test_sequences/trailer_1080p.ogg" using="solver_1"
        with="ogg_1;vorbis_1;theora_1" > </canvas>

Performance of the Webassembly is calculated using painting on canvas without waiting for synchronization.

Display performances are attached to V1 (vout) and decoding performances to V1 (theoradec) :

Native video decoding performance on 1080p theora video

We decode as fast as possible the ogg file trailer_1080p.ogg using native decoding when available :

<video src="../test_sequences/trailer_1080p.ogg"> </video>

Specifications :

The specifications of the test sequence are :

Format Ogg
FileSize 27873937
Duration 33 sec
Overall BitRate 6757932
Video Theora
BitRate 6401458
FrameRate 24
Width 1920
Height 1080
FrameRate 25
FrameCount 825
StreamSize 26 MB
Audio Vorbis
BitRate 80000
Channels 2
SamplingRate 48000
StreamSize 329,9 kB