测试ut2和lodash random性能 (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.js"></script>
<script src="https://unpkg.com/ut2@1/dist/ut2.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
ut2 randomInt
ut2.randomInt(2, 4)
ready
lodash random
_.random(2, 4)
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.