File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -950,7 +950,7 @@ func TestPathLengthParametrization(t *testing.T) {
950
950
}
951
951
952
952
func BenchmarkToRasterizer (b * testing.B ) {
953
- res := DPMM (1.0 )
953
+ res := DPMM (0.5 )
954
954
data , err := os .ReadFile ("resources/netherlands.path" )
955
955
if err != nil {
956
956
panic (err )
@@ -985,7 +985,7 @@ func BenchmarkToRasterizer(b *testing.B) {
985
985
}
986
986
987
987
func BenchmarkToScanx (b * testing.B ) {
988
- res := DPMM (1.0 )
988
+ res := DPMM (0.5 )
989
989
data , err := os .ReadFile ("resources/netherlands.path" )
990
990
if err != nil {
991
991
panic (err )
@@ -1003,7 +1003,7 @@ func BenchmarkToScanx(b *testing.B) {
1003
1003
scanner := scanx .NewScanner (spanner , int (w ), int (h ))
1004
1004
1005
1005
scanner .SetColor (image .Black )
1006
- p .ToScanx (scanner , h * float64 ( res ) , res )
1006
+ p .ToScanx (scanner , h , res )
1007
1007
scanner .Draw ()
1008
1008
1009
1009
f , _ := os .Create ("ToScanx.png" )
@@ -1013,7 +1013,7 @@ func BenchmarkToScanx(b *testing.B) {
1013
1013
b .ResetTimer ()
1014
1014
for i := 0 ; i < b .N ; i ++ {
1015
1015
scanner .Clear ()
1016
- p .ToScanx (scanner , h * float64 ( res ) , res )
1016
+ p .ToScanx (scanner , h , res )
1017
1017
scanner .Draw ()
1018
1018
}
1019
1019
}
You can’t perform that action at this time.
0 commit comments