use blog_target_cpu::*;
use criterion::{criterion_group, criterion_main, Criterion};
use rand::distributions::Standard;
use rand::prelude::*;
use std::default::Default;

fn prepare_data(width: usize, height: usize) -> (Vec<u8>, Vec<RGBA32>, Vec<RGBA32>) {
    let samples = width * height;
    let palette = {
        let mut p = Vec::new();
        let mut i = 0u8;