Socket
Socket
Sign inDemoInstall

thunkify-wrap

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thunkify-wrap - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

8

benchmark/base.js

@@ -60,7 +60,7 @@ /**!

// thunkify benchmark
// node version: v0.11.12, date: Thu Jul 10 2014 18:28:27 GMT+0800 (CST)
// node version: v0.11.12, date: Thu Jul 10 2014 22:53:10 GMT+0800 (CST)
// Starting...
//
// yield asyncThunk('a', 1) 1000000 times, use: 5976ms, qps: 167336.01070950468
// yield asyncGen('a', 1) 1000000 times, use: 15607ms, qps: 64073.81303261357
// yield* asyncGen('a', 1) 1000000 times, use: 9456ms, qps: 105752.96108291032
// yield asyncThunk('a', 1) 1000000 times, use: 5578ms, qps: 179275.72606669058
// yield asyncGen('a', 1) 1000000 times, use: 12610ms, qps: 79302.14115781126
// yield* asyncGen('a', 1) 1000000 times, use: 6817ms, qps: 146692.09329617134
1.1.0 / 2014-07-10
1.0.1 / 2014-07-10
==================
* improve performance
1.0.0 / 2014-07-10
==================
* Merge pull request #1 from node-modules/genify

@@ -6,0 +11,0 @@ * yield* asyncGen(a, 1) slow 1.5x than yield asyncThunk(a, 1)

@@ -62,2 +62,4 @@ /**!

var slice = Array.prototype.slice;
/**

@@ -76,3 +78,3 @@ * Wrap a regular callback `fn` as a thunk.

function thunk() {
var args = [].slice.call(arguments);
var args = slice.call(arguments);
var results;

@@ -79,0 +81,0 @@ var called;

{
"name": "thunkify-wrap",
"version": "1.0.0",
"version": "1.0.1",
"repository": "dead-horse/node-thunkify-wrap",

@@ -5,0 +5,0 @@ "description": "Turn callbacks, arrays, generators, generator functions, and promises into a thunk",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc