Diff
checker
文本
文本
圖像
文檔
Excel
文件夾
Legal
Enterprise
桌面版
定價
登入
下載 Diffchecker 桌面版
比較文本
尋找兩個文字檔案之間的差異
工具
歷史
即時編輯器
摺疊未變更行
關閉換行
檢視
拆分
統一
比對精度
智能
單詞
字符
語法突出顯示
選擇語法
忽略
文字轉換
前往第一個差異
編輯輸入
Diffchecker Desktop
執行Diffchecker最安全的方式。取得Diffchecker桌面應用程式:您的差異永遠不會離開您的電腦!
取得桌面版
Untitled diff
建立於
9 年前
差異永不過期
清除
匯出
分享
解釋
78 刪除
行
總計
刪除
字符
總計
刪除
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
263 行
全部複製
78 新增
行
總計
新增
字符
總計
新增
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
263 行
全部複製
複製
已複製
複製
已複製
Jonathans-MacBook-Pro:node jon$ git checkout
master
Jonathans-MacBook-Pro:node jon$ git checkout
jm-common-benchmark
Jonathans-MacBook-Pro:node jon$ for test in test/**/test-benchmark-*.js; do ./node $test; done
Jonathans-MacBook-Pro:node jon$ for test in test/**/test-benchmark-*.js; do ./node $test; done
arrays/var-int.js
arrays/var-int.js
複製
已複製
複製
已複製
arrays/var-int.js n=1 type="Array":
32.86933338855381
arrays/var-int.js n=1 type="Array":
40.31723536008613
arrays/zero-float.js
arrays/zero-float.js
複製
已複製
複製
已複製
arrays/zero-float.js n=1 type="Array":
54.34500841641145
arrays/zero-float.js n=1 type="Array":
42.73372785110885
arrays/zero-int.js
arrays/zero-int.js
複製
已複製
複製
已複製
arrays/zero-int.js n=1 type="Array":
59.64354038091347
arrays/zero-int.js n=1 type="Array":
36.738711893000705
cluster/echo.js
cluster/echo.js
複製
已複製
複製
已複製
cluster/echo.js n=1 sendsPerBroadcast=1 payload="string" workers=1:
298.46558840998426
cluster/echo.js n=1 sendsPerBroadcast=1 payload="string" workers=1:
234.4043737980916
crypto/aes-gcm-throughput.js
crypto/aes-gcm-throughput.js
複製
已複製
複製
已複製
crypto/aes-gcm-throughput.js len=1 cipher="aes-128-gcm" n=1: 0.
013800341384322075
crypto/aes-gcm-throughput.js len=1 cipher="aes-128-gcm" n=1: 0.
01163640077427099
crypto/aes-gcm-throughput.js len=1 cipher="aes-192-gcm" n=1: 0.
015097607010060592
crypto/aes-gcm-throughput.js len=1 cipher="aes-192-gcm" n=1: 0.
00956553542569384
crypto/aes-gcm-throughput.js len=1 cipher="aes-256-gcm" n=1: 0.
015168445799319256
crypto/aes-gcm-throughput.js len=1 cipher="aes-256-gcm" n=1: 0.
009377916426976126
crypto/cipher-stream.js
crypto/cipher-stream.js
複製
已複製
複製
已複製
crypto/cipher-stream.js api="stream" len=1 type="buf" cipher="AES192" writes=1: 0.
0000022508558920772507
crypto/cipher-stream.js api="stream" len=1 type="buf" cipher="AES192" writes=1: 0.
000001499144869274458
crypto/cipher-stream.js api="stream" len=1 type="buf" cipher="AES256" writes=1: 0.
0000020693694683534264
crypto/cipher-stream.js api="stream" len=1 type="buf" cipher="AES256" writes=1: 0.
000001444028785473355
crypto/get-ciphers.js
crypto/get-ciphers.js
複製
已複製
複製
已複製
crypto/get-ciphers.js v="crypto" n=1:
652.371893731228
crypto/get-ciphers.js v="crypto" n=1:
436.74206144873455
crypto/hash-stream-creation.js
crypto/hash-stream-creation.js
複製
已複製
複製
已複製
crypto/hash-stream-creation.js api="stream" len=1 out="buffer" type="buf" algo="sha256" writes=1: 0.
00000214954180732773
crypto/hash-stream-creation.js api="stream" len=1 out="buffer" type="buf" algo="sha256" writes=1: 0.
0000024208069844176606
crypto/hash-stream-throughput.js
crypto/hash-stream-throughput.js
複製
已複製
複製
已複製
crypto/hash-stream-throughput.js api="stream" len=1 type="buf" algo="sha256" writes=1: 0.
0000036849420257509535
crypto/hash-stream-throughput.js api="stream" len=1 type="buf" algo="sha256" writes=1: 0.
000002126247781004934
crypto/rsa-encrypt-decrypt-throughput.js
crypto/rsa-encrypt-decrypt-throughput.js
複製
已複製
複製
已複製
crypto/rsa-encrypt-decrypt-throughput.js len=1 keylen="1024" n=1:
2.9535678343325373
crypto/rsa-encrypt-decrypt-throughput.js len=1 keylen="1024" n=1:
7.181359076226737
crypto/rsa-sign-verify-throughput.js
crypto/rsa-sign-verify-throughput.js
複製
已複製
複製
已複製
crypto/rsa-sign-verify-throughput.js len=1 keylen="1024" algo="sha256" writes=1:
6.673215315296077
crypto/rsa-sign-verify-throughput.js len=1 keylen="1024" algo="sha256" writes=1:
4.922608714828946
domain/domain-fn-args.js
domain/domain-fn-args.js
複製
已複製
複製
已複製
domain/domain-fn-args.js n=1 arguments=0:
1,456.5666393803183
domain/domain-fn-args.js n=1 arguments=0:
913.6959366114307
events/ee-add-remove.js
events/ee-add-remove.js
複製
已複製
複製
已複製
events/ee-add-remove.js n=1:
4,405.344564025076
events/ee-add-remove.js n=1:
2,972.068500234793
events/ee-emit-multi-args.js
events/ee-emit-multi-args.js
複製
已複製
複製
已複製
events/ee-emit-multi-args.js n=1:
9,950.842836388241
events/ee-emit-multi-args.js n=1:
5,136.476171887039
events/ee-emit.js
events/ee-emit.js
複製
已複製
複製
已複製
events/ee-emit.js n=1:
7,249.42367081817
events/ee-emit.js n=1:
4,958.866204830927
events/ee-listener-count-on-prototype.js
events/ee-listener-count-on-prototype.js
複製
已複製
複製
已複製
events/ee-listener-count-on-prototype.js n=1:
8,928.730870194111
events/ee-listener-count-on-prototype.js n=1:
5,277.379042472347
events/ee-listeners-many.js
events/ee-listeners-many.js
複製
已複製
複製
已複製
events/ee-listeners-many.js n=1:
6,114.1885860327475
events/ee-listeners-many.js n=1:
1,248.1215770265749
events/ee-listeners.js
events/ee-listeners.js
複製
已複製
複製
已複製
events/ee-listeners.js n=1:
6,148.511138027927
events/ee-listeners.js n=1:
3,145.771925243876
events/ee-once.js
events/ee-once.js
複製
已複製
複製
已複製
events/ee-once.js n=1:
3,045.614163324105
events/ee-once.js n=1:
1,818.5322989521617
os/cpus.js
os/cpus.js
複製
已複製
複製
已複製
os/cpus.js n=1:
3,126.0354992591297
os/cpus.js n=1:
2,110.1765373691164
os/loadavg.js
os/loadavg.js
複製
已複製
複製
已複製
os/loadavg.js n=1:
7,376.807317792859
os/loadavg.js n=1:
5,634.564673533323
path/basename-posix.js
path/basename-posix.js
複製
已複製
複製
已複製
path/basename-posix.js n=1 pathext="":
11,351.51088609894
path/basename-posix.js n=1 pathext="":
9,574.875526618154
path/basename-win32.js
path/basename-win32.js
複製
已複製
複製
已複製
path/basename-win32.js n=1 pathext="":
4,554.459954910847
path/basename-win32.js n=1 pathext="":
3,031.662685083007
path/dirname-posix.js
path/dirname-posix.js
複製
已複製
複製
已複製
path/dirname-posix.js n=1 path="":
12,944.816248333356
path/dirname-posix.js n=1 path="":
5,796.295008230739
path/dirname-win32.js
path/dirname-win32.js
複製
已複製
複製
已複製
path/dirname-win32.js n=1 path="":
4,534.22204085334
path/dirname-win32.js n=1 path="":
2,398.1160400389454
path/extname-posix.js
path/extname-posix.js
複製
已複製
複製
已複製
path/extname-posix.js n=1 path="":
11,772.184682033292
path/extname-posix.js n=1 path="":
7,702.024091931359
path/extname-win32.js
path/extname-win32.js
複製
已複製
複製
已複製
path/extname-win32.js n=1 path="":
5,522.9395293350935
path/extname-win32.js n=1 path="":
3,690.826819023998
path/format-posix.js
path/format-posix.js
複製
已複製
複製
已複製
path/format-posix.js n=1 props="":
7,106.916451090201
path/format-posix.js n=1 props="":
3,609.7694801209996
path/format-win32.js
path/format-win32.js
複製
已複製
複製
已複製
path/format-win32.js n=1 props="":
3,468.031683937464
path/format-win32.js n=1 props="":
4,688.5842351043675
path/isAbsolute-posix.js
path/isAbsolute-posix.js
複製
已複製
複製
已複製
path/isAbsolute-posix.js n=1 path="":
12,634.39841311956
path/isAbsolute-posix.js n=1 path="":
6,478.78198898607
path/isAbsolute-win32.js
path/isAbsolute-win32.js
複製
已複製
複製
已複製
path/isAbsolute-win32.js n=1 path="":
7,320.697808915146
path/isAbsolute-win32.js n=1 path="":
4,277.965057581409
path/join-posix.js
path/join-posix.js
複製
已複製
複製
已複製
path/join-posix.js n=1 paths="": 7,
3
87.
706855791962
path/join-posix.js n=1 paths="": 7,
0
87.
172218284905
path/join-win32.js
path/join-win32.js
複製
已複製
複製
已複製
path/join-win32.js n=1 paths="":
5,224.278265957558
path/join-win32.js n=1 paths="":
3,197.994218026454
path/makeLong-win32.js
path/makeLong-win32.js
複製
已複製
複製
已複製
path/makeLong-win32.js n=1 path="":
6,812.499574218777
path/makeLong-win32.js n=1 path="":
3,893.732259182394
path/normalize-posix.js
path/normalize-posix.js
複製
已複製
複製
已複製
path/normalize-posix.js n=1 path="":
7,675.657420058027
path/normalize-posix.js n=1 path="":
5,955.642375586631
path/normalize-win32.js
path/normalize-win32.js
複製
已複製
複製
已複製
path/normalize-win32.js n=1 path="":
3,880.6618856912232
path/normalize-win32.js n=1 path="":
2,774.4792302484825
path/parse-posix.js
path/parse-posix.js
複製
已複製
複製
已複製
path/parse-posix.js n=1 path="": 12,
467.428842149882
path/parse-posix.js n=1 path="": 12,
571.658453183145
path/parse-win32.js
path/parse-win32.js
複製
已複製
複製
已複製
path/parse-win32.js n=1 path="":
12,448.959267005279
path/parse-win32.js n=1 path="":
9,560.777864887088
path/relative-posix.js
path/relative-posix.js
複製
已複製
複製
已複製
path/relative-posix.js n=1 paths="":
12,560.920464251622
path/relative-posix.js n=1 paths="":
9,152.982957145734
path/relative-win32.js
path/relative-win32.js
複製
已複製
複製
已複製
path/relative-win32.js n=1 paths="":
12,587.166125418524
path/relative-win32.js n=1 paths="":
9,276.696011948385
path/resolve-posix.js
path/resolve-posix.js
複製
已複製
複製
已複製
path/resolve-posix.js n=1 paths="":
7,456.732310766775
path/resolve-posix.js n=1 paths="":
4,171.150653619307
path/resolve-win32.js
path/resolve-win32.js
複製
已複製
複製
已複製
path/resolve-win32.js n=1 paths="":
2,105.1745189676226
path/resolve-win32.js n=1 paths="":
1,255.8333458916668
process/bench-env.js
process/bench-env.js
複製
已複製
複製
已複製
process/bench-env.js n=1:
10,285.103056732629
process/bench-env.js n=1:
5,853.841290654927
process/bench-hrtime.js
process/bench-hrtime.js
複製
已複製
複製
已複製
process/bench-hrtime.js type="raw" n=1:
16,580.448335322988
process/bench-hrtime.js type="raw" n=1:
12,143.733226468481
process/memoryUsage.js
process/memoryUsage.js
複製
已複製
複製
已複製
process/memoryUsage.js n=1: 5,
719.973001727432
process/memoryUsage.js n=1: 5,
579.11180540058
process/next-tick-breadth-args.js
process/next-tick-breadth-args.js
複製
已複製
複製
已複製
process/next-tick-breadth-args.js millions=0.000001: 0.
0007258479537257412
process/next-tick-breadth-args.js millions=0.000001: 0.
0038693550945863853
process/next-tick-breadth.js
process/next-tick-breadth.js
複製
已複製
複製
已複製
process/next-tick-breadth.js millions=0.000001: 0.
005576218543157143
process/next-tick-breadth.js millions=0.000001: 0.
002888662289380411
process/next-tick-depth-args.js
process/next-tick-depth-args.js
複製
已複製
複製
已複製
process/next-tick-depth-args.js millions=0.000001: 0.
004888732449450506
process/next-tick-depth-args.js millions=0.000001: 0.
0030344224887119482
process/next-tick-depth.js
process/next-tick-depth.js
複製
已複製
複製
已複製
process/next-tick-depth.js millions=0.000001: 0.
005516358761908439
process/next-tick-depth.js millions=0.000001: 0.
0029259957163422713
timers/immediate.js
timers/immediate.js
複製
已複製
複製
已複製
timers/immediate.js type="depth" thousands=0.001:
1.521838380763963
timers/immediate.js type="depth" thousands=0.001:
0.9840689084412447
timers/set-immediate-breadth-args.js
timers/set-immediate-breadth-args.js
複製
已複製
複製
已複製
timers/set-immediate-breadth-args.js millions=0.000001: 0.
0013869856363767496
timers/set-immediate-breadth-args.js millions=0.000001: 0.
0008451363669784937
timers/set-immediate-breadth.js
timers/set-immediate-breadth.js
複製
已複製
複製
已複製
timers/set-immediate-breadth.js millions=0.000001: 0.
00139031975964152
timers/set-immediate-breadth.js millions=0.000001: 0.
0011744795000475665
timers/set-immediate-depth-args.js
timers/set-immediate-depth-args.js
複製
已複製
複製
已複製
timers/set-immediate-depth-args.js millions=0.000001: 0.
0013252914647253796
timers/set-immediate-depth-args.js millions=0.000001: 0.
000797039476568235
timers/timers-breadth.js
timers/timers-breadth.js
複製
已複製
複製
已複製
timers/timers-breadth.js thousands=0.001: 0.
3972980553849381
timers/timers-breadth.js thousands=0.001: 0.
32905517728834843
timers/timers-cancel-pooled.js
timers/timers-cancel-pooled.js
複製
已複製
複製
已複製
timers/timers-cancel-pooled.js thousands=0.001:
10.618529333687285
timers/timers-cancel-pooled.js thousands=0.001:
7.875255945818239
timers/timers-cancel-unpooled.js
timers/timers-cancel-unpooled.js
複製
已複製
複製
已複製
timers/timers-cancel-unpooled.js thousands=0.001:
3.633747338280075
timers/timers-cancel-unpooled.js thousands=0.001:
2.6776772756240326
timers/timers-depth.js
timers/timers-depth.js
複製
已複製
複製
已複製
timers/timers-depth.js thousands=0.001: 0.
39533270211878563
timers/timers-depth.js thousands=0.001: 0.
3773550730106595
timers/timers-insert-pooled.js
timers/timers-insert-pooled.js
複製
已複製
複製
已複製
timers/timers-insert-pooled.js thousands=0.001: 1.
884158186384696
timers/timers-insert-pooled.js thousands=0.001: 1.
163575434595425
timers/timers-insert-unpooled.js
timers/timers-insert-unpooled.js
複製
已複製
複製
已複製
timers/timers-insert-unpooled.js thousands=0.001: 1.
8517592638886575
timers/timers-insert-unpooled.js thousands=0.001: 1.
0654687956153828
timers/timers-timeout-pooled.js
timers/timers-timeout-pooled.js
複製
已複製
複製
已複製
timers/timers-timeout-pooled.js thousands=0.001:
0.5701026754918561
timers/timers-timeout-pooled.js thousands=0.001:
1.362561178996937
zlib/creation.js
zlib/creation.js
複製
已複製
複製
已複製
zlib/creation.js n=1 options="true" type="Deflate":
477.52595711721403
zlib/creation.js n=1 options="true" type="Deflate":
1,118.1154834395916
zlib/deflate.js
zlib/deflate.js
複製
已複製
複製
已複製
zlib/deflate.js n=1 inputLen=1024 method="deflate":
186.771846609512
zlib/deflate.js n=1 inputLen=1024 method="deflate":
207.28606368118076
child_process/child-process-exec-stdout.js
child_process/child-process-exec-stdout.js
child_process/child-process-exec-stdout.js dur=0 len=1: 0
child_process/child-process-exec-stdout.js dur=0 len=1: 0
child_process/child-process-params.js
child_process/child-process-params.js
複製
已複製
複製
已複製
child_process/child-process-params.js params=1 methodName="execSync" n=1:
113.38425117695687
child_process/child-process-params.js params=1 methodName="execSync" n=1:
130.7023986112086
child_process/child-process-read-ipc.js
child_process/child-process-read-ipc.js
child_process/child-process-read-ipc.js dur=0 len=1: 0
child_process/child-process-read-ipc.js dur=0 len=1: 0
child_process/child-process-read.js
child_process/child-process-read.js
child_process/child-process-read.js dur=0 len=1: 0
child_process/child-process-read.js dur=0 len=1: 0
child_process/spawn-echo.js
child_process/spawn-echo.js
複製
已複製
複製
已複製
child_process/spawn-echo.js n=1:
3,939.0083940268873
child_process/spawn-echo.js n=1:
5,160.038597088706
http/bench-parser.js
http/bench-parser.js
複製
已複製
複製
已複製
http/bench-parser.js n=1 len=1:
5,994.017970065875
http/bench-parser.js n=1 len=1:
4,240.6303272918485
http/check_invalid_header_char.js
http/check_invalid_header_char.js
複製
已複製
複製
已複製
http/check_invalid_header_char.js n=1 key="\"\"": 7,
663.951073336348
http/check_invalid_header_char.js n=1 key="\"\"": 7,
438.151768048675
http/check_is_http_token.js
http/check_is_http_token.js
複製
已複製
複製
已複製
http/check_is_http_token.js n=1 key="\"\"": 7,
966.857871255576
http/check_is_http_token.js n=1 key="\"\"": 7,
689.172875673763
http/chunked.js
http/chunked.js
http/chunked.js c=1 len=1 n=1 benchmarker="test-double": 1
http/chunked.js c=1 len=1 n=1 benchmarker="test-double": 1
http/client-request-body.js
http/client-request-body.js
複製
已複製
複製
已複製
http/client-request-body.js method="write" len=1 type="asc" dur=0.1: 1,
598.1675668767364
http/client-request-body.js method="write" len=1 type="asc" dur=0.1: 1,
264.8766433570981
http/client-request-body.js method="write" len=1 type="utf" dur=0.1:
2,098.696080125418
http/client-request-body.js method="write" len=1 type="utf" dur=0.1:
1,457.7109710392867
http/client-request-body.js method="write" len=1 type="buf" dur=0.1: 1,
130.520265426149
http/client-request-body.js method="write" len=1 type="buf" dur=0.1: 1,
409.4117960810236
http/cluster.js
http/cluster.js
http/cluster.js c=1 len=1 type="bytes" benchmarker="test-double": 1
http/cluster.js c=1 len=1 type="bytes" benchmarker="test-double": 1
http/cluster.js c=1 len=1 type="buffer" benchmarker="test-double": 1
http/cluster.js c=1 len=1 type="buffer" benchmarker="test-double": 1
http/create-clientrequest.js
http/create-clientrequest.js
複製
已複製
複製
已複製
http/create-clientrequest.js n=1 len=1: 5
87.2990703055717
http/create-clientrequest.js n=1 len=1: 5
78.4717124440257
http/end-vs-write-end.js
http/end-vs-write-end.js
http/end-vs-write-end.js method="write" c=1 len=1 type="asc" benchmarker="test-double": 1
http/end-vs-write-end.js method="write" c=1 len=1 type="asc" benchmarker="test-double": 1
http/end-vs-write-end.js method="write" c=1 len=1 type="utf" benchmarker="test-double": 1
http/end-vs-write-end.js method="write" c=1 len=1 type="utf" benchmarker="test-double": 1
http/end-vs-write-end.js method="write" c=1 len=1 type="buf" benchmarker="test-double": 1
http/end-vs-write-end.js method="write" c=1 len=1 type="buf" benchmarker="test-double": 1
http/http_server_for_chunky_client.js
http/http_server_for_chunky_client.js
複製
已複製
複製
已複製
http/_chunky_http_client.js type="send" n=1 len=1: 1
61.17464078201934
http/_chunky_http_client.js type="send" n=1 len=1: 1
14.646542988269
http/simple.js
http/simple.js
http/simple.js res="normal" chunkedEnc="true" c=1 chunks=0 len=1 type="bytes" benchmarker="test-double": 1
http/simple.js res="normal" chunkedEnc="true" c=1 chunks=0 len=1 type="bytes" benchmarker="test-double": 1
http/simple.js res="normal" chunkedEnc="true" c=1 chunks=0 len=1 type="buffer" benchmarker="test-double": 1
http/simple.js res="normal" chunkedEnc="true" c=1 chunks=0 len=1 type="buffer" benchmarker="test-double": 1
net/net-c2s-cork.js
net/net-c2s-cork.js
net/net-c2s-cork.js dur=0 type="buf" len=1024: 0
net/net-c2s-cork.js dur=0 type="buf" len=1024: 0
net/net-c2s.js
net/net-c2s.js
net/net-c2s.js dur=0 type="buf" len=1024: 0
net/net-c2s.js dur=0 type="buf" len=1024: 0
net/net-pipe.js
net/net-pipe.js
net/net-pipe.js dur=0 type="buf" len=1024: 0
net/net-pipe.js dur=0 type="buf" len=1024: 0
net/net-s2c.js
net/net-s2c.js
net/net-s2c.js dur=0 type="buf" len=1024: 0
net/net-s2c.js dur=0 type="buf" len=1024: 0
net/tcp-raw-c2s.js
net/tcp-raw-c2s.js
net/tcp-raw-c2s.js dur=0 type="buf" len=1024: 0
net/tcp-raw-c2s.js dur=0 type="buf" len=1024: 0
net/tcp-raw-pipe.js
net/tcp-raw-pipe.js
net/tcp-raw-pipe.js dur=0 type="buf" len=1024: 0
net/tcp-raw-pipe.js dur=0 type="buf" len=1024: 0
net/tcp-raw-s2c.js
net/tcp-raw-s2c.js
複製
已複製
複製
已複製
net/tcp-raw-s2c.js dur=0 type="buf" len=1024:
0
net/tcp-raw-s2c.js dur=0 type="buf" len=1024:
1.8861754402661421
已保存差異
原始文本
開啟檔案
Jonathans-MacBook-Pro:node jon$ git checkout master Jonathans-MacBook-Pro:node jon$ for test in test/**/test-benchmark-*.js; do ./node $test; done arrays/var-int.js arrays/var-int.js n=1 type="Array": 32.86933338855381 arrays/zero-float.js arrays/zero-float.js n=1 type="Array": 54.34500841641145 arrays/zero-int.js arrays/zero-int.js n=1 type="Array": 59.64354038091347 cluster/echo.js cluster/echo.js n=1 sendsPerBroadcast=1 payload="string" workers=1: 298.46558840998426 crypto/aes-gcm-throughput.js crypto/aes-gcm-throughput.js len=1 cipher="aes-128-gcm" n=1: 0.013800341384322075 crypto/aes-gcm-throughput.js len=1 cipher="aes-192-gcm" n=1: 0.015097607010060592 crypto/aes-gcm-throughput.js len=1 cipher="aes-256-gcm" n=1: 0.015168445799319256 crypto/cipher-stream.js crypto/cipher-stream.js api="stream" len=1 type="buf" cipher="AES192" writes=1: 0.0000022508558920772507 crypto/cipher-stream.js api="stream" len=1 type="buf" cipher="AES256" writes=1: 0.0000020693694683534264 crypto/get-ciphers.js crypto/get-ciphers.js v="crypto" n=1: 652.371893731228 crypto/hash-stream-creation.js crypto/hash-stream-creation.js api="stream" len=1 out="buffer" type="buf" algo="sha256" writes=1: 0.00000214954180732773 crypto/hash-stream-throughput.js crypto/hash-stream-throughput.js api="stream" len=1 type="buf" algo="sha256" writes=1: 0.0000036849420257509535 crypto/rsa-encrypt-decrypt-throughput.js crypto/rsa-encrypt-decrypt-throughput.js len=1 keylen="1024" n=1: 2.9535678343325373 crypto/rsa-sign-verify-throughput.js crypto/rsa-sign-verify-throughput.js len=1 keylen="1024" algo="sha256" writes=1: 6.673215315296077 domain/domain-fn-args.js domain/domain-fn-args.js n=1 arguments=0: 1,456.5666393803183 events/ee-add-remove.js events/ee-add-remove.js n=1: 4,405.344564025076 events/ee-emit-multi-args.js events/ee-emit-multi-args.js n=1: 9,950.842836388241 events/ee-emit.js events/ee-emit.js n=1: 7,249.42367081817 events/ee-listener-count-on-prototype.js events/ee-listener-count-on-prototype.js n=1: 8,928.730870194111 events/ee-listeners-many.js events/ee-listeners-many.js n=1: 6,114.1885860327475 events/ee-listeners.js events/ee-listeners.js n=1: 6,148.511138027927 events/ee-once.js events/ee-once.js n=1: 3,045.614163324105 os/cpus.js os/cpus.js n=1: 3,126.0354992591297 os/loadavg.js os/loadavg.js n=1: 7,376.807317792859 path/basename-posix.js path/basename-posix.js n=1 pathext="": 11,351.51088609894 path/basename-win32.js path/basename-win32.js n=1 pathext="": 4,554.459954910847 path/dirname-posix.js path/dirname-posix.js n=1 path="": 12,944.816248333356 path/dirname-win32.js path/dirname-win32.js n=1 path="": 4,534.22204085334 path/extname-posix.js path/extname-posix.js n=1 path="": 11,772.184682033292 path/extname-win32.js path/extname-win32.js n=1 path="": 5,522.9395293350935 path/format-posix.js path/format-posix.js n=1 props="": 7,106.916451090201 path/format-win32.js path/format-win32.js n=1 props="": 3,468.031683937464 path/isAbsolute-posix.js path/isAbsolute-posix.js n=1 path="": 12,634.39841311956 path/isAbsolute-win32.js path/isAbsolute-win32.js n=1 path="": 7,320.697808915146 path/join-posix.js path/join-posix.js n=1 paths="": 7,387.706855791962 path/join-win32.js path/join-win32.js n=1 paths="": 5,224.278265957558 path/makeLong-win32.js path/makeLong-win32.js n=1 path="": 6,812.499574218777 path/normalize-posix.js path/normalize-posix.js n=1 path="": 7,675.657420058027 path/normalize-win32.js path/normalize-win32.js n=1 path="": 3,880.6618856912232 path/parse-posix.js path/parse-posix.js n=1 path="": 12,467.428842149882 path/parse-win32.js path/parse-win32.js n=1 path="": 12,448.959267005279 path/relative-posix.js path/relative-posix.js n=1 paths="": 12,560.920464251622 path/relative-win32.js path/relative-win32.js n=1 paths="": 12,587.166125418524 path/resolve-posix.js path/resolve-posix.js n=1 paths="": 7,456.732310766775 path/resolve-win32.js path/resolve-win32.js n=1 paths="": 2,105.1745189676226 process/bench-env.js process/bench-env.js n=1: 10,285.103056732629 process/bench-hrtime.js process/bench-hrtime.js type="raw" n=1: 16,580.448335322988 process/memoryUsage.js process/memoryUsage.js n=1: 5,719.973001727432 process/next-tick-breadth-args.js process/next-tick-breadth-args.js millions=0.000001: 0.0007258479537257412 process/next-tick-breadth.js process/next-tick-breadth.js millions=0.000001: 0.005576218543157143 process/next-tick-depth-args.js process/next-tick-depth-args.js millions=0.000001: 0.004888732449450506 process/next-tick-depth.js process/next-tick-depth.js millions=0.000001: 0.005516358761908439 timers/immediate.js timers/immediate.js type="depth" thousands=0.001: 1.521838380763963 timers/set-immediate-breadth-args.js timers/set-immediate-breadth-args.js millions=0.000001: 0.0013869856363767496 timers/set-immediate-breadth.js timers/set-immediate-breadth.js millions=0.000001: 0.00139031975964152 timers/set-immediate-depth-args.js timers/set-immediate-depth-args.js millions=0.000001: 0.0013252914647253796 timers/timers-breadth.js timers/timers-breadth.js thousands=0.001: 0.3972980553849381 timers/timers-cancel-pooled.js timers/timers-cancel-pooled.js thousands=0.001: 10.618529333687285 timers/timers-cancel-unpooled.js timers/timers-cancel-unpooled.js thousands=0.001: 3.633747338280075 timers/timers-depth.js timers/timers-depth.js thousands=0.001: 0.39533270211878563 timers/timers-insert-pooled.js timers/timers-insert-pooled.js thousands=0.001: 1.884158186384696 timers/timers-insert-unpooled.js timers/timers-insert-unpooled.js thousands=0.001: 1.8517592638886575 timers/timers-timeout-pooled.js timers/timers-timeout-pooled.js thousands=0.001: 0.5701026754918561 zlib/creation.js zlib/creation.js n=1 options="true" type="Deflate": 477.52595711721403 zlib/deflate.js zlib/deflate.js n=1 inputLen=1024 method="deflate": 186.771846609512 child_process/child-process-exec-stdout.js child_process/child-process-exec-stdout.js dur=0 len=1: 0 child_process/child-process-params.js child_process/child-process-params.js params=1 methodName="execSync" n=1: 113.38425117695687 child_process/child-process-read-ipc.js child_process/child-process-read-ipc.js dur=0 len=1: 0 child_process/child-process-read.js child_process/child-process-read.js dur=0 len=1: 0 child_process/spawn-echo.js child_process/spawn-echo.js n=1: 3,939.0083940268873 http/bench-parser.js http/bench-parser.js n=1 len=1: 5,994.017970065875 http/check_invalid_header_char.js http/check_invalid_header_char.js n=1 key="\"\"": 7,663.951073336348 http/check_is_http_token.js http/check_is_http_token.js n=1 key="\"\"": 7,966.857871255576 http/chunked.js http/chunked.js c=1 len=1 n=1 benchmarker="test-double": 1 http/client-request-body.js http/client-request-body.js method="write" len=1 type="asc" dur=0.1: 1,598.1675668767364 http/client-request-body.js method="write" len=1 type="utf" dur=0.1: 2,098.696080125418 http/client-request-body.js method="write" len=1 type="buf" dur=0.1: 1,130.520265426149 http/cluster.js http/cluster.js c=1 len=1 type="bytes" benchmarker="test-double": 1 http/cluster.js c=1 len=1 type="buffer" benchmarker="test-double": 1 http/create-clientrequest.js http/create-clientrequest.js n=1 len=1: 587.2990703055717 http/end-vs-write-end.js http/end-vs-write-end.js method="write" c=1 len=1 type="asc" benchmarker="test-double": 1 http/end-vs-write-end.js method="write" c=1 len=1 type="utf" benchmarker="test-double": 1 http/end-vs-write-end.js method="write" c=1 len=1 type="buf" benchmarker="test-double": 1 http/http_server_for_chunky_client.js http/_chunky_http_client.js type="send" n=1 len=1: 161.17464078201934 http/simple.js http/simple.js res="normal" chunkedEnc="true" c=1 chunks=0 len=1 type="bytes" benchmarker="test-double": 1 http/simple.js res="normal" chunkedEnc="true" c=1 chunks=0 len=1 type="buffer" benchmarker="test-double": 1 net/net-c2s-cork.js net/net-c2s-cork.js dur=0 type="buf" len=1024: 0 net/net-c2s.js net/net-c2s.js dur=0 type="buf" len=1024: 0 net/net-pipe.js net/net-pipe.js dur=0 type="buf" len=1024: 0 net/net-s2c.js net/net-s2c.js dur=0 type="buf" len=1024: 0 net/tcp-raw-c2s.js net/tcp-raw-c2s.js dur=0 type="buf" len=1024: 0 net/tcp-raw-pipe.js net/tcp-raw-pipe.js dur=0 type="buf" len=1024: 0 net/tcp-raw-s2c.js net/tcp-raw-s2c.js dur=0 type="buf" len=1024: 0
更改後文本
開啟檔案
Jonathans-MacBook-Pro:node jon$ git checkout jm-common-benchmark Jonathans-MacBook-Pro:node jon$ for test in test/**/test-benchmark-*.js; do ./node $test; done arrays/var-int.js arrays/var-int.js n=1 type="Array": 40.31723536008613 arrays/zero-float.js arrays/zero-float.js n=1 type="Array": 42.73372785110885 arrays/zero-int.js arrays/zero-int.js n=1 type="Array": 36.738711893000705 cluster/echo.js cluster/echo.js n=1 sendsPerBroadcast=1 payload="string" workers=1: 234.4043737980916 crypto/aes-gcm-throughput.js crypto/aes-gcm-throughput.js len=1 cipher="aes-128-gcm" n=1: 0.01163640077427099 crypto/aes-gcm-throughput.js len=1 cipher="aes-192-gcm" n=1: 0.00956553542569384 crypto/aes-gcm-throughput.js len=1 cipher="aes-256-gcm" n=1: 0.009377916426976126 crypto/cipher-stream.js crypto/cipher-stream.js api="stream" len=1 type="buf" cipher="AES192" writes=1: 0.000001499144869274458 crypto/cipher-stream.js api="stream" len=1 type="buf" cipher="AES256" writes=1: 0.000001444028785473355 crypto/get-ciphers.js crypto/get-ciphers.js v="crypto" n=1: 436.74206144873455 crypto/hash-stream-creation.js crypto/hash-stream-creation.js api="stream" len=1 out="buffer" type="buf" algo="sha256" writes=1: 0.0000024208069844176606 crypto/hash-stream-throughput.js crypto/hash-stream-throughput.js api="stream" len=1 type="buf" algo="sha256" writes=1: 0.000002126247781004934 crypto/rsa-encrypt-decrypt-throughput.js crypto/rsa-encrypt-decrypt-throughput.js len=1 keylen="1024" n=1: 7.181359076226737 crypto/rsa-sign-verify-throughput.js crypto/rsa-sign-verify-throughput.js len=1 keylen="1024" algo="sha256" writes=1: 4.922608714828946 domain/domain-fn-args.js domain/domain-fn-args.js n=1 arguments=0: 913.6959366114307 events/ee-add-remove.js events/ee-add-remove.js n=1: 2,972.068500234793 events/ee-emit-multi-args.js events/ee-emit-multi-args.js n=1: 5,136.476171887039 events/ee-emit.js events/ee-emit.js n=1: 4,958.866204830927 events/ee-listener-count-on-prototype.js events/ee-listener-count-on-prototype.js n=1: 5,277.379042472347 events/ee-listeners-many.js events/ee-listeners-many.js n=1: 1,248.1215770265749 events/ee-listeners.js events/ee-listeners.js n=1: 3,145.771925243876 events/ee-once.js events/ee-once.js n=1: 1,818.5322989521617 os/cpus.js os/cpus.js n=1: 2,110.1765373691164 os/loadavg.js os/loadavg.js n=1: 5,634.564673533323 path/basename-posix.js path/basename-posix.js n=1 pathext="": 9,574.875526618154 path/basename-win32.js path/basename-win32.js n=1 pathext="": 3,031.662685083007 path/dirname-posix.js path/dirname-posix.js n=1 path="": 5,796.295008230739 path/dirname-win32.js path/dirname-win32.js n=1 path="": 2,398.1160400389454 path/extname-posix.js path/extname-posix.js n=1 path="": 7,702.024091931359 path/extname-win32.js path/extname-win32.js n=1 path="": 3,690.826819023998 path/format-posix.js path/format-posix.js n=1 props="": 3,609.7694801209996 path/format-win32.js path/format-win32.js n=1 props="": 4,688.5842351043675 path/isAbsolute-posix.js path/isAbsolute-posix.js n=1 path="": 6,478.78198898607 path/isAbsolute-win32.js path/isAbsolute-win32.js n=1 path="": 4,277.965057581409 path/join-posix.js path/join-posix.js n=1 paths="": 7,087.172218284905 path/join-win32.js path/join-win32.js n=1 paths="": 3,197.994218026454 path/makeLong-win32.js path/makeLong-win32.js n=1 path="": 3,893.732259182394 path/normalize-posix.js path/normalize-posix.js n=1 path="": 5,955.642375586631 path/normalize-win32.js path/normalize-win32.js n=1 path="": 2,774.4792302484825 path/parse-posix.js path/parse-posix.js n=1 path="": 12,571.658453183145 path/parse-win32.js path/parse-win32.js n=1 path="": 9,560.777864887088 path/relative-posix.js path/relative-posix.js n=1 paths="": 9,152.982957145734 path/relative-win32.js path/relative-win32.js n=1 paths="": 9,276.696011948385 path/resolve-posix.js path/resolve-posix.js n=1 paths="": 4,171.150653619307 path/resolve-win32.js path/resolve-win32.js n=1 paths="": 1,255.8333458916668 process/bench-env.js process/bench-env.js n=1: 5,853.841290654927 process/bench-hrtime.js process/bench-hrtime.js type="raw" n=1: 12,143.733226468481 process/memoryUsage.js process/memoryUsage.js n=1: 5,579.11180540058 process/next-tick-breadth-args.js process/next-tick-breadth-args.js millions=0.000001: 0.0038693550945863853 process/next-tick-breadth.js process/next-tick-breadth.js millions=0.000001: 0.002888662289380411 process/next-tick-depth-args.js process/next-tick-depth-args.js millions=0.000001: 0.0030344224887119482 process/next-tick-depth.js process/next-tick-depth.js millions=0.000001: 0.0029259957163422713 timers/immediate.js timers/immediate.js type="depth" thousands=0.001: 0.9840689084412447 timers/set-immediate-breadth-args.js timers/set-immediate-breadth-args.js millions=0.000001: 0.0008451363669784937 timers/set-immediate-breadth.js timers/set-immediate-breadth.js millions=0.000001: 0.0011744795000475665 timers/set-immediate-depth-args.js timers/set-immediate-depth-args.js millions=0.000001: 0.000797039476568235 timers/timers-breadth.js timers/timers-breadth.js thousands=0.001: 0.32905517728834843 timers/timers-cancel-pooled.js timers/timers-cancel-pooled.js thousands=0.001: 7.875255945818239 timers/timers-cancel-unpooled.js timers/timers-cancel-unpooled.js thousands=0.001: 2.6776772756240326 timers/timers-depth.js timers/timers-depth.js thousands=0.001: 0.3773550730106595 timers/timers-insert-pooled.js timers/timers-insert-pooled.js thousands=0.001: 1.163575434595425 timers/timers-insert-unpooled.js timers/timers-insert-unpooled.js thousands=0.001: 1.0654687956153828 timers/timers-timeout-pooled.js timers/timers-timeout-pooled.js thousands=0.001: 1.362561178996937 zlib/creation.js zlib/creation.js n=1 options="true" type="Deflate": 1,118.1154834395916 zlib/deflate.js zlib/deflate.js n=1 inputLen=1024 method="deflate": 207.28606368118076 child_process/child-process-exec-stdout.js child_process/child-process-exec-stdout.js dur=0 len=1: 0 child_process/child-process-params.js child_process/child-process-params.js params=1 methodName="execSync" n=1: 130.7023986112086 child_process/child-process-read-ipc.js child_process/child-process-read-ipc.js dur=0 len=1: 0 child_process/child-process-read.js child_process/child-process-read.js dur=0 len=1: 0 child_process/spawn-echo.js child_process/spawn-echo.js n=1: 5,160.038597088706 http/bench-parser.js http/bench-parser.js n=1 len=1: 4,240.6303272918485 http/check_invalid_header_char.js http/check_invalid_header_char.js n=1 key="\"\"": 7,438.151768048675 http/check_is_http_token.js http/check_is_http_token.js n=1 key="\"\"": 7,689.172875673763 http/chunked.js http/chunked.js c=1 len=1 n=1 benchmarker="test-double": 1 http/client-request-body.js http/client-request-body.js method="write" len=1 type="asc" dur=0.1: 1,264.8766433570981 http/client-request-body.js method="write" len=1 type="utf" dur=0.1: 1,457.7109710392867 http/client-request-body.js method="write" len=1 type="buf" dur=0.1: 1,409.4117960810236 http/cluster.js http/cluster.js c=1 len=1 type="bytes" benchmarker="test-double": 1 http/cluster.js c=1 len=1 type="buffer" benchmarker="test-double": 1 http/create-clientrequest.js http/create-clientrequest.js n=1 len=1: 578.4717124440257 http/end-vs-write-end.js http/end-vs-write-end.js method="write" c=1 len=1 type="asc" benchmarker="test-double": 1 http/end-vs-write-end.js method="write" c=1 len=1 type="utf" benchmarker="test-double": 1 http/end-vs-write-end.js method="write" c=1 len=1 type="buf" benchmarker="test-double": 1 http/http_server_for_chunky_client.js http/_chunky_http_client.js type="send" n=1 len=1: 114.646542988269 http/simple.js http/simple.js res="normal" chunkedEnc="true" c=1 chunks=0 len=1 type="bytes" benchmarker="test-double": 1 http/simple.js res="normal" chunkedEnc="true" c=1 chunks=0 len=1 type="buffer" benchmarker="test-double": 1 net/net-c2s-cork.js net/net-c2s-cork.js dur=0 type="buf" len=1024: 0 net/net-c2s.js net/net-c2s.js dur=0 type="buf" len=1024: 0 net/net-pipe.js net/net-pipe.js dur=0 type="buf" len=1024: 0 net/net-s2c.js net/net-s2c.js dur=0 type="buf" len=1024: 0 net/tcp-raw-c2s.js net/tcp-raw-c2s.js dur=0 type="buf" len=1024: 0 net/tcp-raw-pipe.js net/tcp-raw-pipe.js dur=0 type="buf" len=1024: 0 net/tcp-raw-s2c.js net/tcp-raw-s2c.js dur=0 type="buf" len=1024: 1.8861754402661421
尋找差異