Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 58 lines (50 sloc) 1.397 kb
7a01988 @Meettya * add benchmarks
authored
1 ## Benchmarking
2
3 $ node-bench ./bench/async-resolve_vs_other.js
4 benchmarking /Users/meettya/github/async-resolve/bench/async-resolve_vs_other
5 Please be patient.
526fad1 @Meettya * update benchmarking, add substack resolve in async mode
authored
6 Scores: (bigger is better)
7a01988 @Meettya * add benchmarks
authored
7
8 async-resolve
9 Raw:
526fad1 @Meettya * update benchmarking, add substack resolve in async mode
authored
10 > 1.7769002961500493
11 > 1.744186046511628
12 > 1.7424975798644724
13 > 1.7126546146527117
14 Average (mean) 1.7440596342947152
15
16 node-resolve *async*
17 Raw:
18 > 0.5703422053231939
19 > 0.6151142355008787
20 > 0.5808325266214908
21 > 0.5695687550854354
22 Average (mean) 0.5839644306327497
7a01988 @Meettya * add benchmarks
authored
23
24 enhanced-resolve
25 Raw:
526fad1 @Meettya * update benchmarking, add substack resolve in async mode
authored
26 > 0.591715976331361
27 > 0.6776379477250726
28 > 0.47664442326024786
29 > 0.5853658536585366
30 Average (mean) 0.5828410502438045
7a01988 @Meettya * add benchmarks
authored
31
32 localizer
33 Raw:
526fad1 @Meettya * update benchmarking, add substack resolve in async mode
authored
34 > 0.535475234270415
35 > 0.363901018922853
36 > 0.6364922206506365
37 > 0.3776435045317221
38 Average (mean) 0.4783779945939066
7a01988 @Meettya * add benchmarks
authored
39
40 node-resolve *sync*
41 Raw:
526fad1 @Meettya * update benchmarking, add substack resolve in async mode
authored
42 > 0.4668534080298786
43 > 0.42771599657827203
44 > 0.45167118337850043
45 > 0.44923629829290207
46 Average (mean) 0.44886922156988834
7a01988 @Meettya * add benchmarks
authored
47
48 Winner: async-resolve
526fad1 @Meettya * update benchmarking, add substack resolve in async mode
authored
49 Compared with next highest (node-resolve *async*), it's:
50 66.52% faster
51 2.99 times as fast
52 0.48 order(s) of magnitude faster
7a01988 @Meettya * add benchmarks
authored
53 QUITE A BIT FASTER
54
55 Compared with the slowest (node-resolve *sync*), it's:
526fad1 @Meettya * update benchmarking, add substack resolve in async mode
authored
56 74.26% faster
57 3.89 times as fast
58 0.59 order(s) of magnitude faster
Something went wrong with that request. Please try again.