Skip to content

Instantly share code, notes, and snippets.

@srijs
Created August 9, 2018 07:34
Show Gist options
  • Save srijs/b6d6e01931d6fe20d65c90f6d275f35c to your computer and use it in GitHub Desktop.
Save srijs/b6d6e01931d6fe20d65c90f6d275f35c to your computer and use it in GitHub Desktop.
accept a required header param [OLD] x 110,222 ops/sec ±2.40% (84 runs sampled)
accept a required header param [NEW] x 5,673,283 ops/sec ±0.92% (87 runs sampled)
=> fastest is accept a required header param [NEW]
accept a required path param [OLD] x 111,359 ops/sec ±1.77% (87 runs sampled)
accept a required path param [NEW] x 67,758,969 ops/sec ±0.48% (92 runs sampled)
=> fastest is accept a required path param [NEW]
accept a required query param [OLD] x 112,662 ops/sec ±1.70% (91 runs sampled)
accept a required query param [NEW] x 29,308,949 ops/sec ±0.76% (93 runs sampled)
=> fastest is accept a required query param [NEW]
accept an optional header param [OLD] x 118,339 ops/sec ±1.96% (89 runs sampled)
accept an optional header param [NEW] x 9,187,982 ops/sec ±0.92% (90 runs sampled)
=> fastest is accept an optional header param [NEW]
accept an optional path param [OLD] x 113,714 ops/sec ±1.80% (87 runs sampled)
accept an optional path param [NEW] x 26,800,079 ops/sec ±0.98% (89 runs sampled)
=> fastest is accept an optional path param [NEW]
accept an optional query param [OLD] x 106,650 ops/sec ±3.61% (80 runs sampled)
accept an optional query param [NEW] x 20,685,834 ops/sec ±9.47% (79 runs sampled)
=> fastest is accept an optional query param [NEW]
accept custom formats openapi3 [OLD] x 105,916 ops/sec ±2.39% (88 runs sampled)
accept custom formats openapi3 [NEW] x 24,585,110 ops/sec ±1.14% (86 runs sampled)
=> fastest is accept custom formats openapi3 [NEW]
accept custom formats [OLD] x 106,677 ops/sec ±2.09% (87 runs sampled)
accept custom formats [NEW] x 25,764,977 ops/sec ±0.91% (88 runs sampled)
=> fastest is accept custom formats [NEW]
accept definitions with id [OLD] x 54,019,204 ops/sec ±0.90% (91 runs sampled)
accept definitions with id [NEW] x 68,863,538 ops/sec ±0.98% (92 runs sampled)
=> fastest is accept definitions with id [NEW]
accept external ref in body [OLD] x 15,527 ops/sec ±1.78% (85 runs sampled)
accept external ref in body [NEW] x 17,091,104 ops/sec ±0.81% (90 runs sampled)
=> fastest is accept external ref in body [NEW]
accept external ref through local ref in body [OLD] x 9,148 ops/sec ±2.23% (88 runs sampled)
accept external ref through local ref in body [NEW] x 14,435,521 ops/sec ±2.17% (84 runs sampled)
=> fastest is accept external ref through local ref in body [NEW]
accept missing body when body is not required and body schema has no required properties [OLD] x 41,683,022 ops/sec ±1.37% (89 runs sampled)
accept missing body when body is not required and body schema has no required properties [NEW] x 50,888,716 ops/sec ±1.82% (85 runs sampled)
=> fastest is accept missing body when body is not required and body schema has no required properties [NEW]
accept multiple header params [OLD] x 58,691 ops/sec ±2.43% (83 runs sampled)
accept multiple header params [NEW] x 1,843,934 ops/sec ±0.98% (89 runs sampled)
=> fastest is accept multiple header params [NEW]
accept multiple local refs in body as array [OLD] x 14,603 ops/sec ±2.36% (85 runs sampled)
accept multiple local refs in body as array [NEW] x 17,043,099 ops/sec ±0.69% (92 runs sampled)
=> fastest is accept multiple local refs in body as array [NEW]
accept multiple local refs in body as object [OLD] x 17,602 ops/sec ±2.17% (88 runs sampled)
accept multiple local refs in body as object [NEW] x 16,427,160 ops/sec ±1.04% (90 runs sampled)
=> fastest is accept multiple local refs in body as object [NEW]
accept recursive ref in body as object [OLD] x 14,571 ops/sec ±3.23% (83 runs sampled)
accept recursive ref in body as object [NEW] x 9,900,148 ops/sec ±1.44% (87 runs sampled)
=> fastest is accept recursive ref in body as object [NEW]
accept schema ref in body [OLD] x 33,663 ops/sec ±2.33% (85 runs sampled)
accept schema ref in body [NEW] x 19,517,420 ops/sec ±1.94% (89 runs sampled)
=> fastest is accept schema ref in body [NEW]
accept schema when no body params [OLD] x 34,266,120 ops/sec ±1.57% (86 runs sampled)
accept schema when no body params [NEW] x 40,673,663 ops/sec ±1.78% (90 runs sampled)
=> fastest is accept schema when no body params [NEW]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment