Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(34)

Delta Between Two Patch Sets: src/pkg/image/draw/bench_test.go

Issue 5132048: code review 5132048: image: spin off a new color package out of the image pa... (Closed)
Left Patch Set: diff -r 087a4bd61f20 https://go.googlecode.com/hg/ Created 13 years, 5 months ago
Right Patch Set: diff -r e144a6dec55e https://go.googlecode.com/hg/ Created 13 years, 5 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/image/decode_test.go ('k') | src/pkg/image/draw/draw.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // Copyright 2011 The Go Authors. All rights reserved. 1 // Copyright 2011 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 package draw 5 package draw
6 6
7 import ( 7 import (
8 "color"
9 "image" 8 "image"
9 "image/color"
10 "image/ycbcr" 10 "image/ycbcr"
11 "testing" 11 "testing"
12 ) 12 )
13 13
14 const ( 14 const (
15 dstw, dsth = 640, 480 15 dstw, dsth = 640, 480
16 srcw, srch = 400, 300 16 srcw, srch = 400, 300
17 ) 17 )
18 18
19 // bench benchmarks drawing src and mask images onto a dst image with the 19 // bench benchmarks drawing src and mask images onto a dst image with the
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 bench(b, color.RGBA64Model, color.RGBA64Model, color.AlphaModel, Over) 198 bench(b, color.RGBA64Model, color.RGBA64Model, color.AlphaModel, Over)
199 } 199 }
200 200
201 func BenchmarkGenericSrc(b *testing.B) { 201 func BenchmarkGenericSrc(b *testing.B) {
202 bench(b, color.RGBA64Model, color.RGBA64Model, nil, Src) 202 bench(b, color.RGBA64Model, color.RGBA64Model, nil, Src)
203 } 203 }
204 204
205 func BenchmarkGenericMaskSrc(b *testing.B) { 205 func BenchmarkGenericMaskSrc(b *testing.B) {
206 bench(b, color.RGBA64Model, color.RGBA64Model, color.AlphaModel, Src) 206 bench(b, color.RGBA64Model, color.RGBA64Model, color.AlphaModel, Src)
207 } 207 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b