Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

benchmark: print score to five decimal places #516

Closed
wants to merge 1 commit into from
Closed

benchmark: print score to five decimal places #516

wants to merge 1 commit into from

Conversation

yosuke-furukawa
Copy link
Member

Benchmark score prints integer value. However, Node.js benchmark has 5 decimal places.

  • before
arrays/var-int.js
arrays/var-int.js type=Array n=25: 76
arrays/var-int.js type=Buffer n=25: 121
arrays/var-int.js type=Int8Array n=25: 118
arrays/var-int.js type=Uint8Array n=25: 118
arrays/var-int.js type=Int16Array n=25: 113
arrays/var-int.js type=Uint16Array n=25: 111
arrays/var-int.js type=Int32Array n=25: 95
arrays/var-int.js type=Uint32Array n=25: 101
arrays/var-int.js type=Float32Array n=25: 70
arrays/var-int.js type=Float64Array n=25: 73
  • after
arrays/var-int.js
arrays/var-int.js type=Array n=25: 73.45324
arrays/var-int.js type=Buffer n=25: 113.01765
arrays/var-int.js type=Int8Array n=25: 121.26506
arrays/var-int.js type=Uint8Array n=25: 116.51207
arrays/var-int.js type=Int16Array n=25: 109.93762
arrays/var-int.js type=Uint16Array n=25: 114.62420
arrays/var-int.js type=Int32Array n=25: 98.53783
arrays/var-int.js type=Uint32Array n=25: 100.53117
arrays/var-int.js type=Float32Array n=25: 73.30280
arrays/var-int.js type=Float64Array n=25: 76.18161

@yosuke-furukawa
Copy link
Member Author

Just FYI, I have a motivation to compare node.js with io.js on performance.

Node.js arrays benchmark is here.

  • node.js v0.11.14
arrays/var-int.js
arrays/var-int.js type=Array n=25: 9.9083
arrays/var-int.js type=Buffer n=25: 116.29
arrays/var-int.js type=Int8Array n=25: 119.86
arrays/var-int.js type=Uint8Array n=25: 122.34
arrays/var-int.js type=Int16Array n=25: 105.83
arrays/var-int.js type=Uint16Array n=25: 112.07
arrays/var-int.js type=Int32Array n=25: 103.73
arrays/var-int.js type=Uint32Array n=25: 103.06
arrays/var-int.js type=Float32Array n=25: 70.614
arrays/var-int.js type=Float64Array n=25: 78.309
  • node.js v0.10.35
arrays/var-int.js
arrays/var-int.js type=Array n=25: 10.598
arrays/var-int.js type=Buffer n=25: 63.576
arrays/var-int.js type=Int8Array n=25: 63.590
arrays/var-int.js type=Uint8Array n=25: 64.799
arrays/var-int.js type=Int16Array n=25: 59.040
arrays/var-int.js type=Uint16Array n=25: 63.513
arrays/var-int.js type=Int32Array n=25: 58.556
arrays/var-int.js type=Uint32Array n=25: 59.046
arrays/var-int.js type=Float32Array n=25: 34.050
arrays/var-int.js type=Float64Array n=25: 49.198

bnoordhuis pushed a commit that referenced this pull request Jan 21, 2015
@bnoordhuis
Copy link
Member

Thanks Yosuke, landed in 5d01463.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants