Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Strings that V8 passes to fast_float

These datasets hold every string that V8 handed to fast_float while running JetStream 3 and Speedometer 3.1 (see fastfloat/fast_float#435). They were captured on 2026-11-18 with an instrumented d8 (JetStream 3) and an instrumented Chromium headless_shell (Speedometer 3.1, 10 iterations per suite). Numbers that V8 parses itself (for example, small integers in JSON) never reach fast_float and are not in the datasets.

There is one file per call site. Each line holds one string in call order. Backslashes are written \\ and control characters \uXXXX. Strings that were UTF-16 or longer than 256 characters were left out (a handful).

file V8 call site fast_float options
*_json.txt JSON.parse (only the number token; V8 passes the end of the buffer) chars_format::json
*_tonumber.txt ToNumber (Number(s), +s, ...) general | no_infnan | allow_leading_plus
*_parsefloat.txt parseFloat same as tonumber
*_lexer.txt numbers in JavaScript source same as tonumber
*_parseint.txt parseInt (base 10) fixed | no_infnan, decimal point '0'

Calls per file:

json tonumber lexer parsefloat parseint
js3 477,537 1,567,144 280,538 232,957 304,070
sp3 183,230 579,922 12,262 1,099 33,406

The files are compressed with xz (xz -dk datasets/*.xz).

Tools

  • tools/v8-fflog.patch: V8 patch that logs each call to the file named by $V8_FF_LOG (lines tag\twidth\tlength\tstring).
  • tools/runsp3.sh: runs Speedometer 3.1 suites one at a time in the instrumented headless_shell.
  • tools/extract.py: turns the logs into the datasets.
  • tools/analyze.py: summarizes the logs (shapes, lengths, top benchmarks).
  • tools/v8replay.cpp: replays a dataset through fast_float with V8's options, using lemire/counters. Usage: v8replay <dir> js3|sp3.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages