From 47ad287bc936e4c152e7aa7f1a78095002961108 Mon Sep 17 00:00:00 2001 From: treeform Date: Sat, 9 Jul 2022 15:31:51 -0700 Subject: [PATCH] Fix long tags in benchmark images, benchmark_ -> bench_ --- ...{benchmark_blends.nim => bench_blends.nim} | 0 .../{benchmark_fonts.nim => bench_fonts.nim} | 0 tests/{benchmark_gif.nim => bench_gif.nim} | 0 ...{benchmark_images.nim => bench_images.nim} | 0 ..._images_draw.nim => bench_images_draw.nim} | 24 +++++++++---------- tests/{benchmark_jpeg.nim => bench_jpeg.nim} | 0 .../{benchmark_masks.nim => bench_masks.nim} | 0 ...{benchmark_paints.nim => bench_paints.nim} | 0 .../{benchmark_paths.nim => bench_paths.nim} | 0 tests/{benchmark_png.nim => bench_png.nim} | 0 tests/{benchmark_qoi.nim => bench_qoi.nim} | 0 tests/{benchmark_svg.nim => bench_svg.nim} | 0 12 files changed, 12 insertions(+), 12 deletions(-) rename tests/{benchmark_blends.nim => bench_blends.nim} (100%) rename tests/{benchmark_fonts.nim => bench_fonts.nim} (100%) rename tests/{benchmark_gif.nim => bench_gif.nim} (100%) rename tests/{benchmark_images.nim => bench_images.nim} (100%) rename tests/{benchmark_images_draw.nim => bench_images_draw.nim} (85%) rename tests/{benchmark_jpeg.nim => bench_jpeg.nim} (100%) rename tests/{benchmark_masks.nim => bench_masks.nim} (100%) rename tests/{benchmark_paints.nim => bench_paints.nim} (100%) rename tests/{benchmark_paths.nim => bench_paths.nim} (100%) rename tests/{benchmark_png.nim => bench_png.nim} (100%) rename tests/{benchmark_qoi.nim => bench_qoi.nim} (100%) rename tests/{benchmark_svg.nim => bench_svg.nim} (100%) diff --git a/tests/benchmark_blends.nim b/tests/bench_blends.nim similarity index 100% rename from tests/benchmark_blends.nim rename to tests/bench_blends.nim diff --git a/tests/benchmark_fonts.nim b/tests/bench_fonts.nim similarity index 100% rename from tests/benchmark_fonts.nim rename to tests/bench_fonts.nim diff --git a/tests/benchmark_gif.nim b/tests/bench_gif.nim similarity index 100% rename from tests/benchmark_gif.nim rename to tests/bench_gif.nim diff --git a/tests/benchmark_images.nim b/tests/bench_images.nim similarity index 100% rename from tests/benchmark_images.nim rename to tests/bench_images.nim diff --git a/tests/benchmark_images_draw.nim b/tests/bench_images_draw.nim similarity index 85% rename from tests/benchmark_images_draw.nim rename to tests/bench_images_draw.nim index 9f5c637..699c5e7 100644 --- a/tests/benchmark_images_draw.nim +++ b/tests/bench_images_draw.nim @@ -7,7 +7,7 @@ block: a.fill(rgba(255, 0, 0, 255)) b.fill(rgba(0, 255, 0, 255)) - timeIt "draw small-on-big NormalBlend": + timeIt "small-on-big NormalBlend": a.draw(b, translate(vec2(25, 25)), NormalBlend) keep(b) @@ -18,7 +18,7 @@ block: a.fill(rgba(255, 0, 0, 255)) b.fill(rgba(0, 255, 0, 255)) - timeIt "draw small-on-big Smooth NormalBlend": + timeIt "small-on-big Smooth NormalBlend": a.draw(b, translate(vec2(25.2, 25.2)), NormalBlend) keep(b) @@ -29,7 +29,7 @@ block: a.fill(rgba(255, 0, 0, 255)) b.fill(rgba(0, 255, 0, 255)) - timeIt "draw big-on-bigger NormalBlend": + timeIt "big-on-bigger NormalBlend": a.draw(b, translate(vec2(25, 25)), NormalBlend) keep(b) @@ -40,7 +40,7 @@ block: a.fill(rgba(255, 0, 0, 255)) b.fill(rgba(0, 255, 0, 255)) - timeIt "draw [scale 0.5]": + timeIt "scale x0.5": a.draw(b, translate(vec2(25, 25)) * scale(vec2(0.5, 0.5)), NormalBlend) keep(b) @@ -51,7 +51,7 @@ block: a.fill(rgba(255, 0, 0, 255)) b.fill(rgba(0, 255, 0, 255)) - timeIt "draw [scale 2]": + timeIt "scale x2": a.draw(b, translate(vec2(25, 25)) * scale(vec2(2, 2)), NormalBlend) keep(b) @@ -62,7 +62,7 @@ block: a.fill(rgba(255, 0, 0, 255)) b.fill(rgba(0, rand(255).uint8, 0, 255)) - timeIt "draw Smooth [x translate]": + timeIt "smooth x-translate": a.draw(b, translate(vec2(25.2, 0)), NormalBlend) keep(b) @@ -73,7 +73,7 @@ block: a.fill(rgba(255, 0, 0, 255)) b.fill(rgba(0, rand(255).uint8, 0, 255)) - timeIt "draw Smooth [y translate]": + timeIt "smooth y-translate": a.draw(b, translate(vec2(0, 25.2)), NormalBlend) keep(b) @@ -84,7 +84,7 @@ block: a.fill(rgba(255, 0, 0, 255)) b.fill(rgba(0, rand(255).uint8, 0, 255)) - timeIt "draw Smooth [x + y translate]": + timeIt "smooth translate": a.draw(b, translate(vec2(25.2, 25.2)), NormalBlend) keep(b) @@ -95,7 +95,7 @@ block: a.fill(rgba(255, 0, 0, 255)) b.fill(rgba(0, rand(255).uint8, 0, 255)) - timeIt "draw Smooth [rotate 45 deg]": + timeIt "smooth rotate 45": a.draw(b, translate(vec2(0, 500)) * rotate(toRadians(45)), NormalBlend) keep(b) @@ -106,7 +106,7 @@ block: a.fill(rgba(255, 0, 0, 255)) b.fill(rand(255).uint8) - timeIt "draw mask Smooth [rotate 45 deg]": + timeIt "mask smooth rotate 45 deg": a.draw(b, translate(vec2(0, 500)) * rotate(toRadians(45)), NormalBlend) keep(b) @@ -115,7 +115,7 @@ block: a = newImage(100, 100) b = newImage(50, 50) - timeIt "shadow (no offset)": + timeIt "shadow no offset": b.fill(rgba(0, 0, 0, 255)) a.draw(b, translate(vec2(25, 25))) @@ -132,7 +132,7 @@ block: a = newImage(100, 100) b = newImage(50, 50) - timeIt "shadow (with offset)": + timeIt "shadow with offset": b.fill(rgba(0, 0, 0, 255)) a.draw(b, translate(vec2(25, 25))) diff --git a/tests/benchmark_jpeg.nim b/tests/bench_jpeg.nim similarity index 100% rename from tests/benchmark_jpeg.nim rename to tests/bench_jpeg.nim diff --git a/tests/benchmark_masks.nim b/tests/bench_masks.nim similarity index 100% rename from tests/benchmark_masks.nim rename to tests/bench_masks.nim diff --git a/tests/benchmark_paints.nim b/tests/bench_paints.nim similarity index 100% rename from tests/benchmark_paints.nim rename to tests/bench_paints.nim diff --git a/tests/benchmark_paths.nim b/tests/bench_paths.nim similarity index 100% rename from tests/benchmark_paths.nim rename to tests/bench_paths.nim diff --git a/tests/benchmark_png.nim b/tests/bench_png.nim similarity index 100% rename from tests/benchmark_png.nim rename to tests/bench_png.nim diff --git a/tests/benchmark_qoi.nim b/tests/bench_qoi.nim similarity index 100% rename from tests/benchmark_qoi.nim rename to tests/bench_qoi.nim diff --git a/tests/benchmark_svg.nim b/tests/bench_svg.nim similarity index 100% rename from tests/benchmark_svg.nim rename to tests/bench_svg.nim