# portSpeedBps

Canonical: https://docs.shumoku.dev/en/library/api/portSpeedBps
Language: en

@shumoku/core · 0.6.1 · function

# portSpeedBps

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/models/link-speed.ts#L39)

A port's \`speed\` (a rate such as \`10G\`, \`2.5g\`, \`100M\`) in bits/sec; nothing when unreadable.

```
portSpeedBps(speed: string | undefined): number | undefined
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `speed` | `string | undefined` | No additional description. | `—` |

## Returns

```
number | undefined
```

[`libs/@shumoku/core/src/libs/@shumoku/core/src/models/link-speed.ts:39`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/models/link-speed.ts#L39)
