Skip to content

Hue Rotate like webkit taken from c++ 4 times faster with the same image and same systime!

Notifications You must be signed in to change notification settings

RedRoosterMobile/huerotate-like-webkit-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

huerotate-like-webkit-rust

  • Usage: hue-rotate 180 some-image-file.jpg some-output-file.png
# c++
someuser-MacBook-Pro:huerotatewebkit someuser$ time bin/huerotate 180 /Users/someuser/Pictures/out.png  test3.png
INFO:       FreeImage version: 3.17.0
LOADING:    /Users/someuser/Pictures/out.png
DIMENSIONS: 2605x2624
SUCCESS:    Image successfully processed to test3.png

real	0m1.753s
user	0m1.698s
sys	0m0.037s


# rust
someuser-MacBook-Pro:hue-rotate someuser$ time target/release/hue-rotate 180 /Users/someuser/Pictures/out.png  test3.png
saved to: "test3.png"
PT0.411342066S seconds for whatever you did.

real	0m0.426s
user	0m0.384s
sys	0m0.035s


# that's 4 times faster, as I have 4 CPU cores!
irb(main):001:0> 1753 / 426
=> 4
irb(main):002:0> 1753 / 426.0
=> 4.115023474178404

About

Hue Rotate like webkit taken from c++ 4 times faster with the same image and same systime!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages