Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
github.com/abranhe/concurrent-benchmark
Work In Progress...
Benchmark scripts concurrently.
Right now I am just playing around, but I am planning (maybe) to make something serious in the future.
concurrent-benchmark
has the alias cb
.
$ yarn global add concurrent-benchmark
Let's take fixture.js
as an example.
It has a setTimeout
that waits for 2 seconds.
$ time cb \
'node fixture.js' \
'node fixture.js' \
'node fixture.js' \
'node fixture.js'
So instead of taking using 1 thread (~8s) we are going to use 4 threads (~2s), one for each command. The output of this will get a few console.logs be something like:
real 0m2.289s
user 0m0.157s
sys 0m0.237s
Where real
is the time it took to run the command.
Not yet implemented.
import cb from 'concurrent-benchmark';
cb.run([
{
name: 'foo',
script: 'echo foo',
},
{
name: 'bar',
script: 'echo bar',
},
]);
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.