@cosyte/bench 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -398,6 +398,89 @@
398
398
  }
399
399
  }
400
400
  },
401
+ "peak": {
402
+ "oneOf": [
403
+ {
404
+ "type": "object",
405
+ "required": ["status", "calls", "peakHeapBytes", "medianPeakHeapBytes"],
406
+ "properties": {
407
+ "status": {
408
+ "const": "measured"
409
+ },
410
+ "calls": {
411
+ "type": "integer",
412
+ "minimum": 0
413
+ },
414
+ "peakHeapBytes": {
415
+ "type": "number"
416
+ },
417
+ "medianPeakHeapBytes": {
418
+ "type": "number"
419
+ },
420
+ "peakExternalBytes": {
421
+ "type": "number"
422
+ },
423
+ "medianPeakExternalBytes": {
424
+ "type": "number"
425
+ },
426
+ "peakTotalBytes": {
427
+ "type": "number"
428
+ },
429
+ "medianPeakTotalBytes": {
430
+ "type": "number"
431
+ },
432
+ "peakHeapAboveFloorBytes": {
433
+ "type": "number"
434
+ },
435
+ "medianPeakHeapAboveFloorBytes": {
436
+ "type": "number"
437
+ },
438
+ "peakExternalAboveFloorBytes": {
439
+ "type": "number"
440
+ },
441
+ "medianPeakExternalAboveFloorBytes": {
442
+ "type": "number"
443
+ },
444
+ "peakTotalAboveFloorBytes": {
445
+ "type": "number"
446
+ },
447
+ "medianPeakTotalAboveFloorBytes": {
448
+ "type": "number"
449
+ }
450
+ }
451
+ },
452
+ {
453
+ "type": "object",
454
+ "required": ["status", "reason"],
455
+ "properties": {
456
+ "status": {
457
+ "const": "skipped"
458
+ },
459
+ "reason": {
460
+ "type": "string"
461
+ }
462
+ }
463
+ }
464
+ ]
465
+ },
466
+ "failure": {
467
+ "type": "object",
468
+ "required": ["phase", "benchmark", "size", "message"],
469
+ "properties": {
470
+ "phase": {
471
+ "enum": ["timing", "memory", "floor"]
472
+ },
473
+ "benchmark": {
474
+ "type": ["string", "null"]
475
+ },
476
+ "size": {
477
+ "type": ["string", "null"]
478
+ },
479
+ "message": {
480
+ "type": "string"
481
+ }
482
+ }
483
+ },
401
484
  "reading": {
402
485
  "type": "object",
403
486
  "required": ["processes", "cases", "importCost"],
@@ -412,6 +495,22 @@
412
495
  "$ref": "#/$defs/caseReading"
413
496
  }
414
497
  },
498
+ "memoryFloor": {
499
+ "oneOf": [
500
+ {
501
+ "type": "null"
502
+ },
503
+ {
504
+ "$ref": "#/$defs/peak"
505
+ }
506
+ ]
507
+ },
508
+ "failures": {
509
+ "type": "array",
510
+ "items": {
511
+ "$ref": "#/$defs/failure"
512
+ }
513
+ },
415
514
  "importCost": {
416
515
  "oneOf": [
417
516
  {
@@ -668,51 +767,7 @@
668
767
  "type": "null"
669
768
  },
670
769
  {
671
- "oneOf": [
672
- {
673
- "type": "object",
674
- "required": ["status", "calls", "peakHeapBytes", "medianPeakHeapBytes"],
675
- "properties": {
676
- "status": {
677
- "const": "measured"
678
- },
679
- "calls": {
680
- "type": "integer",
681
- "minimum": 0
682
- },
683
- "peakHeapBytes": {
684
- "type": "number"
685
- },
686
- "medianPeakHeapBytes": {
687
- "type": "number"
688
- },
689
- "peakExternalBytes": {
690
- "type": "number"
691
- },
692
- "medianPeakExternalBytes": {
693
- "type": "number"
694
- },
695
- "peakTotalBytes": {
696
- "type": "number"
697
- },
698
- "medianPeakTotalBytes": {
699
- "type": "number"
700
- }
701
- }
702
- },
703
- {
704
- "type": "object",
705
- "required": ["status", "reason"],
706
- "properties": {
707
- "status": {
708
- "const": "skipped"
709
- },
710
- "reason": {
711
- "type": "string"
712
- }
713
- }
714
- }
715
- ]
770
+ "$ref": "#/$defs/peak"
716
771
  }
717
772
  ]
718
773
  },