Click me
Transcript

Benchmarking Java Operations in Processing 2.0a5

Empty Run [0.00000ns] Boolean Conditional [0.00398ns] Benchmarking Java Operations using Processing 2.0a5 Float Conditional [0.00428ns] Integer Conditional [0.00470ns] Long Conditional [0.00479ns] Double Conditional [0.00482ns] Boolean Array Element Assign [0.07976ns) Boolean Allocate Array Element [0.20768ns] Float Cast From Integer [0.22086ns) by @billautomata creative-co.de n = 1 billion operations Float Array Element Assign [0.22087ns] Integer Cast From Float [0.22125ns] Integer Array Element Assign [0.22130ns] Float Floor [0.22177ns] Float Ceil [0.22202ns) Integer Floor (o.22408ns] Integer Ceil [0.22685ns] Boolean Flip State [0.38471ns] Integer Multiply [0.45236ns] Integer Add [0.48683ns] Float Multiply (0.65436ns) Float Divide [0.65536ns] Float Add [0.66368ns) Integer Allocate Array Element [0.72243ns] Float Allocate Array Element [0.78538ns] Double Multiply [0.80841ns] Long Multiply [0.80986ns] Long Cast From Float [0.81148ns] Double Divide [0.81202ns) Double Add [0.81217ns] Long Array Element Assign [0.81302ns] Double Floor [o.81539ns) Long Floor [0.81737ns] Long Ceil [0.81983ns] Double Abs [0.82181ns] Long Add [0.82254ns] Integer Divide [0.82919ns] Double Array Element Assign [0.83182ns] Double Ceil [0.83305ns] Double Cast From Integer [0.83489ns) Long Divide [0.98674ns] Float Sin [1.07006ns] Float Tan [1.07020ns] Double Sin [1.07222ns] Double Cos [1.07375ns) Double Tan [1.07444ns] Double Exp [1.07589ns] Float Exp [1.07679ns] Float Cos [1.07701ns] Double Allocate Array Element [1.24485ns) Integer Constrain [1.30248ns] Integer Mod [1.31158ns] Long Mod [1.36930ns] Float Max [1.66564ns] Float Abs [1.66570ns] Integer Abs [1.68969ns] Integer Max [1.69023ns] Integer Min [1.69073ns] Float Pow [1.69804ns] Float Min [1.70239ns] Long Abs [1.72132ns] Long Min [1.72361ns] Long Max (1.72367ns] Double Pow [1.74512ns] Double Min [1.74803ns] Long Allocate Array Element [1.82939ns] Double Max [1.84125ns] Float Constrain [2.27206ns) Float Distance [4.58824ns] Float Square Root [4.62754ns) Integer Square Root [4.73965ns] Long Square Root [4.74623ns] Double Square Root [6.83745ns) Double Random Generation [13.32808ns) Float Random Generation [13.32809ns) Long Random Generation [13.32832ns] Integer Random Generation [13.34131ns] Float Mod [15.40295ns] Double Log [21.28826ns] Float Log [22.58610ns] Double Mod [170.25906ns] Empty Run [0.00000ns] Boolean Conditional [0.00398ns] Benchmarking Java Operations using Processing 2.0a5 Float Conditional [0.00428ns] Integer Conditional [0.00470ns] Long Conditional [0.00479ns] Double Conditional [0.00482ns] Boolean Array Element Assign [0.07976ns) Boolean Allocate Array Element [0.20768ns] Float Cast From Integer [0.22086ns) by @billautomata creative-co.de n = 1 billion operations Float Array Element Assign [0.22087ns] Integer Cast From Float [0.22125ns] Integer Array Element Assign [0.22130ns] Float Floor [0.22177ns] Float Ceil [0.22202ns) Integer Floor (o.22408ns] Integer Ceil [0.22685ns] Boolean Flip State [0.38471ns] Integer Multiply [0.45236ns] Integer Add [0.48683ns] Float Multiply (0.65436ns) Float Divide [0.65536ns] Float Add [0.66368ns) Integer Allocate Array Element [0.72243ns] Float Allocate Array Element [0.78538ns] Double Multiply [0.80841ns] Long Multiply [0.80986ns] Long Cast From Float [0.81148ns] Double Divide [0.81202ns) Double Add [0.81217ns] Long Array Element Assign [0.81302ns] Double Floor [o.81539ns) Long Floor [0.81737ns] Long Ceil [0.81983ns] Double Abs [0.82181ns] Long Add [0.82254ns] Integer Divide [0.82919ns] Double Array Element Assign [0.83182ns] Double Ceil [0.83305ns] Double Cast From Integer [0.83489ns) Long Divide [0.98674ns] Float Sin [1.07006ns] Float Tan [1.07020ns] Double Sin [1.07222ns] Double Cos [1.07375ns) Double Tan [1.07444ns] Double Exp [1.07589ns] Float Exp [1.07679ns] Float Cos [1.07701ns] Double Allocate Array Element [1.24485ns) Integer Constrain [1.30248ns] Integer Mod [1.31158ns] Long Mod [1.36930ns] Float Max [1.66564ns] Float Abs [1.66570ns] Integer Abs [1.68969ns] Integer Max [1.69023ns] Integer Min [1.69073ns] Float Pow [1.69804ns] Float Min [1.70239ns] Long Abs [1.72132ns] Long Min [1.72361ns] Long Max (1.72367ns] Double Pow [1.74512ns] Double Min [1.74803ns] Long Allocate Array Element [1.82939ns] Double Max [1.84125ns] Float Constrain [2.27206ns) Float Distance [4.58824ns] Float Square Root [4.62754ns) Integer Square Root [4.73965ns] Long Square Root [4.74623ns] Double Square Root [6.83745ns) Double Random Generation [13.32808ns) Float Random Generation [13.32809ns) Long Random Generation [13.32832ns] Integer Random Generation [13.34131ns] Float Mod [15.40295ns] Double Log [21.28826ns] Float Log [22.58610ns] Double Mod [170.25906ns] Empty Run [0.00000ns] Boolean Conditional [0.00398ns] Benchmarking Java Operations using Processing 2.0a5 Float Conditional [0.00428ns] Integer Conditional [0.00470ns] Long Conditional [0.00479ns] Double Conditional [0.00482ns] Boolean Array Element Assign [0.07976ns) Boolean Allocate Array Element [0.20768ns] Float Cast From Integer [0.22086ns) by @billautomata creative-co.de n = 1 billion operations Float Array Element Assign [0.22087ns] Integer Cast From Float [0.22125ns] Integer Array Element Assign [0.22130ns] Float Floor [0.22177ns] Float Ceil [0.22202ns) Integer Floor (o.22408ns] Integer Ceil [0.22685ns] Boolean Flip State [0.38471ns] Integer Multiply [0.45236ns] Integer Add [0.48683ns] Float Multiply (0.65436ns) Float Divide [0.65536ns] Float Add [0.66368ns) Integer Allocate Array Element [0.72243ns] Float Allocate Array Element [0.78538ns] Double Multiply [0.80841ns] Long Multiply [0.80986ns] Long Cast From Float [0.81148ns] Double Divide [0.81202ns) Double Add [0.81217ns] Long Array Element Assign [0.81302ns] Double Floor [o.81539ns) Long Floor [0.81737ns] Long Ceil [0.81983ns] Double Abs [0.82181ns] Long Add [0.82254ns] Integer Divide [0.82919ns] Double Array Element Assign [0.83182ns] Double Ceil [0.83305ns] Double Cast From Integer [0.83489ns) Long Divide [0.98674ns] Float Sin [1.07006ns] Float Tan [1.07020ns] Double Sin [1.07222ns] Double Cos [1.07375ns) Double Tan [1.07444ns] Double Exp [1.07589ns] Float Exp [1.07679ns] Float Cos [1.07701ns] Double Allocate Array Element [1.24485ns) Integer Constrain [1.30248ns] Integer Mod [1.31158ns] Long Mod [1.36930ns] Float Max [1.66564ns] Float Abs [1.66570ns] Integer Abs [1.68969ns] Integer Max [1.69023ns] Integer Min [1.69073ns] Float Pow [1.69804ns] Float Min [1.70239ns] Long Abs [1.72132ns] Long Min [1.72361ns] Long Max (1.72367ns] Double Pow [1.74512ns] Double Min [1.74803ns] Long Allocate Array Element [1.82939ns] Double Max [1.84125ns] Float Constrain [2.27206ns) Float Distance [4.58824ns] Float Square Root [4.62754ns) Integer Square Root [4.73965ns] Long Square Root [4.74623ns] Double Square Root [6.83745ns) Double Random Generation [13.32808ns) Float Random Generation [13.32809ns) Long Random Generation [13.32832ns] Integer Random Generation [13.34131ns] Float Mod [15.40295ns] Double Log [21.28826ns] Float Log [22.58610ns] Double Mod [170.25906ns] Empty Run [0.00000ns] Boolean Conditional [0.00398ns] Benchmarking Java Operations using Processing 2.0a5 Float Conditional [0.00428ns] Integer Conditional [0.00470ns] Long Conditional [0.00479ns] Double Conditional [0.00482ns] Boolean Array Element Assign [0.07976ns) Boolean Allocate Array Element [0.20768ns] Float Cast From Integer [0.22086ns) by @billautomata creative-co.de n = 1 billion operations Float Array Element Assign [0.22087ns] Integer Cast From Float [0.22125ns] Integer Array Element Assign [0.22130ns] Float Floor [0.22177ns] Float Ceil [0.22202ns) Integer Floor (o.22408ns] Integer Ceil [0.22685ns] Boolean Flip State [0.38471ns] Integer Multiply [0.45236ns] Integer Add [0.48683ns] Float Multiply (0.65436ns) Float Divide [0.65536ns] Float Add [0.66368ns) Integer Allocate Array Element [0.72243ns] Float Allocate Array Element [0.78538ns] Double Multiply [0.80841ns] Long Multiply [0.80986ns] Long Cast From Float [0.81148ns] Double Divide [0.81202ns) Double Add [0.81217ns] Long Array Element Assign [0.81302ns] Double Floor [o.81539ns) Long Floor [0.81737ns] Long Ceil [0.81983ns] Double Abs [0.82181ns] Long Add [0.82254ns] Integer Divide [0.82919ns] Double Array Element Assign [0.83182ns] Double Ceil [0.83305ns] Double Cast From Integer [0.83489ns) Long Divide [0.98674ns] Float Sin [1.07006ns] Float Tan [1.07020ns] Double Sin [1.07222ns] Double Cos [1.07375ns) Double Tan [1.07444ns] Double Exp [1.07589ns] Float Exp [1.07679ns] Float Cos [1.07701ns] Double Allocate Array Element [1.24485ns) Integer Constrain [1.30248ns] Integer Mod [1.31158ns] Long Mod [1.36930ns] Float Max [1.66564ns] Float Abs [1.66570ns] Integer Abs [1.68969ns] Integer Max [1.69023ns] Integer Min [1.69073ns] Float Pow [1.69804ns] Float Min [1.70239ns] Long Abs [1.72132ns] Long Min [1.72361ns] Long Max (1.72367ns] Double Pow [1.74512ns] Double Min [1.74803ns] Long Allocate Array Element [1.82939ns] Double Max [1.84125ns] Float Constrain [2.27206ns) Float Distance [4.58824ns] Float Square Root [4.62754ns) Integer Square Root [4.73965ns] Long Square Root [4.74623ns] Double Square Root [6.83745ns) Double Random Generation [13.32808ns) Float Random Generation [13.32809ns) Long Random Generation [13.32832ns] Integer Random Generation [13.34131ns] Float Mod [15.40295ns] Double Log [21.28826ns] Float Log [22.58610ns] Double Mod [170.25906ns] Empty Run [0.00000ns] Boolean Conditional [0.00398ns] Benchmarking Java Operations using Processing 2.0a5 Float Conditional [0.00428ns] Integer Conditional [0.00470ns] Long Conditional [0.00479ns] Double Conditional [0.00482ns] Boolean Array Element Assign [0.07976ns) Boolean Allocate Array Element [0.20768ns] Float Cast From Integer [0.22086ns) by @billautomata creative-co.de n = 1 billion operations Float Array Element Assign [0.22087ns] Integer Cast From Float [0.22125ns] Integer Array Element Assign [0.22130ns] Float Floor [0.22177ns] Float Ceil [0.22202ns) Integer Floor (o.22408ns] Integer Ceil [0.22685ns] Boolean Flip State [0.38471ns] Integer Multiply [0.45236ns] Integer Add [0.48683ns] Float Multiply (0.65436ns) Float Divide [0.65536ns] Float Add [0.66368ns) Integer Allocate Array Element [0.72243ns] Float Allocate Array Element [0.78538ns] Double Multiply [0.80841ns] Long Multiply [0.80986ns] Long Cast From Float [0.81148ns] Double Divide [0.81202ns) Double Add [0.81217ns] Long Array Element Assign [0.81302ns] Double Floor [o.81539ns) Long Floor [0.81737ns] Long Ceil [0.81983ns] Double Abs [0.82181ns] Long Add [0.82254ns] Integer Divide [0.82919ns] Double Array Element Assign [0.83182ns] Double Ceil [0.83305ns] Double Cast From Integer [0.83489ns) Long Divide [0.98674ns] Float Sin [1.07006ns] Float Tan [1.07020ns] Double Sin [1.07222ns] Double Cos [1.07375ns) Double Tan [1.07444ns] Double Exp [1.07589ns] Float Exp [1.07679ns] Float Cos [1.07701ns] Double Allocate Array Element [1.24485ns) Integer Constrain [1.30248ns] Integer Mod [1.31158ns] Long Mod [1.36930ns] Float Max [1.66564ns] Float Abs [1.66570ns] Integer Abs [1.68969ns] Integer Max [1.69023ns] Integer Min [1.69073ns] Float Pow [1.69804ns] Float Min [1.70239ns] Long Abs [1.72132ns] Long Min [1.72361ns] Long Max (1.72367ns] Double Pow [1.74512ns] Double Min [1.74803ns] Long Allocate Array Element [1.82939ns] Double Max [1.84125ns] Float Constrain [2.27206ns) Float Distance [4.58824ns] Float Square Root [4.62754ns) Integer Square Root [4.73965ns] Long Square Root [4.74623ns] Double Square Root [6.83745ns) Double Random Generation [13.32808ns) Float Random Generation [13.32809ns) Long Random Generation [13.32832ns] Integer Random Generation [13.34131ns] Float Mod [15.40295ns] Double Log [21.28826ns] Float Log [22.58610ns] Double Mod [170.25906ns] Empty Run [0.00000ns] Boolean Conditional [0.00398ns] Benchmarking Java Operations using Processing 2.0a5 Float Conditional [0.00428ns] Integer Conditional [0.00470ns] Long Conditional [0.00479ns] Double Conditional [0.00482ns] Boolean Array Element Assign [0.07976ns) Boolean Allocate Array Element [0.20768ns] Float Cast From Integer [0.22086ns) by @billautomata creative-co.de n = 1 billion operations Float Array Element Assign [0.22087ns] Integer Cast From Float [0.22125ns] Integer Array Element Assign [0.22130ns] Float Floor [0.22177ns] Float Ceil [0.22202ns) Integer Floor (o.22408ns] Integer Ceil [0.22685ns] Boolean Flip State [0.38471ns] Integer Multiply [0.45236ns] Integer Add [0.48683ns] Float Multiply (0.65436ns) Float Divide [0.65536ns] Float Add [0.66368ns) Integer Allocate Array Element [0.72243ns] Float Allocate Array Element [0.78538ns] Double Multiply [0.80841ns] Long Multiply [0.80986ns] Long Cast From Float [0.81148ns] Double Divide [0.81202ns) Double Add [0.81217ns] Long Array Element Assign [0.81302ns] Double Floor [o.81539ns) Long Floor [0.81737ns] Long Ceil [0.81983ns] Double Abs [0.82181ns] Long Add [0.82254ns] Integer Divide [0.82919ns] Double Array Element Assign [0.83182ns] Double Ceil [0.83305ns] Double Cast From Integer [0.83489ns) Long Divide [0.98674ns] Float Sin [1.07006ns] Float Tan [1.07020ns] Double Sin [1.07222ns] Double Cos [1.07375ns) Double Tan [1.07444ns] Double Exp [1.07589ns] Float Exp [1.07679ns] Float Cos [1.07701ns] Double Allocate Array Element [1.24485ns) Integer Constrain [1.30248ns] Integer Mod [1.31158ns] Long Mod [1.36930ns] Float Max [1.66564ns] Float Abs [1.66570ns] Integer Abs [1.68969ns] Integer Max [1.69023ns] Integer Min [1.69073ns] Float Pow [1.69804ns] Float Min [1.70239ns] Long Abs [1.72132ns] Long Min [1.72361ns] Long Max (1.72367ns] Double Pow [1.74512ns] Double Min [1.74803ns] Long Allocate Array Element [1.82939ns] Double Max [1.84125ns] Float Constrain [2.27206ns) Float Distance [4.58824ns] Float Square Root [4.62754ns) Integer Square Root [4.73965ns] Long Square Root [4.74623ns] Double Square Root [6.83745ns) Double Random Generation [13.32808ns) Float Random Generation [13.32809ns) Long Random Generation [13.32832ns] Integer Random Generation [13.34131ns] Float Mod [15.40295ns] Double Log [21.28826ns] Float Log [22.58610ns] Double Mod [170.25906ns]

Benchmarking Java Operations in Processing 2.0a5

shared by billautomata on May 11
491 views
1 shares
0 comments
Performance of common operations using some standard types in Java. Performed with Processing 2.0a5 on an Intel core i5 processor.

Category

Computers
Did you work on this visual? Claim credit!

Get a Quote

Embed Code

For hosted site:

Click the code to copy

For wordpress.com:

Click the code to copy
Customize size