Skip to content

Instantly share code, notes, and snippets.

@pnkfelix
Last active December 13, 2015 17:18
Show Gist options
  • Save pnkfelix/4946246 to your computer and use it in GitHub Desktop.
Save pnkfelix/4946246 to your computer and use it in GitHub Desktop.
* liquid-resize benchmark, version at:
http://pnkfelix.github.com/pjs-examples/liquid-resize/resize-demo.html
* (But with smaller versions of the source image; tower-small is 25% of tower, and tower-tiny is 25% of tower-small. I think.)
* Okay, in Firefox 18.0.2, here are the full times:
tower-tiny (Firefox 18.0.2)
* Seq JS Array: 0.42s
* Seq JS Typed Array: 0.24s
* Seq JS Buffer: 0.10s
tower-small (Firefox 18.0.2)
* Seq JS Array: 38.05s
* Seq JS Typed Array: 27.52s
* Seq JS Buffer: 9.56s
tower-tiny (FF PJS Nightly 71562cef)
* Seq JS Array: 0.04s
* Seq JS Typed Array: 0.24s
* Seq JS Buffer: 0.03s
* Par JS Array: 0.04s (but buggy)
tower-small (FF PJS Nightly 71562cef)
* Seq JS Array: 3.03s
* Seq JS Typed Array: 29.53s
* Seq JS Buffer: 3.48s
* Par JS Array: 2.42s (but buggy)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment