Install foundry https://book.getfoundry.sh/
$ forge test -vv
Sample output
Ran 3 tests for test/TestBLS.sol:TestBLS
[PASS] test_ex1() (gas: 74449)
Logs:
x coordinate: 873318695518031401417149686926013013136830390284609050242
5720
2583166143409403490
y coordinate: 18723875879694911796704132663522333035004534818202282337332874826721487095913
x coordinate: 21175012688506962233816844791442252516143107364388865443373551761298932929998
y coordinate: 12461891404296221788620452104748144077317012243068438191804517247466521768756
x coordinate: 18027103426871119501677772130442846289741113428817725180892138436669906362553
y coordinate: 5796960046266534350199193536479016578704566091018080283101308697652414799524
x coordinate: 6495476029212120218319971780661232727459425545104105426065841036724055072557
y coordinate: 8125348584211227974210818927317180142393575666009017642887807310139544167954
x coordinate: 13366383962686826748961831062212995028477880918099835776993295818966449057989
y coordinate: 4202313010589075231123316790184978385558086511125764614970366802107444398385
[PASS] test_hashToPointGas() (gas: 65885988)
Logs:
hashToPoint average gas cost: 6196
hashToPoint max gas cost: 25659
hashToPoint average repetition in sqrt; scaled by 100x: 198
hashToPoint max repetition in sqrt: 11
[PASS] test_signAndVerify() (gas: 3662800)
Logs:
Private Key: 5532719355993668376817313988550233634227690018686483329169046691728862458102
Public Key x0: 8378816085881533471915855765377395720650519250900991714910570838142371337484
Public Key x1: 12790415566273137204438980474676206431551668194861774000289116208318672938344
Public Key y0: 19990703290207056186001361313522144773565207870437521135189959374985874088302
Public Key y1: 4358342334887501838847343362140356079440147357795966237968340896425437333463
Message: 0x48656c6c6f20424c53
Signature[0]: 4695234619223802341194819958502944900064280913620481797020083521090250616498
Signature[1]: 4211770347240855007710609495974615431925414832894396505276476345124906904986
hash x: 5987718135985124777279747422376396745080763197674376990450444442288119654198
hash y: 6997241657768735445093763087414958605667071248301947314582032744388594841245
hashToPoint repetition: 1
verifySingle gas cost: 113890
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 455.20ms (477.46ms CPU time)
Ran 1 test suite in 462.19ms (455.20ms CPU time): 3 tests passed, 0 failed, 0 skipped (3 total tests)