mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-07 21:48:13 -08:00
commit
8713389fd5
1 changed files with 6 additions and 6 deletions
|
|
@ -527,7 +527,7 @@ func BenchmarkResizePng(b *testing.B) {
|
||||||
runBenchmarkResize("test.png", options, b)
|
runBenchmarkResize("test.png", options, b)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkResizeWebP(b *testing.B) {
|
func BenchmarkResizeWebp(b *testing.B) {
|
||||||
options := Options{
|
options := Options{
|
||||||
Width: 200,
|
Width: 200,
|
||||||
Height: 200,
|
Height: 200,
|
||||||
|
|
@ -566,7 +566,7 @@ func BenchmarkCropPng(b *testing.B) {
|
||||||
runBenchmarkResize("test.png", options, b)
|
runBenchmarkResize("test.png", options, b)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCropWebP(b *testing.B) {
|
func BenchmarkCropWebp(b *testing.B) {
|
||||||
options := Options{
|
options := Options{
|
||||||
Width: 800,
|
Width: 800,
|
||||||
Height: 600,
|
Height: 600,
|
||||||
|
|
@ -634,7 +634,7 @@ func BenchmarkWatermarkJpeg(b *testing.B) {
|
||||||
runBenchmarkResize("test.jpg", options, b)
|
runBenchmarkResize("test.jpg", options, b)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkWatermarPng(b *testing.B) {
|
func BenchmarkWatermarkPng(b *testing.B) {
|
||||||
options := Options{
|
options := Options{
|
||||||
Watermark: Watermark{
|
Watermark: Watermark{
|
||||||
Text: "Chuck Norris (c) 2315",
|
Text: "Chuck Norris (c) 2315",
|
||||||
|
|
@ -649,7 +649,7 @@ func BenchmarkWatermarPng(b *testing.B) {
|
||||||
runBenchmarkResize("test.png", options, b)
|
runBenchmarkResize("test.png", options, b)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkWatermarWebp(b *testing.B) {
|
func BenchmarkWatermarkWebp(b *testing.B) {
|
||||||
options := Options{
|
options := Options{
|
||||||
Watermark: Watermark{
|
Watermark: Watermark{
|
||||||
Text: "Chuck Norris (c) 2315",
|
Text: "Chuck Norris (c) 2315",
|
||||||
|
|
@ -677,7 +677,7 @@ func BenchmarkWatermarkImageJpeg(b *testing.B) {
|
||||||
runBenchmarkResize("test.jpg", options, b)
|
runBenchmarkResize("test.jpg", options, b)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkWatermarImagePng(b *testing.B) {
|
func BenchmarkWatermarkImagePng(b *testing.B) {
|
||||||
watermark := readFile("transparent.png")
|
watermark := readFile("transparent.png")
|
||||||
options := Options{
|
options := Options{
|
||||||
WatermarkImage: WatermarkImage{
|
WatermarkImage: WatermarkImage{
|
||||||
|
|
@ -690,7 +690,7 @@ func BenchmarkWatermarImagePng(b *testing.B) {
|
||||||
runBenchmarkResize("test.png", options, b)
|
runBenchmarkResize("test.png", options, b)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkWatermarImageWebp(b *testing.B) {
|
func BenchmarkWatermarkImageWebp(b *testing.B) {
|
||||||
watermark := readFile("transparent.png")
|
watermark := readFile("transparent.png")
|
||||||
options := Options{
|
options := Options{
|
||||||
WatermarkImage: WatermarkImage{
|
WatermarkImage: WatermarkImage{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue