/fast-magic-string

Rust version of magic-string. Inspired by magic-string-rs

Primary LanguageRust

fast-magic-string

Rust version of magic-string. Inspired by magic-string-rs.

RoadMap

Implemented

  • addSourcemapLocation
  • append
  • appendLeft
  • appendRight
  • clone
  • generateDecodedMap
  • generateMap
  • indent
  • insert
  • insertLeft
  • insertRight
  • move
  • overwrite
  • update
  • prepend
  • prependLeft
  • prependRight
  • remove
  • reset
  • slice
  • snip
  • toString
  • isEmpty
  • trimLines
  • trim
  • trimEnd
  • trimStart
  • hasChanged
  • replace
  • replaceAll

Benchmarks

Hardware Overview

Model Name: MacBook Pro
Model Identifier: MacBookPro18,3
Chip: Apple M1 Pro
Total Number of Cores: 8 (6 performance and 2 efficiency)
Memory: 16 GB

Version Overview

nodejs-version: 18.15.0
magic-string: 0.30.17
fast-magic-string: workspace

Output

Task Name ops/sec Average Time (ns) Margin Samples
magic-string 1,206 828588.7028143657 ±15.48% 123
fast-magic-string 1,698 588664.5233908365 ±9.24% 172