Calculate the sum of the arrays first, and repeat it for 10,000,000 times to get the final sum.
$ time node test.js
551999999.9312276
node test.js 0.65s user 0.03s system 99% cpu 0.688 total
$ time python test.py| #!/usr/bin/env node | |
| const crypto = require('crypto') | |
| const content = 'helloworld' | |
| const password = 'password' | |
| const algorithms = crypto.getCiphers() | |
| for (const algorithm of algorithms) { | |
| try { | |
| const cipher = crypto.createCipher(algorithm, password) |