Skip to content

Commit

Permalink
ix
Browse files Browse the repository at this point in the history
  • Loading branch information
avkos committed Mar 6, 2024
1 parent 46edaf5 commit 94d68ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/web3-utils/test/unit/objects.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ along with web3.js. If not, see <http://www.gnu.org/licenses/>.
import { mergeDeep } from '../../src/objects';
import { mergeDeepData } from '../fixtures/objects';
import { objectBigintToString } from '../fixtures/system_test_utils';

describe('objects', () => {
describe('mergeDeep', () => {
it.each(mergeDeepData)('$message', ({ destination, sources, output }) => {
Expand Down
7 changes: 4 additions & 3 deletions scripts/system_tests_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,9 @@ export const sendFewSampleTxs = async (cnt = 1) => {
return res;
};

export const objectBigintToString = function (obj: object) {
return JSON.parse(
export const objectBigintToString = (obj: object): object =>
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
JSON.parse(
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
JSON.stringify(obj, (_, value) => (typeof value === 'bigint' ? value.toString() : value)),
);
};

1 comment on commit 94d68ef

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 94d68ef Previous: 6c075db Ratio
processingTx 9756 ops/sec (±3.85%) 9301 ops/sec (±4.81%) 0.95
processingContractDeploy 40800 ops/sec (±8.25%) 39129 ops/sec (±7.62%) 0.96
processingContractMethodSend 20432 ops/sec (±9.22%) 19443 ops/sec (±5.19%) 0.95
processingContractMethodCall 41999 ops/sec (±4.80%) 38971 ops/sec (±6.34%) 0.93
abiEncode 48423 ops/sec (±6.40%) 44252 ops/sec (±6.92%) 0.91
abiDecode 33106 ops/sec (±7.03%) 30419 ops/sec (±8.89%) 0.92
sign 1667 ops/sec (±3.25%) 1656 ops/sec (±4.08%) 0.99
verify 380 ops/sec (±0.33%) 373 ops/sec (±0.78%) 0.98

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.