Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ThePrimeagen/js-perf-example
/ functions
Functions
58 in github.com/ThePrimeagen/js-perf-example
⨍
Functions
58
◇
Types & classes
11
↓ 13 callers
Method
log
()
shooter/src/game/game.ts:64
↓ 10 callers
Function
getLogger
()
shooter/src/logger.ts:6
↓ 8 callers
Method
fire
(player: number)
shooter/src/game/game.ts:119
↓ 8 callers
Method
update
(delta: number)
shooter/src/game/game.ts:71
↓ 7 callers
Function
getSummedValueQuantileIdx
(data []int, quantilePosition int)
shooter/pkg/pages/index.go:129
↓ 6 callers
Method
gameStats
()
shooter/src/game/game.ts:131
↓ 5 callers
Method
add
(&mut self, msg: Message, player: usize)
shooter/src/main.rs:156
↓ 4 callers
Method
count
(title: string)
shooter/src/game/data-writer.ts:14
↓ 3 callers
Method
Render
(w io.Writer, name string, data interface{}, c echo.Context)
shooter/cmd/main.go:18
↓ 3 callers
Function
getWriter
(args?: Config)
shooter/src/game/data-writer.ts:66
↓ 2 callers
Function
createState
()
shooter/src/game/index.ts:63
↓ 2 callers
Function
createState
(x: number, direction: 1 | -1)
shooter/src/game/game.ts:24
↓ 2 callers
Method
flush
()
shooter/src/game/data-writer.ts:36
↓ 2 callers
Function
getConsts
()
shooter/src/game/consts.ts:9
↓ 2 callers
Method
getTickTotal
()
shooter/pkg/pages/index.go:109
↓ 2 callers
Function
idxOf
(labels []string, label string)
shooter/pkg/pages/index.go:31
↓ 2 callers
Function
initLogger
(args: Config)
shooter/src/logger.ts:14
↓ 2 callers
Function
newChart
(id int, title string)
shooter/pkg/pages/index.go:22
↓ 2 callers
Function
onMessage
(state: State)
shooter/src/game/index.ts:89
↓ 2 callers
Function
printStats
* @param {string} name * @param {Run[]} values *
set/src/index.js:147
↓ 2 callers
Function
promiseTiming
()
event-loop/index.js:20
↓ 2 callers
Function
run
* @param {(gen: () => string) => number} gen * @return {Run[]}
set/src/index.js:123
↓ 2 callers
Function
spawnChild
(cmd: string, closeOnError: boolean = false)
shooter/src/__tests__/integration.ts:6
↓ 2 callers
Function
speeds
()
shooter/src/game/__tests__/game.ts:12
↓ 2 callers
Function
updateBullet
(b: Bullet, delta: number)
shooter/src/game/game.ts:41
↓ 2 callers
Function
waitForOpen
(socket: WebSocket)
shooter/src/game/index.ts:46
↓ 2 callers
Method
write
(title: string, data: number)
shooter/src/game/data-writer.ts:24
↓ 1 callers
Method
CalculateStats
()
shooter/pkg/pages/index.go:142
↓ 1 callers
Method
addLine
(line map[string]interface{})
shooter/pkg/pages/index.go:52
↓ 1 callers
Method
addPoint
(title string, value int, idx int)
shooter/pkg/pages/index.go:42
↓ 1 callers
Function
addToNextTick
(cb)
event-loop/index.js:12
↓ 1 callers
Function
collide
(b1: Bullet, b2: Bullet)
shooter/src/game/game.ts:37
↓ 1 callers
Method
createBullet
(state: PlayerState)
shooter/src/game/game.ts:135
↓ 1 callers
Function
createGameRunner
()
shooter/src/game/index.ts:208
↓ 1 callers
Method
flushContents
()
shooter/src/game/data-writer.ts:46
↓ 1 callers
Function
getConfig
()
shooter/src/cli.ts:37
↓ 1 callers
Method
getState
(player: number)
shooter/src/game/game.ts:146
↓ 1 callers
Function
main
()
event-loop/index.js:29
↓ 1 callers
Function
next
()
shooter/src/__tests__/integration.ts:19
↓ 1 callers
Function
playGame
(p1: WebSocket, p2: WebSocket)
shooter/src/game/index.ts:101
↓ 1 callers
Function
print
(hello)
event-loop/index.js:6
↓ 1 callers
Function
round
@param {number} x
set/src/index.js:139
↓ 1 callers
Function
runAll
()
set/src/index.js:157
↓ 1 callers
Method
sortLabels
()
shooter/pkg/pages/index.go:85
↓ 1 callers
Function
tick
()
event-loop/index.js:2
↓ 1 callers
Function
ticker
(rate: number, writer: Writer)
shooter/src/game/index.ts:8
Function
Index
(c echo.Context)
shooter/pkg/pages/index.go:181
Method
constructor
(private reportIntervalMS: number = 1000)
shooter/src/game/data-writer.ts:9
Method
constructor
(private fireRateMS: number, distance: number = 1000)
shooter/src/game/game.ts:58
Function
createString
* @param {number} count * @param {number} charsUntil
set/src/index.js:51
Function
findWithArray
* @param {() => string} iter
set/src/index.js:96
Function
findWithSet
* @param {() => string} iter
set/src/index.js:70
Function
initFromCLI
(args: Config)
shooter/src/game/consts.ts:13
Function
initFromEnv
()
shooter/src/game/consts.ts:19
Function
main
()
shooter/src/main.rs:174
Function
main
()
shooter/cmd/main.go:22
Function
randomCreateString
* @param {number} count * @param {number} charsUntil
set/src/index.js:24
Function
run_client
(stream: Stream, fire_wait: u64, config: &'static Config, player: usize)
shooter/src/main.rs:65